| java.lang.Object org.bouncycastle.asn1.ASN1Encodable org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
All known Subclasses: org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure,
AuthorityKeyIdentifier | public class AuthorityKeyIdentifier extends ASN1Encodable (Code) | | The AuthorityKeyIdentifier object.
id-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= { id-ce 35 }
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] IMPLICIT KeyIdentifier OPTIONAL,
authorityCertIssuer [1] IMPLICIT GeneralNames OPTIONAL,
authorityCertSerialNumber [2] IMPLICIT CertificateSerialNumber OPTIONAL }
KeyIdentifier ::= OCTET STRING
|
AuthorityKeyIdentifier | public AuthorityKeyIdentifier(SubjectPublicKeyInfo spki)(Code) | | Calulates the keyidentifier using a SHA1 hash over the BIT STRING
from SubjectPublicKeyInfo as defined in RFC2459.
Example of making a AuthorityKeyIdentifier:
SubjectPublicKeyInfo apki = new SubjectPublicKeyInfo((ASN1Sequence)new ASN1InputStream(
publicKey.getEncoded()).readObject());
AuthorityKeyIdentifier aki = new AuthorityKeyIdentifier(apki);
|
AuthorityKeyIdentifier | public AuthorityKeyIdentifier(GeneralNames name, BigInteger serialNumber)(Code) | | create an AuthorityKeyIdentifier with the GeneralNames tag and
the serial number provided.
|
AuthorityKeyIdentifier | public AuthorityKeyIdentifier(byte[] keyIdentifier)(Code) | | create an AuthorityKeyIdentifier with a precomupted key identifier
|
AuthorityKeyIdentifier | public AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames name, BigInteger serialNumber)(Code) | | create an AuthorityKeyIdentifier with a precomupted key identifier
and the GeneralNames tag and the serial number provided as well.
|
getAuthorityCertSerialNumber | public BigInteger getAuthorityCertSerialNumber()(Code) | | |
getKeyIdentifier | public byte[] getKeyIdentifier()(Code) | | |
toASN1Object | public DERObject toASN1Object()(Code) | | Produce an object suitable for an ASN1OutputStream.
|
|
|