org.bouncycastle.x509.extension
public class AuthorityKeyIdentifierStructure extends AuthorityKeyIdentifier
BER, DER
Constructor and Description |
---|
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.
|
getAuthorityCertIssuer, getAuthorityCertSerialNumber, getInstance, getInstance, getKeyIdentifier, toASN1Object, toString
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public AuthorityKeyIdentifierStructure(byte[] encodedValue) throws java.io.IOException
encodedValue
- a DER octet encoded string with the extension structure in it.java.io.IOException
- on parsing errors.public AuthorityKeyIdentifierStructure(java.security.cert.X509Certificate certificate) throws java.security.cert.CertificateParsingException
certificate
- the certificate providing the information.java.security.cert.CertificateParsingException
- if there is a problem processing the certificatepublic AuthorityKeyIdentifierStructure(java.security.PublicKey pubKey) throws java.security.InvalidKeyException
pubKey
- the key to generate the hash from.java.security.InvalidKeyException
- if there is a problem using the key.