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:
java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OID
AUTHORITY_KEY_IDENTIFIER_OID
The OID (2.5.29.35) for authority key identifier extensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneralNames
getAuthorityCertIssuer()
Retrieves the general names for the authority certificate, if available.java.math.BigInteger
getAuthorityCertSerialNumber()
Retrieves the serial number for the authority certificate, if available.java.lang.String
getExtensionName()
Retrieves the name for this extension.ASN1OctetString
getKeyIdentifier()
Retrieves the key identifier for this extension, if available.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
-
AUTHORITY_KEY_IDENTIFIER_OID
public static final OID AUTHORITY_KEY_IDENTIFIER_OID
The OID (2.5.29.35) for authority key identifier extensions.
-
-
Method Detail
-
getKeyIdentifier
public ASN1OctetString getKeyIdentifier()
Retrieves the key identifier for this extension, if available.- Returns:
- The key identifier for this extension, or
null
if it was not included in the extension.
-
getAuthorityCertIssuer
public GeneralNames getAuthorityCertIssuer()
Retrieves the general names for the authority certificate, if available.- Returns:
- The general names for the authority certificate, or
null
if it was not included in the extension.
-
getAuthorityCertSerialNumber
public java.math.BigInteger getAuthorityCertSerialNumber()
Retrieves the serial number for the authority certificate, if available.- Returns:
- The serial number for the authority certificate, or
null
if it was not included in the 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.
-
-