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 Modifier and Type Field Description static ASN1TypeASN1-
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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
ASN1
public static final ASN1Type ASN1
-
-
Constructor Detail
-
AuthorityKeyIdentifier
public AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames authorityCertIssuer, BigInteger authorityCertSerialNumber)
-
-
Method Detail
-
decode
public static AuthorityKeyIdentifier decode(byte[] encoding) throws IOException
- Throws:
IOException
-
getKeyIdentifier
public byte[] getKeyIdentifier()
The key identifier for the authority.- Returns:
- key identifier or
null
-
getAuthorityCertIssuer
public GeneralNames getAuthorityCertIssuer()
The GeneralNames for this authority key identifier.- Returns:
- names for the authority certificate issuer or
null
-
getAuthorityCertSerialNumber
public BigInteger 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
public void dumpValue(StringBuilder sb, String prefix)
- Overrides:
dumpValuein classExtensionValue
-
-