public class

AuthorityKeyIdentifierStructure

extends AuthorityKeyIdentifier
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
       ↳ org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure

Class Overview

A high level authority key identifier.

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
AuthorityKeyIdentifierStructure(byte[] encodedValue)
Constructor which will take the byte[] returned from getExtensionValue()
AuthorityKeyIdentifierStructure(X509Extension extension)
Constructor which will take an extension
AuthorityKeyIdentifierStructure(X509Certificate certificate)
Create an AuthorityKeyIdentifier using the passed in certificate's public key, issuer and serial number.
AuthorityKeyIdentifierStructure(PublicKey pubKey)
Create an AuthorityKeyIdentifier using just the hash of the public key.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public AuthorityKeyIdentifierStructure (byte[] encodedValue)

Constructor which will take the byte[] returned from getExtensionValue()

Parameters
encodedValue a DER octet encoded string with the extension structure in it.
Throws
IOException on parsing errors.

public AuthorityKeyIdentifierStructure (X509Extension extension)

Constructor which will take an extension

Parameters
extension a X509Extension object containing an AuthorityKeyIdentifier.

public AuthorityKeyIdentifierStructure (X509Certificate certificate)

Create an AuthorityKeyIdentifier using the passed in certificate's public key, issuer and serial number.

Parameters
certificate the certificate providing the information.
Throws
CertificateParsingException if there is a problem processing the certificate

public AuthorityKeyIdentifierStructure (PublicKey pubKey)

Create an AuthorityKeyIdentifier using just the hash of the public key.

Parameters
pubKey the key to generate the hash from.
Throws
InvalidKeyException if there is a problem using the key.