Class AuthorityKeyIdentifier
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
public class AuthorityKeyIdentifier extends ASN1Object
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
Constructors Constructor Description AuthorityKeyIdentifier(SubjectPublicKeyInfo spki)
Calulates the keyidentifier using a SHA1 hash over the BIT STRING from SubjectPublicKeyInfo as defined in RFC2459. AuthorityKeyIdentifier(SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber)
create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided as well. AuthorityKeyIdentifier(GeneralNames name, BigInteger serialNumber)
create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided. AuthorityKeyIdentifier(Array<byte> keyIdentifier)
create an AuthorityKeyIdentifier with a precomputed key identifier AuthorityKeyIdentifier(Array<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.
-
Method Summary
Modifier and Type Method Description static AuthorityKeyIdentifier
getInstance(ASN1TaggedObject obj, boolean explicit)
static AuthorityKeyIdentifier
getInstance(Object obj)
static AuthorityKeyIdentifier
fromExtensions(Extensions extensions)
Array<byte>
getKeyIdentifier()
GeneralNames
getAuthorityCertIssuer()
BigInteger
getAuthorityCertSerialNumber()
ASN1Primitive
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream. String
toString()
-
-
Constructor Detail
-
AuthorityKeyIdentifier
AuthorityKeyIdentifier(SubjectPublicKeyInfo spki)
Calulates the keyidentifier using a SHA1 hash over the BIT STRING from SubjectPublicKeyInfo as defined in RFC2459.
-
AuthorityKeyIdentifier
AuthorityKeyIdentifier(SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber)
create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided as well.
-
AuthorityKeyIdentifier
AuthorityKeyIdentifier(GeneralNames name, BigInteger serialNumber)
create an AuthorityKeyIdentifier with the GeneralNames tag and the serial number provided.
-
AuthorityKeyIdentifier
AuthorityKeyIdentifier(Array<byte> keyIdentifier)
create an AuthorityKeyIdentifier with a precomputed key identifier
-
AuthorityKeyIdentifier
AuthorityKeyIdentifier(Array<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.
-
-
Method Detail
-
getInstance
static AuthorityKeyIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
static AuthorityKeyIdentifier getInstance(Object obj)
-
fromExtensions
static AuthorityKeyIdentifier fromExtensions(Extensions extensions)
-
getKeyIdentifier
Array<byte> getKeyIdentifier()
-
getAuthorityCertIssuer
GeneralNames getAuthorityCertIssuer()
-
getAuthorityCertSerialNumber
BigInteger getAuthorityCertSerialNumber()
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
-
-
-
-