org.apache.xml.security.keys.content.x509
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

Author:
$Author: vdkoogh $

Field Summary
static java.lang.String JCA_CERT_ID
          Field JCA_CERT_ID
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY
 
Constructor Summary
XMLX509Certificate(org.w3c.dom.Document doc, byte[] certificateBytes)
          Constructor X509Certificate
XMLX509Certificate(org.w3c.dom.Document doc, java.security.cert.X509Certificate x509certificate)
          Constructor XMLX509Certificate
XMLX509Certificate(org.w3c.dom.Element element, java.lang.String BaseURI)
          Constructor X509Certificate
 
Method Summary
 boolean equals(java.lang.Object obj)
          Method equals
 java.lang.String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 byte[] getCertificateBytes()
          Method getCertificateBytes
 java.security.PublicKey getPublicKey()
          Method getPublicKey
 java.security.cert.X509Certificate getX509Certificate()
          Method getX509Certificate
 
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespace
 
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getChildElementLocalName, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 XMLSecurityException
Constructor 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 XMLSecurityException
Constructor XMLX509Certificate

Parameters:
doc -
x509certificate -
Throws:
XMLSecurityException
Method Detail

getCertificateBytes

public byte[] getCertificateBytes()
                           throws XMLSecurityException
Method getCertificateBytes

Throws:
XMLSecurityException

getX509Certificate

public java.security.cert.X509Certificate getX509Certificate()
                                                      throws XMLSecurityException
Method getX509Certificate

Throws:
XMLSecurityException

getPublicKey

public java.security.PublicKey getPublicKey()
                                     throws XMLSecurityException
Method getPublicKey

Throws:
XMLSecurityException

equals

public boolean equals(java.lang.Object obj)
Method equals

Overrides:
equals in class java.lang.Object
Parameters:
obj -

getBaseLocalName

public java.lang.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.