public class AuthorityKeyIdentifierExtension extends Extension
The authority key identifier extension provides a means of identifying the particular public key used to sign a certificate. This extension would be used where an issuer has multiple signing keys (either due to multiple concurrent key pairs or due to changeover).
The ASN.1 syntax for this is:
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] KeyIdentifier OPTIONAL,
authorityCertIssuer [1] GeneralNames OPTIONAL,
authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL
}
KeyIdentifier ::= OCTET STRING
Extension| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
critical, extensionId, extensionValue| Constructor and Description |
|---|
AuthorityKeyIdentifierExtension(java.lang.Boolean critical,
java.lang.Object value)
Create the extension from the passed DER encoded value of the same.
|
AuthorityKeyIdentifierExtension(KeyIdentifier kid,
GeneralNames names,
SerialNumber sn)
The default constructor for this extension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the extension to the OutputStream.
|
GeneralNames |
getAuthName() |
byte[] |
getEncodedKeyIdentifier()
Return the encoded key identifier, or null if not specified.
|
KeyIdentifier |
getKeyIdentifier() |
java.lang.String |
getName()
Return the name of this extension.
|
SerialNumber |
getSerialNumber() |
java.lang.String |
toString()
Return the object as a string.
|
encode, equals, getExtensionId, getExtensionValue, getId, getValue, hashCode, isCritical, newExtensionpublic static final java.lang.String NAME
public AuthorityKeyIdentifierExtension(KeyIdentifier kid, GeneralNames names, SerialNumber sn)
kid - the KeyIdentifier associated with this extension.names - the GeneralNames associated with this extensionsn - the CertificateSerialNumber associated with
this extension.public AuthorityKeyIdentifierExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
critical - true if the extension is to be treated as critical.value - an array of DER encoded bytes of the actual value.java.lang.ClassCastException - if value is not an array of bytesjava.io.IOException - on error.public java.lang.String toString()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
public KeyIdentifier getKeyIdentifier()
public GeneralNames getAuthName()
public SerialNumber getSerialNumber()
public java.lang.String getName()
public byte[] getEncodedKeyIdentifier()
throws java.io.IOException
java.io.IOException