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
-
Field Summary
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(XMLX509Certificate xmlX509Certificate) Method addvoidadd(XMLX509CRL xmlX509CRL) Method addvoidadd(XMLX509Digest xmlX509Digest) Method addvoidadd(XMLX509IssuerSerial xmlX509IssuerSerial) Method addvoidadd(XMLX509SKI xmlX509SKI) Method addvoidadd(XMLX509SubjectName xmlX509SubjectName) Method addvoidaddCertificate(byte[] x509certificateBytes) Method addCertificatevoidaddCertificate(X509Certificate x509certificate) Method addCertificatevoidaddCRL(byte[] crlBytes) Method addCRLvoidMethod addDigestvoidaddDigest(X509Certificate x509certificate, String algorithmURI) Method addDigestvoidaddIssuerSerial(String X509IssuerName, int X509SerialNumber) Method addIssuerSerialvoidaddIssuerSerial(String X509IssuerName, String X509SerialNumber) Method addIssuerSerialvoidaddIssuerSerial(String X509IssuerName, BigInteger X509SerialNumber) Method addIssuerSerialvoidaddSKI(byte[] skiBytes) Method addSKIvoidaddSKI(X509Certificate x509certificate) Method addSKIvoidaddSubjectName(String subjectName) Method addSubjectNamevoidaddSubjectName(X509Certificate x509certificate) Method addSubjectNamevoidaddUnknownElement(Element element) Method addUnknownElementbooleanMethod containsCertificatebooleanMethod containsCRLbooleanMethod containsDigestbooleanMethod containsIssuerSerialbooleanMethod containsSKIbooleanMethod containsSubjectNamebooleanMethod containsUnknownElementReturns the localname of the Elements of the sub-class.itemCertificate(int i) Method itemCertificateitemCRL(int i) Method itemCRLitemDigest(int i) Method itemDigestitemIssuerSerial(int i) Method itemIssuerSerialitemSKI(int i) Method itemSKIitemSubjectName(int i) Method itemSubjectNameitemUnknownElement(int i) Method itemUnknownElementintMethod lengthCertificateintMethod lengthCRLintMethod lengthDigestintMethod lengthIssuerSerialintMethod lengthSKIintMethod lengthSubjectNameintMethod lengthUnknownElementMethods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespaceMethods 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 Details
-
X509Data
Constructor X509Data- Parameters:
doc-
-
X509Data
Constructor X509Data- Parameters:
element-baseURI-- Throws:
XMLSecurityException
-
-
Method Details
-
addIssuerSerial
Method addIssuerSerial- Parameters:
X509IssuerName-X509SerialNumber-
-
addIssuerSerial
Method addIssuerSerial- Parameters:
X509IssuerName-X509SerialNumber-
-
addIssuerSerial
Method addIssuerSerial- Parameters:
X509IssuerName-X509SerialNumber-
-
add
Method add- Parameters:
xmlX509IssuerSerial-
-
addSKI
public void addSKI(byte[] skiBytes) Method addSKI- Parameters:
skiBytes-
-
addSKI
Method addSKI- Parameters:
x509certificate-- Throws:
XMLSecurityException
-
add
Method add- Parameters:
xmlX509SKI-
-
addSubjectName
Method addSubjectName- Parameters:
subjectName-
-
addSubjectName
Method addSubjectName- Parameters:
x509certificate-
-
add
Method add- Parameters:
xmlX509SubjectName-
-
addCertificate
Method addCertificate- Parameters:
x509certificate-- Throws:
XMLSecurityException
-
addCertificate
public void addCertificate(byte[] x509certificateBytes) Method addCertificate- Parameters:
x509certificateBytes-
-
add
Method add- Parameters:
xmlX509Certificate-
-
addCRL
public void addCRL(byte[] crlBytes) Method addCRL- Parameters:
crlBytes-
-
add
Method add- Parameters:
xmlX509CRL-
-
addDigest
public void addDigest(X509Certificate x509certificate, String algorithmURI) throws XMLSecurityException Method addDigest- Parameters:
x509certificate-algorithmURI-- Throws:
XMLSecurityException
-
addDigest
Method addDigest- Parameters:
x509CertificateDigestBytes-algorithmURI-
-
add
Method add- Parameters:
xmlX509Digest-
-
addUnknownElement
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
Method itemIssuerSerial- Parameters:
i-- Returns:
- the X509IssuerSerial, null if not present
- Throws:
XMLSecurityException
-
itemSKI
Method itemSKI- Parameters:
i-- Returns:
- the X509SKI, null if not present
- Throws:
XMLSecurityException
-
itemSubjectName
Method itemSubjectName- Parameters:
i-- Returns:
- the X509SubjectName, null if not present
- Throws:
XMLSecurityException
-
itemCertificate
Method itemCertificate- Parameters:
i-- Returns:
- the X509Certificate, null if not present
- Throws:
XMLSecurityException
-
itemCRL
Method itemCRL- Parameters:
i-- Returns:
- the X509CRL, null if not present
- Throws:
XMLSecurityException
-
itemDigest
Method itemDigest- Parameters:
i-- Returns:
- the X509Digest, null if not present
- Throws:
XMLSecurityException
-
itemUnknownElement
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
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-