org.bouncycastle.x509.extension

Class AuthorityKeyIdentifierStructure

public class AuthorityKeyIdentifierStructure extends AuthorityKeyIdentifier

A high level authority key identifier.
Constructor Summary
AuthorityKeyIdentifierStructure(byte[] encodedValue)
Constructor which will take the byte[] returned from getExtensionValue()
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.

Constructor Detail

AuthorityKeyIdentifierStructure

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.

AuthorityKeyIdentifierStructure

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

AuthorityKeyIdentifierStructure

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.