Class AuthorityKeyIdentifier

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class AuthorityKeyIdentifier
    extends ASN1Object
    The AuthorityKeyIdentifier object.
     id-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::=  { id-ce 35 }
    
       AuthorityKeyIdentifier ::= SEQUENCE {
          keyIdentifier             [0] IMPLICIT KeyIdentifier           OPTIONAL,
          authorityCertIssuer       [1] IMPLICIT GeneralNames            OPTIONAL,
          authorityCertSerialNumber [2] IMPLICIT CertificateSerialNumber OPTIONAL  }
    
       KeyIdentifier ::= OCTET STRING
     
    • Constructor Detail

      • AuthorityKeyIdentifier

        protected AuthorityKeyIdentifier​(ASN1Sequence seq)
      • AuthorityKeyIdentifier

        public AuthorityKeyIdentifier​(SubjectPublicKeyInfo spki)
        Deprecated.
        create the extension using org.bouncycastle.cert.X509ExtensionUtils
        Calulates the keyidentifier using a SHA1 hash over the BIT STRING from SubjectPublicKeyInfo as defined in RFC2459. Example of making a AuthorityKeyIdentifier:
           SubjectPublicKeyInfo apki = new SubjectPublicKeyInfo((ASN1Sequence)new ASN1InputStream(
               publicKey.getEncoded()).readObject());
           AuthorityKeyIdentifier aki = new AuthorityKeyIdentifier(apki);
         
      • AuthorityKeyIdentifier

        public AuthorityKeyIdentifier​(SubjectPublicKeyInfo spki,
                                      GeneralNames name,
                                      java.math.BigInteger serialNumber)
        Deprecated.
        create the extension using org.bouncycastle.cert.X509ExtensionUtils
        create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided as well.
      • AuthorityKeyIdentifier

        public AuthorityKeyIdentifier​(GeneralNames name,
                                      java.math.BigInteger serialNumber)
        create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided.
      • AuthorityKeyIdentifier

        public AuthorityKeyIdentifier​(byte[] keyIdentifier)
        create an AuthorityKeyIdentifier with a precomputed key identifier
      • AuthorityKeyIdentifier

        public AuthorityKeyIdentifier​(byte[] keyIdentifier,
                                      GeneralNames name,
                                      java.math.BigInteger serialNumber)
        create an AuthorityKeyIdentifier with a precomputed key identifier and the GeneralNames tag and the serial number provided as well.