public class AuthorityKeyIdentifierStructure extends AuthorityKeyIdentifier
BER, DER
Constructor and Description |
---|
AuthorityKeyIdentifierStructure(byte[] encodedValue)
Constructor which will take the byte[] returned from getExtensionValue()
|
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(X509Extension extension)
Constructor which will take an extension
|
getAuthorityCertIssuer, getAuthorityCertSerialNumber, getInstance, getInstance, getKeyIdentifier, toASN1Object, toString
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public AuthorityKeyIdentifierStructure(byte[] encodedValue) throws IOException
encodedValue
- a DER octet encoded string with the extension structure in it.IOException
- on parsing errors.public AuthorityKeyIdentifierStructure(X509Extension extension)
extension
- a X509Extension object containing an AuthorityKeyIdentifier.public AuthorityKeyIdentifierStructure(X509Certificate certificate) throws CertificateParsingException
certificate
- the certificate providing the information.CertificateParsingException
- if there is a problem processing the certificatepublic AuthorityKeyIdentifierStructure(PublicKey pubKey) throws InvalidKeyException
pubKey
- the key to generate the hash from.InvalidKeyException
- if there is a problem using the key.Copyright © 2015. All rights reserved.