Package com.unboundid.util.ssl.cert
Class SubjectKeyIdentifierExtension
- java.lang.Object
-
- com.unboundid.util.ssl.cert.X509CertificateExtension
-
- com.unboundid.util.ssl.cert.SubjectKeyIdentifierExtension
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SubjectKeyIdentifierExtension extends X509CertificateExtension
This class provides an implementation of the subject key identifier X.509 certificate extension as described in RFC 5280 section 4.2.1.2. The OID for this extension is 2.5.29.14. The value is an octet string and is intended to identify the public key used by a certificate. The actual format of the key identifier is not specified, although RFC 5280 does specify a couple of possibilities.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OID
SUBJECT_KEY_IDENTIFIER_OID
The OID (2.5.29.14) for subject key identifier extensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtensionName()
Retrieves the name for this extension.ASN1OctetString
getKeyIdentifier()
Retrieves the key identifier for this extension.void
toString(java.lang.StringBuilder buffer)
Appends a string representation of this certificate extension to the provided buffer.-
Methods inherited from class com.unboundid.util.ssl.cert.X509CertificateExtension
getOID, getValue, isCritical, toString
-
-
-
-
Field Detail
-
SUBJECT_KEY_IDENTIFIER_OID
public static final OID SUBJECT_KEY_IDENTIFIER_OID
The OID (2.5.29.14) for subject key identifier extensions.
-
-
Method Detail
-
getKeyIdentifier
public ASN1OctetString getKeyIdentifier()
Retrieves the key identifier for this extension.- Returns:
- The key identifier for this extension.
-
getExtensionName
public java.lang.String getExtensionName()
Retrieves the name for this extension.- Overrides:
getExtensionName
in classX509CertificateExtension
- Returns:
- The name for this extension.
-
toString
public void toString(java.lang.StringBuilder buffer)
Appends a string representation of this certificate extension to the provided buffer.- Overrides:
toString
in classX509CertificateExtension
- Parameters:
buffer
- The buffer to which the information should be appended.
-
-