org.bouncycastle.x509.extension

Class AuthorityKeyIdentifierStructure

Implemented Interfaces:
DEREncodable

public class AuthorityKeyIdentifierStructure
extends AuthorityKeyIdentifier

A high level authority key identifier.

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

AuthorityKeyIdentifierStructure(PublicKey pubKey)
Create an AuthorityKeyIdentifier using just the hash of the public key.
AuthorityKeyIdentifierStructure(X509Certificate certificate)
Create an AuthorityKeyIdentifier using the passed in certificate's public key, issuer and serial number.
AuthorityKeyIdentifierStructure(byte[] encodedValue)
Constructor which will take the byte[] returned from getExtensionValue()

Method Summary

Methods inherited from class org.bouncycastle.asn1.x509.AuthorityKeyIdentifier

getAuthorityCertIssuer, getAuthorityCertSerialNumber, getInstance, getInstance, getKeyIdentifier, toASN1Object, toString

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Constructor Details

AuthorityKeyIdentifierStructure

public AuthorityKeyIdentifierStructure(PublicKey pubKey)
            throws InvalidKeyException
Create an AuthorityKeyIdentifier using just the hash of the public key.
Parameters:
pubKey - the key to generate the hash from.

AuthorityKeyIdentifierStructure

public AuthorityKeyIdentifierStructure(X509Certificate certificate)
            throws CertificateParsingException
Create an AuthorityKeyIdentifier using the passed in certificate's public key, issuer and serial number.
Parameters:
certificate - the certificate providing the information.

AuthorityKeyIdentifierStructure

public AuthorityKeyIdentifierStructure(byte[] encodedValue)
            throws IOException
Constructor which will take the byte[] returned from getExtensionValue()
Parameters:
encodedValue - a DER octet encoded string with the extension structure in it.