Package com.unboundid.util.ssl.cert
Class AuthorityKeyIdentifierExtension
java.lang.Object
com.unboundid.util.ssl.cert.X509CertificateExtension
com.unboundid.util.ssl.cert.AuthorityKeyIdentifierExtension
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class AuthorityKeyIdentifierExtension
extends X509CertificateExtension
This class provides an implementation of the authority key identifier X.509
certificate extension as described in
RFC 5280 section 4.2.1.1.
The OID for this extension is 2.5.29.35 and the value has the following
encoding:
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] KeyIdentifier OPTIONAL,
authorityCertIssuer [1] GeneralNames OPTIONAL,
authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
The actual format of the key identifier is not specified, although RFC 5280
does specify a couple of possibilities.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OIDThe OID (2.5.29.35) for authority key identifier extensions. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the general names for the authority certificate, if available.Retrieves the serial number for the authority certificate, if available.Retrieves the name for this extension.Retrieves the key identifier for this extension, if available.voidtoString(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 Details
-
AUTHORITY_KEY_IDENTIFIER_OID
The OID (2.5.29.35) for authority key identifier extensions.
-
-
Method Details
-
getKeyIdentifier
Retrieves the key identifier for this extension, if available.- Returns:
- The key identifier for this extension, or
nullif it was not included in the extension.
-
getAuthorityCertIssuer
Retrieves the general names for the authority certificate, if available.- Returns:
- The general names for the authority certificate, or
nullif it was not included in the extension.
-
getAuthorityCertSerialNumber
Retrieves the serial number for the authority certificate, if available.- Returns:
- The serial number for the authority certificate, or
nullif it was not included in the extension.
-
getExtensionName
Retrieves the name for this extension.- Overrides:
getExtensionNamein classX509CertificateExtension- Returns:
- The name for this extension.
-
toString
Appends a string representation of this certificate extension to the provided buffer.- Overrides:
toStringin classX509CertificateExtension- Parameters:
buffer- The buffer to which the information should be appended.
-