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
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
LOG
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(XMLX509Certificate xmlX509Certificate)
Method addvoid
add(XMLX509CRL xmlX509CRL)
Method addvoid
add(XMLX509Digest xmlX509Digest)
Method addvoid
add(XMLX509IssuerSerial xmlX509IssuerSerial)
Method addvoid
add(XMLX509SKI xmlX509SKI)
Method addvoid
add(XMLX509SubjectName xmlX509SubjectName)
Method addvoid
addCertificate(byte[] x509certificateBytes)
Method addCertificatevoid
addCertificate(java.security.cert.X509Certificate x509certificate)
Method addCertificatevoid
addCRL(byte[] crlBytes)
Method addCRLvoid
addDigest(byte[] x509CertificateDigestBytes, java.lang.String algorithmURI)
Method addDigestvoid
addDigest(java.security.cert.X509Certificate x509certificate, java.lang.String algorithmURI)
Method addDigestvoid
addIssuerSerial(java.lang.String X509IssuerName, int X509SerialNumber)
Method addIssuerSerialvoid
addIssuerSerial(java.lang.String X509IssuerName, java.lang.String X509SerialNumber)
Method addIssuerSerialvoid
addIssuerSerial(java.lang.String X509IssuerName, java.math.BigInteger X509SerialNumber)
Method addIssuerSerialvoid
addSKI(byte[] skiBytes)
Method addSKIvoid
addSKI(java.security.cert.X509Certificate x509certificate)
Method addSKIvoid
addSubjectName(java.lang.String subjectName)
Method addSubjectNamevoid
addSubjectName(java.security.cert.X509Certificate x509certificate)
Method addSubjectNamevoid
addUnknownElement(org.w3c.dom.Element element)
Method addUnknownElementboolean
containsCertificate()
Method containsCertificateboolean
containsCRL()
Method containsCRLboolean
containsDigest()
Method containsDigestboolean
containsIssuerSerial()
Method containsIssuerSerialboolean
containsSKI()
Method containsSKIboolean
containsSubjectName()
Method containsSubjectNameboolean
containsUnknownElement()
Method containsUnknownElementjava.lang.String
getBaseLocalName()
Returns the localname of the Elements of the sub-class.XMLX509Certificate
itemCertificate(int i)
Method itemCertificateXMLX509CRL
itemCRL(int i)
Method itemCRLXMLX509Digest
itemDigest(int i)
Method itemDigestXMLX509IssuerSerial
itemIssuerSerial(int i)
Method itemIssuerSerialXMLX509SKI
itemSKI(int i)
Method itemSKIXMLX509SubjectName
itemSubjectName(int i)
Method itemSubjectNameorg.w3c.dom.Element
itemUnknownElement(int i)
Method itemUnknownElementint
lengthCertificate()
Method lengthCertificateint
lengthCRL()
Method lengthCRLint
lengthDigest()
Method lengthDigestint
lengthIssuerSerial()
Method lengthIssuerSerialint
lengthSKI()
Method lengthSKIint
lengthSubjectName()
Method lengthSubjectNameint
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, 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
-
-
-
-
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
-
-
addDigest
public void addDigest(java.security.cert.X509Certificate x509certificate, java.lang.String algorithmURI) throws XMLSecurityException
Method addDigest- Parameters:
x509certificate
-algorithmURI
-- Throws:
XMLSecurityException
-
addDigest
public void addDigest(byte[] x509CertificateDigestBytes, java.lang.String algorithmURI)
Method addDigest- Parameters:
x509CertificateDigestBytes
-algorithmURI
-
-
add
public void add(XMLX509Digest xmlX509Digest)
Method add- Parameters:
xmlX509Digest
-
-
addUnknownElement
public void addUnknownElement(org.w3c.dom.Element element)
Method addUnknownElement- Parameters:
element
-
-
lengthIssuerSerial
public int lengthIssuerSerial()
Method lengthIssuerSerial- Returns:
- the number of IssuerSerial elements in this X509Data
-
lengthSKI
public int lengthSKI()
Method lengthSKI- Returns:
- the number of SKI elements in this X509Data
-
lengthSubjectName
public int lengthSubjectName()
Method lengthSubjectName- Returns:
- the number of SubjectName elements in this X509Data
-
lengthCertificate
public int lengthCertificate()
Method lengthCertificate- Returns:
- the number of Certificate elements in this X509Data
-
lengthCRL
public int lengthCRL()
Method lengthCRL- Returns:
- the number of CRL elements in this X509Data
-
lengthDigest
public int lengthDigest()
Method lengthDigest- Returns:
- the number of X509Digest elements in this X509Data
-
lengthUnknownElement
public int lengthUnknownElement()
Method lengthUnknownElement- Returns:
- the number of UnknownElement elements in this X509Data
-
itemIssuerSerial
public XMLX509IssuerSerial itemIssuerSerial(int i) throws XMLSecurityException
Method itemIssuerSerial- Parameters:
i
-- Returns:
- the X509IssuerSerial, null if not present
- Throws:
XMLSecurityException
-
itemSKI
public XMLX509SKI itemSKI(int i) throws XMLSecurityException
Method itemSKI- Parameters:
i
-- Returns:
- the X509SKI, null if not present
- Throws:
XMLSecurityException
-
itemSubjectName
public XMLX509SubjectName itemSubjectName(int i) throws XMLSecurityException
Method itemSubjectName- Parameters:
i
-- Returns:
- the X509SubjectName, null if not present
- Throws:
XMLSecurityException
-
itemCertificate
public XMLX509Certificate itemCertificate(int i) throws XMLSecurityException
Method itemCertificate- Parameters:
i
-- Returns:
- the X509Certificate, null if not present
- Throws:
XMLSecurityException
-
itemCRL
public XMLX509CRL itemCRL(int i) throws XMLSecurityException
Method itemCRL- Parameters:
i
-- Returns:
- the X509CRL, null if not present
- Throws:
XMLSecurityException
-
itemDigest
public XMLX509Digest itemDigest(int i) throws XMLSecurityException
Method itemDigest- Parameters:
i
-- Returns:
- the X509Digest, null if not present
- Throws:
XMLSecurityException
-
itemUnknownElement
public org.w3c.dom.Element itemUnknownElement(int i)
Method itemUnknownElement- Parameters:
i
-- Returns:
- the Unknown Element at i TODO implement
-
containsIssuerSerial
public boolean containsIssuerSerial()
Method containsIssuerSerial- Returns:
- true if this X509Data contains a IssuerSerial
-
containsSKI
public boolean containsSKI()
Method containsSKI- Returns:
- true if this X509Data contains a SKI
-
containsSubjectName
public boolean containsSubjectName()
Method containsSubjectName- Returns:
- true if this X509Data contains a SubjectName
-
containsCertificate
public boolean containsCertificate()
Method containsCertificate- Returns:
- true if this X509Data contains a Certificate
-
containsDigest
public boolean containsDigest()
Method containsDigest- Returns:
- true if this X509Data contains an X509Digest
-
containsCRL
public boolean containsCRL()
Method containsCRL- Returns:
- true if this X509Data contains a CRL
-
containsUnknownElement
public boolean containsUnknownElement()
Method containsUnknownElement- Returns:
- true if this X509Data contains an UnknownElement
-
getBaseLocalName
public java.lang.String getBaseLocalName()
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalName
in classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-
-