|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.keys.X509Data
public class X509Data
XML-DSIG X509Data element.
Nested Class Summary | |
---|---|
static class |
X509Data.IssuerAndSerialNo Simple holder class to contain an issuer and a serial number |
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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
-
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |