@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AuthorityKeyIdentifierExtension extends X509CertificateExtension
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.
Modifier and Type | Field and Description |
---|---|
static OID |
AUTHORITY_KEY_IDENTIFIER_OID
The OID (2.5.29.35) for authority key identifier extensions.
|
Modifier and Type | Method and 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.
|
getOID, getValue, isCritical, toString
@NotNull public static final OID AUTHORITY_KEY_IDENTIFIER_OID
@Nullable public ASN1OctetString getKeyIdentifier()
null
if it
was not included in the extension.@Nullable public GeneralNames getAuthorityCertIssuer()
null
if it was not included in the extension.@Nullable public java.math.BigInteger getAuthorityCertSerialNumber()
null
if it was not included in the extension.@NotNull public java.lang.String getExtensionName()
getExtensionName
in class X509CertificateExtension
public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in class X509CertificateExtension
buffer
- The buffer to which the information should be appended.