|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.bouncycastle.asn1.ASN1Encodable org.gudy.bouncycastle.asn1.x509.AuthorityKeyIdentifier
public class AuthorityKeyIdentifier
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
Field Summary |
---|
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable |
---|
BER, DER |
Constructor Summary | |
---|---|
AuthorityKeyIdentifier(ASN1Sequence seq)
|
|
AuthorityKeyIdentifier(byte[] keyIdentifier)
create an AuthorityKeyIdentifier with a precomupted key identifier |
|
AuthorityKeyIdentifier(byte[] keyIdentifier,
GeneralNames name,
BigInteger serialNumber)
create an AuthorityKeyIdentifier with a precomupted key identifier and 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(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. |
Method Summary | |
---|---|
GeneralNames |
getAuthorityCertIssuer()
|
BigInteger |
getAuthorityCertSerialNumber()
|
static AuthorityKeyIdentifier |
getInstance(ASN1TaggedObject obj,
boolean explicit)
|
static AuthorityKeyIdentifier |
getInstance(Object obj)
|
byte[] |
getKeyIdentifier()
|
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream. |
String |
toString()
|
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable |
---|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AuthorityKeyIdentifier(ASN1Sequence seq)
public AuthorityKeyIdentifier(SubjectPublicKeyInfo spki)
SubjectPublicKeyInfo apki = new SubjectPublicKeyInfo((ASN1Sequence)new ASN1InputStream( publicKey.getEncoded()).readObject()); AuthorityKeyIdentifier aki = new AuthorityKeyIdentifier(apki);
public AuthorityKeyIdentifier(SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber)
public AuthorityKeyIdentifier(GeneralNames name, BigInteger serialNumber)
public AuthorityKeyIdentifier(byte[] keyIdentifier)
public AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames name, BigInteger serialNumber)
Method Detail |
---|
public static AuthorityKeyIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)
public static AuthorityKeyIdentifier getInstance(Object obj)
public byte[] getKeyIdentifier()
public GeneralNames getAuthorityCertIssuer()
public BigInteger getAuthorityCertSerialNumber()
public DERObject toASN1Object()
toASN1Object
in class ASN1Encodable
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |