org.gudy.bouncycastle.asn1.x509
Class SubjectKeyIdentifier
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.SubjectKeyIdentifier
- All Implemented Interfaces:
- DEREncodable
public class SubjectKeyIdentifier
- extends ASN1Encodable
The SubjectKeyIdentifier object.
SubjectKeyIdentifier::= OCTET STRING
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SubjectKeyIdentifier
public SubjectKeyIdentifier(byte[] keyid)
SubjectKeyIdentifier
public SubjectKeyIdentifier(ASN1OctetString keyid)
SubjectKeyIdentifier
public SubjectKeyIdentifier(SubjectPublicKeyInfo spki)
- Calulates the keyidentifier using a SHA1 hash over the BIT STRING
from SubjectPublicKeyInfo as defined in RFC2459.
getInstance
public static SubjectKeyIdentifier getInstance(ASN1TaggedObject obj,
boolean explicit)
getInstance
public static SubjectKeyIdentifier getInstance(java.lang.Object obj)
getKeyIdentifier
public byte[] getKeyIdentifier()
toASN1Object
public DERObject toASN1Object()
- Specified by:
toASN1Object
in class ASN1Encodable