Bouncy Castle Cryptography Library 1.37

org.bouncycastle.x509.extension
Class AuthorityKeyIdentifierStructure

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
          extended by org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure
All 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(byte[] encodedValue)
          Constructor which will take the byte[] returned from getExtensionValue()
AuthorityKeyIdentifierStructure(java.security.PublicKey pubKey)
          Create an AuthorityKeyIdentifier using just the hash of the public key.
AuthorityKeyIdentifierStructure(java.security.cert.X509Certificate certificate)
          Create an AuthorityKeyIdentifier using the passed in certificate's public key, issuer and serial number.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorityKeyIdentifierStructure

public AuthorityKeyIdentifierStructure(byte[] encodedValue)
                                throws java.io.IOException
Constructor which will take the byte[] returned from getExtensionValue()

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

AuthorityKeyIdentifierStructure

public AuthorityKeyIdentifierStructure(java.security.cert.X509Certificate certificate)
                                throws java.security.cert.CertificateParsingException
Create an AuthorityKeyIdentifier using the passed in certificate's public key, issuer and serial number.

Parameters:
certificate - the certificate providing the information.
Throws:
java.security.cert.CertificateParsingException - if there is a problem processing the certificate

AuthorityKeyIdentifierStructure

public AuthorityKeyIdentifierStructure(java.security.PublicKey pubKey)
                                throws java.security.InvalidKeyException
Create an AuthorityKeyIdentifier using just the hash of the public key.

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

Bouncy Castle Cryptography Library 1.37