Class XMLX509Certificate
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.SignatureElementProxy
-
- org.apache.xml.security.keys.content.x509.XMLX509Certificate
-
- All Implemented Interfaces:
XMLX509DataContent
public class XMLX509Certificate extends SignatureElementProxy implements XMLX509DataContent
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJCA_CERT_IDField JCA_CERT_ID-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
-
Constructor Summary
Constructors Constructor Description XMLX509Certificate(org.w3c.dom.Document doc, byte[] certificateBytes)Constructor X509CertificateXMLX509Certificate(org.w3c.dom.Document doc, java.security.cert.X509Certificate x509certificate)Constructor XMLX509CertificateXMLX509Certificate(org.w3c.dom.Element element, java.lang.String baseURI)Constructor X509Certificate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.byte[]getCertificateBytes()Method getCertificateBytesjava.security.PublicKeygetPublicKey()Method getPublicKeyjava.security.cert.X509CertificategetX509Certificate()Method getX509CertificateinthashCode()-
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespace
-
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
-
-
-
Field Detail
-
JCA_CERT_ID
public static final java.lang.String JCA_CERT_ID
Field JCA_CERT_ID- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLX509Certificate
public XMLX509Certificate(org.w3c.dom.Element element, java.lang.String baseURI) throws XMLSecurityExceptionConstructor X509Certificate- Parameters:
element-baseURI-- Throws:
XMLSecurityException
-
XMLX509Certificate
public XMLX509Certificate(org.w3c.dom.Document doc, byte[] certificateBytes)Constructor X509Certificate- Parameters:
doc-certificateBytes-
-
XMLX509Certificate
public XMLX509Certificate(org.w3c.dom.Document doc, java.security.cert.X509Certificate x509certificate) throws XMLSecurityExceptionConstructor XMLX509Certificate- Parameters:
doc-x509certificate-- Throws:
XMLSecurityException
-
-
Method Detail
-
getCertificateBytes
public byte[] getCertificateBytes() throws XMLSecurityExceptionMethod getCertificateBytes- Returns:
- the certificate bytes
- Throws:
XMLSecurityException
-
getX509Certificate
public java.security.cert.X509Certificate getX509Certificate() throws XMLSecurityExceptionMethod getX509Certificate- Returns:
- the x509 certificate
- Throws:
XMLSecurityException
-
getPublicKey
public java.security.PublicKey getPublicKey() throws XMLSecurityException, java.io.IOExceptionMethod getPublicKey- Returns:
- the publickey
- Throws:
XMLSecurityExceptionjava.io.IOException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getBaseLocalName
public java.lang.String getBaseLocalName()
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
-