org.apache.xml.security.keys.content.x509
Class XMLX509Certificate

java.lang.Object
  extended by org.apache.xml.security.utils.ElementProxy
      extended by org.apache.xml.security.utils.SignatureElementProxy
          extended by org.apache.xml.security.keys.content.x509.XMLX509Certificate
All Implemented Interfaces:
XMLX509DataContent

public class XMLX509Certificate
extends SignatureElementProxy
implements XMLX509DataContent


Field Summary
static String JCA_CERT_ID
          Field JCA_CERT_ID
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, log
 
Constructor Summary
XMLX509Certificate(Document doc, byte[] certificateBytes)
          Constructor X509Certificate
XMLX509Certificate(Document doc, X509Certificate x509certificate)
          Constructor XMLX509Certificate
XMLX509Certificate(Element element, String BaseURI)
          Constructor X509Certificate
 
Method Summary
 boolean equals(Object obj)
           
 String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 byte[] getCertificateBytes()
          Method getCertificateBytes
 PublicKey getPublicKey()
          Method getPublicKey
 X509Certificate getX509Certificate()
          Method getX509Certificate
 int hashCode()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JCA_CERT_ID

public static final String JCA_CERT_ID
Field JCA_CERT_ID

See Also:
Constant Field Values
Constructor Detail

XMLX509Certificate

public XMLX509Certificate(Element element,
                          String BaseURI)
                   throws XMLSecurityException
Constructor X509Certificate

Parameters:
element -
BaseURI -
Throws:
XMLSecurityException

XMLX509Certificate

public XMLX509Certificate(Document doc,
                          byte[] certificateBytes)
Constructor X509Certificate

Parameters:
doc -
certificateBytes -

XMLX509Certificate

public XMLX509Certificate(Document doc,
                          X509Certificate x509certificate)
                   throws XMLSecurityException
Constructor XMLX509Certificate

Parameters:
doc -
x509certificate -
Throws:
XMLSecurityException
Method Detail

getCertificateBytes

public byte[] getCertificateBytes()
                           throws XMLSecurityException
Method getCertificateBytes

Returns:
the certificate bytes
Throws:
XMLSecurityException

getX509Certificate

public X509Certificate getX509Certificate()
                                   throws XMLSecurityException
Method getX509Certificate

Returns:
the x509 certificate
Throws:
XMLSecurityException

getPublicKey

public PublicKey getPublicKey()
                       throws XMLSecurityException
Method getPublicKey

Returns:
the publickey
Throws:
XMLSecurityException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getBaseLocalName

public String getBaseLocalName()
Description copied from class: ElementProxy
Returns the localname of the Elements of the sub-class.

Specified by:
getBaseLocalName in class ElementProxy
Returns:
the localname of the Elements of the sub-class.


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.