Package org.bouncycastle.asn1.x509
Class AuthorityKeyIdentifier
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
- All Implemented Interfaces:
ASN1Encodable
,Encodable
- Direct Known Subclasses:
AuthorityKeyIdentifierStructure
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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionAuthorityKeyIdentifier
(byte[] keyIdentifier) create an AuthorityKeyIdentifier with a precomputed key identifierAuthorityKeyIdentifier
(byte[] keyIdentifier, GeneralNames name, BigInteger serialNumber) create an AuthorityKeyIdentifier with a precomputed key identifier and the GeneralNames tag and the serial number provided as well.protected
AuthorityKeyIdentifier
(GeneralNames name, BigInteger serialNumber) create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided.Deprecated.create the extension using org.bouncycastle.cert.X509ExtensionUtilsAuthorityKeyIdentifier
(SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber) Deprecated.create the extension using org.bouncycastle.cert.X509ExtensionUtils -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorityKeyIdentifier
fromExtensions
(Extensions extensions) static AuthorityKeyIdentifier
getInstance
(Object obj) static AuthorityKeyIdentifier
getInstance
(ASN1TaggedObject obj, boolean explicit) byte[]
Produce an object suitable for an ASN1OutputStream.toString()
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
AuthorityKeyIdentifier
-
AuthorityKeyIdentifier
Deprecated.create the extension using org.bouncycastle.cert.X509ExtensionUtilsCalulates 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(SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber) Deprecated.create the extension using org.bouncycastle.cert.X509ExtensionUtilscreate an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided as well. -
AuthorityKeyIdentifier
create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided. -
AuthorityKeyIdentifier
public AuthorityKeyIdentifier(byte[] keyIdentifier) create an AuthorityKeyIdentifier with a precomputed key identifier -
AuthorityKeyIdentifier
create an AuthorityKeyIdentifier with a precomputed key identifier and the GeneralNames tag and the serial number provided as well.
-
-
Method Details
-
getInstance
-
getInstance
-
fromExtensions
-
getKeyIdentifier
public byte[] getKeyIdentifier() -
getAuthorityCertIssuer
-
getAuthorityCertSerialNumber
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-
toString
-