org.apache.xml.security.keys.content
Class X509Data

java.lang.Object
  |
  +--org.apache.xml.security.utils.ElementProxy
        |
        +--org.apache.xml.security.utils.SignatureElementProxy
              |
              +--org.apache.xml.security.keys.content.X509Data
All Implemented Interfaces:
KeyInfoContent

public class X509Data
extends SignatureElementProxy
implements KeyInfoContent

Author:
$Author: vdkoogh $

Field Summary
 
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
X509Data(org.w3c.dom.Document doc)
          Constructor X509Data
X509Data(org.w3c.dom.Element element, java.lang.String BaseURI)
          Constructor X509Data
 
Method Summary
 void add(XMLX509Certificate xmlX509Certificate)
          Method add
 void add(XMLX509CRL xmlX509CRL)
          Method add
 void add(XMLX509IssuerSerial xmlX509IssuerSerial)
          Method add
 void add(XMLX509SKI xmlX509SKI)
          Method add
 void add(XMLX509SubjectName xmlX509SubjectName)
          Method add
 void addCertificate(byte[] x509certificateBytes)
          Method addCertificate
 void addCertificate(java.security.cert.X509Certificate x509certificate)
          Method addCertificate
 void addCRL(byte[] crlBytes)
          Method addCRL
 void addIssuerSerial(java.lang.String X509IssuerName, java.math.BigInteger X509SerialNumber)
          Method addIssuerSerial
 void addIssuerSerial(java.lang.String X509IssuerName, int X509SerialNumber)
          Method addIssuerSerial
 void addIssuerSerial(java.lang.String X509IssuerName, java.lang.String X509SerialNumber)
          Method addIssuerSerial
 void addSKI(byte[] skiBytes)
          Method addSKI
 void addSKI(java.security.cert.X509Certificate x509certificate)
          Method addSKI
 void addSubjectName(java.lang.String subjectName)
          Method addSubjectName
 void addSubjectName(java.security.cert.X509Certificate x509certificate)
          Method addSubjectName
 void addUnknownElement(org.w3c.dom.Element element)
          Method addUnknownElement
 boolean containsCertificate()
          Method containsCertificate
 boolean containsCRL()
          Method containsCRL
 boolean containsIssuerSerial()
          Method containsIssuerSerial
 boolean containsSKI()
          Method containsSKI
 boolean containsSubjectName()
          Method containsSubjectName
 boolean containsUnknownElement()
          Method containsUnknownElement
 java.lang.String getBaseLocalName()
          Returns the localname of the Elements of the sub-class.
 XMLX509Certificate itemCertificate(int i)
          Method itemCertificate
 XMLX509CRL itemCRL(int i)
          Method itemCRL
 XMLX509IssuerSerial itemIssuerSerial(int i)
          Method itemIssuerSerial
 XMLX509SKI itemSKI(int i)
          Method itemSKI
 XMLX509SubjectName itemSubjectName(int i)
          Method itemSubjectName
 org.w3c.dom.Element itemUnknownElement(int i)
          Method itemUnknownElement
 int lengthCertificate()
          Method lengthCertificate
 int lengthCRL()
          Method lengthCRL
 int lengthIssuerSerial()
          Method lengthIssuerSerial
 int lengthSKI()
          Method lengthSKI
 int lengthSubjectName()
          Method lengthSubjectName
 int lengthUnknownElement()
          Method lengthUnknownElement
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509Data

public X509Data(org.w3c.dom.Document doc)
Constructor X509Data

Parameters:
doc -

X509Data

public X509Data(org.w3c.dom.Element element,
                java.lang.String BaseURI)
         throws XMLSecurityException
Constructor X509Data

Parameters:
element -
BaseURI -
Throws:
XMLSecurityException
Method Detail

addIssuerSerial

public void addIssuerSerial(java.lang.String X509IssuerName,
                            java.math.BigInteger X509SerialNumber)
Method addIssuerSerial

Parameters:
X509IssuerName -
X509SerialNumber -

addIssuerSerial

public void addIssuerSerial(java.lang.String X509IssuerName,
                            java.lang.String X509SerialNumber)
Method addIssuerSerial

Parameters:
X509IssuerName -
X509SerialNumber -

addIssuerSerial

public void addIssuerSerial(java.lang.String X509IssuerName,
                            int X509SerialNumber)
Method addIssuerSerial

Parameters:
X509IssuerName -
X509SerialNumber -

add

public void add(XMLX509IssuerSerial xmlX509IssuerSerial)
Method add

Parameters:
xmlX509IssuerSerial -

addSKI

public void addSKI(byte[] skiBytes)
Method addSKI

Parameters:
skiBytes -

addSKI

public void addSKI(java.security.cert.X509Certificate x509certificate)
            throws XMLSecurityException
Method addSKI

Parameters:
x509certificate -
Throws:
XMLSecurityException

add

public void add(XMLX509SKI xmlX509SKI)
Method add

Parameters:
xmlX509SKI -

addSubjectName

public void addSubjectName(java.lang.String subjectName)
Method addSubjectName

Parameters:
subjectName -

addSubjectName

public void addSubjectName(java.security.cert.X509Certificate x509certificate)
Method addSubjectName

Parameters:
x509certificate -

add

public void add(XMLX509SubjectName xmlX509SubjectName)
Method add

Parameters:
xmlX509SubjectName -

addCertificate

public void addCertificate(java.security.cert.X509Certificate x509certificate)
                    throws XMLSecurityException
Method addCertificate

Parameters:
x509certificate -
Throws:
XMLSecurityException

addCertificate

public void addCertificate(byte[] x509certificateBytes)
Method addCertificate

Parameters:
x509certificateBytes -

add

public void add(XMLX509Certificate xmlX509Certificate)
Method add

Parameters:
xmlX509Certificate -

addCRL

public void addCRL(byte[] crlBytes)
Method addCRL

Parameters:
crlBytes -

add

public void add(XMLX509CRL xmlX509CRL)
Method add

Parameters:
xmlX509CRL -

addUnknownElement

public void addUnknownElement(org.w3c.dom.Element element)
Method addUnknownElement

Parameters:
element -

lengthIssuerSerial

public int lengthIssuerSerial()
Method lengthIssuerSerial


lengthSKI

public int lengthSKI()
Method lengthSKI


lengthSubjectName

public int lengthSubjectName()
Method lengthSubjectName


lengthCertificate

public int lengthCertificate()
Method lengthCertificate


lengthCRL

public int lengthCRL()
Method lengthCRL


lengthUnknownElement

public int lengthUnknownElement()
Method lengthUnknownElement


itemIssuerSerial

public XMLX509IssuerSerial itemIssuerSerial(int i)
                                     throws XMLSecurityException
Method itemIssuerSerial

Parameters:
i -
Throws:
XMLSecurityException

itemSKI

public XMLX509SKI itemSKI(int i)
                   throws XMLSecurityException
Method itemSKI

Parameters:
i -
Throws:
XMLSecurityException

itemSubjectName

public XMLX509SubjectName itemSubjectName(int i)
                                   throws XMLSecurityException
Method itemSubjectName

Parameters:
i -
Throws:
XMLSecurityException

itemCertificate

public XMLX509Certificate itemCertificate(int i)
                                   throws XMLSecurityException
Method itemCertificate

Parameters:
i -
Throws:
XMLSecurityException

itemCRL

public XMLX509CRL itemCRL(int i)
                   throws XMLSecurityException
Method itemCRL

Parameters:
i -
Throws:
XMLSecurityException

itemUnknownElement

public org.w3c.dom.Element itemUnknownElement(int i)
Method itemUnknownElement

Parameters:
i - $todo$ implement

containsIssuerSerial

public boolean containsIssuerSerial()
Method containsIssuerSerial


containsSKI

public boolean containsSKI()
Method containsSKI


containsSubjectName

public boolean containsSubjectName()
Method containsSubjectName


containsCertificate

public boolean containsCertificate()
Method containsCertificate


containsCRL

public boolean containsCRL()
Method containsCRL


containsUnknownElement

public boolean containsUnknownElement()
Method containsUnknownElement


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.