Package org.apache.harmony.security.x509
Class AuthorityKeyIdentifier
java.lang.Object
org.apache.harmony.security.x509.ExtensionValue
org.apache.harmony.security.x509.AuthorityKeyIdentifier
public final class AuthorityKeyIdentifier extends ExtensionValue
The class encapsulates the ASN.1 DER encoding/decoding work
with Authority Key Identifier Extension (OID = 2.5.29.35).
(as specified in RFC 3280 -
Internet X.509 Public Key Infrastructure.
Certificate and Certificate Revocation List (CRL) Profile.
http://www.ietf.org/rfc/rfc3280.txt):
id-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= { id-ce 35 }
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] KeyIdentifier OPTIONAL,
authorityCertIssuer [1] GeneralNames OPTIONAL,
authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }
KeyIdentifier ::= OCTET STRING
-
Field Summary
Fields inherited from class org.apache.harmony.security.x509.ExtensionValue
encoding -
Constructor Summary
Constructors Constructor Description AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames authorityCertIssuer, BigInteger authorityCertSerialNumber) -
Method Summary
Modifier and Type Method Description static AuthorityKeyIdentifierdecode(byte[] encoding)voiddumpValue(StringBuilder sb, String prefix)GeneralNamesgetAuthorityCertIssuer()The GeneralNames for this authority key identifier.BigIntegergetAuthorityCertSerialNumber()The serial number of the certificate identified by this authority key identifier.byte[]getEncoded()Returns encoded form of the object.byte[]getKeyIdentifier()The key identifier for the authority.Methods inherited from class org.apache.harmony.security.x509.ExtensionValue
dumpValue
-
Field Details
-
ASN1
-
-
Constructor Details
-
AuthorityKeyIdentifier
public AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames authorityCertIssuer, BigInteger authorityCertSerialNumber)
-
-
Method Details
-
decode
- Throws:
IOException
-
getKeyIdentifier
public byte[] getKeyIdentifier()The key identifier for the authority.- Returns:
- key identifier or
null
-
getAuthorityCertIssuer
The GeneralNames for this authority key identifier.- Returns:
- names for the authority certificate issuer or
null
-
getAuthorityCertSerialNumber
The serial number of the certificate identified by this authority key identifier.- Returns:
- authority's certificate serial number or
null
-
getEncoded
public byte[] getEncoded()Description copied from class:ExtensionValueReturns encoded form of the object.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
- Overrides:
dumpValuein classExtensionValue
-