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 Details

    • ASN1

      public static final ASN1Type ASN1
  • Constructor Details

    • AuthorityKeyIdentifier

      public AuthorityKeyIdentifier​(byte[] keyIdentifier, GeneralNames authorityCertIssuer, BigInteger authorityCertSerialNumber)
  • Method Details

    • 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: ExtensionValue
      Returns encoded form of the object.
      Overrides:
      getEncoded in class ExtensionValue
    • dumpValue

      public void dumpValue​(StringBuilder sb, String prefix)
      Overrides:
      dumpValue in class ExtensionValue