public class X509Data extends XMLElement implements KeyInfoData
Modifier and Type | Class and Description |
---|---|
static class |
X509Data.IssuerAndSerialNo
Simple holder class to contain an issuer and a serial number
|
Constructor and Description |
---|
X509Data(org.w3c.dom.Element element)
Creates a new
X509Data instance from the given Element node. |
X509Data(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
X509Data instance from the given Element node. |
Modifier and Type | Method and Description |
---|---|
void |
addCertificate(java.security.cert.X509Certificate cert)
Adds a X.509v3 certificate as a X509Certificate element.
|
void |
addCRL(java.security.cert.X509CRL crl)
Adds a X.509v3 certificate revocation list as a X509CRL element.
|
void |
addIssuerSerial(javax.security.auth.x500.X500Principal issuer, java.math.BigInteger serialNumber)
Adds a certificate issuer and serial number as a X509IssuerSerial element.
|
void |
addSubjectKeyID(byte[] subjectKeyID)
Adds the value of a X.509v3 certificate subject key ID extension as a X509SKI element.
|
void |
addSubjectName(javax.security.auth.x500.X500Principal subjectName)
Adds a certificate subject name as a X509SubjectName element.
|
java.util.Vector |
getCertificates()
Returns a list of the contents of any X509Certificate elements in this X509Data.
|
java.util.Vector |
getCRLs()
Returns a list of the contents of any X509CRL elements in this X509Data.
|
java.util.Vector |
getIssuerSerials()
Returns a list of the contents of any X509IssuerSerial elements in this X509Data.
|
java.util.Vector |
getSubjectKeyIDs()
Returns a list of the contents of any X509SKI elements in this X509Data.
|
java.util.Vector |
getSubjectNames()
Returns a list of the contents of any X509SubjectName elements in this X509Data.
|
java.lang.String |
getType()
Returns the type URI that identifies the specific KeyInfoData subclass.
|
boolean |
matches(java.security.cert.X509Certificate cert)
Check if the cert matches this X509Data element
|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public X509Data(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
X509Data
instance from the given Element node.element
- An Element node in the XML document that conforms to the XML-DSIG X509Data schema.org.w3c.dom.DOMException
public X509Data(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
X509Data
instance from the given Element node.element
- An Element node in the XML document that conforms to the XML-DSIG X509Data schema.systemId
- The URI string system ID for this element.org.w3c.dom.DOMException
XMLNode.setSystemId(java.lang.String)
public void addIssuerSerial(javax.security.auth.x500.X500Principal issuer, java.math.BigInteger serialNumber) throws org.w3c.dom.DOMException
issuerSerial
- A oracle.security.crypto.cert.IssuerAndSerialNo
containing the certificate issuer's distinguished name and the certificate's serial number.org.w3c.dom.DOMException
public java.util.Vector getIssuerSerials()
java.util.Vector
containing oracle.security.crypto.cert.IssuerAndSerialNo
s.public void addSubjectName(javax.security.auth.x500.X500Principal subjectName) throws org.w3c.dom.DOMException
subjectName
- A oracle.security.crypto.cert.X500Name
containing the certificate subject's distinguished name.org.w3c.dom.DOMException
public java.util.Vector getSubjectNames()
java.util.Vector
containing oracle.security.crypto.cert.X500Name
s.public void addSubjectKeyID(byte[] subjectKeyID) throws org.w3c.dom.DOMException
subjectKeyID
- A byte[] containing the value of the certificate's subject key ID extension.org.w3c.dom.DOMException
public java.util.Vector getSubjectKeyIDs()
java.util.Vector
of byte arrays containing the value of X.509v3 subject key ID extensions.public void addCertificate(java.security.cert.X509Certificate cert) throws org.w3c.dom.DOMException
cert
- A oracle.security.crypto.cert.X509Certificate
object.org.w3c.dom.DOMException
public java.util.Vector getCertificates() throws java.io.IOException
java.util.Vector
containing oracle.security.crypto.cert.X509Certificate
s.java.io.IOException
- If a oracle.security.crypto.cert.X509Certificate
cannot be instantiated from the bytes contained in a X509Certificate element.public void addCRL(java.security.cert.X509CRL crl) throws org.w3c.dom.DOMException
crl
- A oracle.security.crypto.cert.CRL
object.org.w3c.dom.DOMException
public java.util.Vector getCRLs() throws java.io.IOException
java.util.Vector
containing oracle.security.crypto.cert.CRL
s.java.io.IOException
- If a oracle.security.crypto.cert.CRL
cannot be instantiated from the bytes contained in a X509CRL element.public java.lang.String getType()
KeyInfoData
Interface XMLURI
contains the KeyInfo data type URIs defined in the XML Signature and XML Encryption namespaces, including:
XMLURI.obj_DHKeyValue
XMLURI.obj_DSAKeyValue
XMLURI.obj_EncryptedKey
XMLURI.obj_KeyName
XMLURI.obj_MgmtData
XMLURI.obj_PGPData
XMLURI.obj_rawX509Certificate
XMLURI.obj_RetrievalMethod
XMLURI.obj_RSAKeyValue
XMLURI.obj_SPKIData
XMLURI.obj_X509Data
getType
in interface KeyInfoData
public boolean matches(java.security.cert.X509Certificate cert)
cert
-