Class XMLX509SKI
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.SignatureElementProxy
-
- org.apache.xml.security.keys.content.x509.XMLX509SKI
-
- All Implemented Interfaces:
XMLX509DataContent
public class XMLX509SKI extends SignatureElementProxy implements XMLX509DataContent
Handles SubjectKeyIdentifier (SKI) for X.509v3.- Author:
- $Author$
- See Also:
- Interface X509Extension
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SKI_OID
SubjectKeyIdentifier (id-ce-subjectKeyIdentifier) (2.5.29.14)
: This extension identifies the public key being certified.-
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
Constructors Constructor Description XMLX509SKI(org.w3c.dom.Document doc, byte[] skiBytes)
Constructor X509SKIXMLX509SKI(org.w3c.dom.Document doc, java.security.cert.X509Certificate x509certificate)
Constructor XMLX509SKIXMLX509SKI(org.w3c.dom.Element element, java.lang.String BaseURI)
Constructor XMLX509SKI
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getBaseLocalName()
Returns the localname of the Elements of the sub-class.byte[]
getSKIBytes()
Method getSKIBytesstatic byte[]
getSKIBytesFromCert(java.security.cert.X509Certificate cert)
Method getSKIBytesFromCert-
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, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
-
-
-
-
Field Detail
-
SKI_OID
public static final java.lang.String SKI_OID
SubjectKeyIdentifier (id-ce-subjectKeyIdentifier) (2.5.29.14)
: This extension identifies the public key being certified. It enables distinct keys used by the same subject to be differentiated (e.g., as key updating occurs).
A key identifer shall be unique with respect to all key identifiers for the subject with which it is used. This extension is always non-critical.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLX509SKI
public XMLX509SKI(org.w3c.dom.Document doc, byte[] skiBytes)
Constructor X509SKI- Parameters:
doc
-skiBytes
-
-
XMLX509SKI
public XMLX509SKI(org.w3c.dom.Document doc, java.security.cert.X509Certificate x509certificate) throws XMLSecurityException
Constructor XMLX509SKI- Parameters:
doc
-x509certificate
-- Throws:
XMLSecurityException
-
XMLX509SKI
public XMLX509SKI(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityException
Constructor XMLX509SKI- Parameters:
element
-BaseURI
-- Throws:
XMLSecurityException
-
-
Method Detail
-
getSKIBytes
public byte[] getSKIBytes() throws XMLSecurityException
Method getSKIBytes- Returns:
- the skibytes
- Throws:
XMLSecurityException
-
getSKIBytesFromCert
public static byte[] getSKIBytesFromCert(java.security.cert.X509Certificate cert) throws XMLSecurityException
Method getSKIBytesFromCert- Parameters:
cert
-- Returns:
- sky bytes from the given certificate
- Throws:
XMLSecurityException
- See Also:
X509Extension.getExtensionValue(java.lang.String)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
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 classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-
-