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.
|
| Modifier and Type | Method and Description |
|---|---|
private static ASN1Sequence |
fromCertificate(java.security.cert.X509Certificate certificate) |
private static ASN1Sequence |
fromKey(java.security.PublicKey pubKey) |
getAuthorityCertIssuer, getAuthorityCertSerialNumber, getInstance, getInstance, getKeyIdentifier, toASN1Object, toStringequals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodepublic 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.private static ASN1Sequence fromCertificate(java.security.cert.X509Certificate certificate) throws java.security.cert.CertificateParsingException
java.security.cert.CertificateParsingExceptionprivate static ASN1Sequence fromKey(java.security.PublicKey pubKey) throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.