Top Description Constructors Methods
org.bouncycastle.x509.extension

public Class AuthorityKeyIdentifierStructure

extends AuthorityKeyIdentifier
Class Inheritance
Imports
java.io.IOException, java.security.InvalidKeyException, .PublicKey, java.security.cert.CertificateParsingException, .X509Certificate, org.bouncycastle.asn1.ASN1OctetString, .ASN1Sequence, org.bouncycastle.asn1.x509.AuthorityKeyIdentifier, .Extension, .GeneralName, .GeneralNames, .SubjectPublicKeyInfo, .X509Extension, org.bouncycastle.jce.PrincipalUtil

Deprecated

use JcaX509ExtensionUtils and AuthorityKeyIdentifier.getInstance()

A high level authority key identifier.

Constructor Summary

AccessConstructor and Description
public
AuthorityKeyIdentifierStructure(byte[]
a DER octet encoded string with the extension structure in it.
encodedValue
)

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

public
AuthorityKeyIdentifierStructure(X509Extension
a X509Extension object containing an AuthorityKeyIdentifier.
extension
)

Deprecated use constructor that takes Extension
Constructor which will take an extension
public
AuthorityKeyIdentifierStructure(Extension
a X509Extension object containing an AuthorityKeyIdentifier.
extension
)

Constructor which will take an extension

public
AuthorityKeyIdentifierStructure(X509Certificate
the certificate providing the information.
certificate
)

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

public
AuthorityKeyIdentifierStructure(PublicKey
the key to generate the hash from.
pubKey
)

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

Method Summary

Modifier and TypeMethod and Description
private static ASN1Sequence
private static ASN1Sequence
Inherited from org.bouncycastle.asn1.x509.AuthorityKeyIdentifier:
fromExtensionsgetAuthorityCertIssuergetAuthorityCertSerialNumbergetInstancegetInstancegetKeyIdentifiertoASN1PrimitivetoString

Constructor Detail

AuthorityKeyIdentifierStructureback to summary
public AuthorityKeyIdentifierStructure(byte[] encodedValue) throws IOException

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

Parameters
encodedValue:byte[]

a DER octet encoded string with the extension structure in it.

Exceptions
IOException:
on parsing errors.
AuthorityKeyIdentifierStructureback to summary
public AuthorityKeyIdentifierStructure(X509Extension extension)

Deprecated

use constructor that takes Extension

Constructor which will take an extension

Parameters
extension:X509Extension

a X509Extension object containing an AuthorityKeyIdentifier.

AuthorityKeyIdentifierStructureback to summary
public AuthorityKeyIdentifierStructure(Extension extension)

Constructor which will take an extension

Parameters
extension:Extension

a X509Extension object containing an AuthorityKeyIdentifier.

AuthorityKeyIdentifierStructureback to summary
public AuthorityKeyIdentifierStructure(X509Certificate certificate) throws CertificateParsingException

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

Parameters
certificate:X509Certificate

the certificate providing the information.

Exceptions
CertificateParsingException:
if there is a problem processing the certificate
AuthorityKeyIdentifierStructureback to summary
public AuthorityKeyIdentifierStructure(PublicKey pubKey) throws InvalidKeyException

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

Parameters
pubKey:PublicKey

the key to generate the hash from.

Exceptions
InvalidKeyException:
if there is a problem using the key.

Method Detail

fromCertificateback to summary
private static ASN1Sequence fromCertificate(X509Certificate certificate) throws CertificateParsingException
fromKeyback to summary
private static ASN1Sequence fromKey(PublicKey pubKey) throws InvalidKeyException