Package org.apache.harmony.security.x509
Class SubjectKeyIdentifier
java.lang.Object
org.apache.harmony.security.x509.ExtensionValue
org.apache.harmony.security.x509.SubjectKeyIdentifier
public final class SubjectKeyIdentifier extends ExtensionValue
Subject Key Identifier Extension (OID = 2.5.29.14).
The ASN.1 definition for extension is:
id-ce-subjectKeyIdentifier OBJECT IDENTIFIER ::= { id-ce 14 }
SubjectKeyIdentifier ::= KeyIdentifier
KeyIdentifier ::= OCTET STRING
(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt)-
Field Summary
Fields inherited from class org.apache.harmony.security.x509.ExtensionValue
encoding -
Constructor Summary
Constructors Constructor Description SubjectKeyIdentifier(byte[] keyIdentifier)Creates the object on the base of the value of key identifier. -
Method Summary
Modifier and Type Method Description static SubjectKeyIdentifierdecode(byte[] encoding)Creates an object on the base of its encoded form.voiddumpValue(StringBuilder sb, String prefix)byte[]getEncoded()Returns encoded form of the object.byte[]getKeyIdentifier()The key identifier for this subject.Methods inherited from class org.apache.harmony.security.x509.ExtensionValue
dumpValue
-
Constructor Details
-
SubjectKeyIdentifier
public SubjectKeyIdentifier(byte[] keyIdentifier)Creates the object on the base of the value of key identifier.
-
-
Method Details
-
decode
Creates an object on the base of its encoded form.- Throws:
IOException
-
getKeyIdentifier
public byte[] getKeyIdentifier()The key identifier for this subject. -
getEncoded
public byte[] getEncoded()Description copied from class:ExtensionValueReturns encoded form of the object.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
- Overrides:
dumpValuein classExtensionValue
-