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
All Methods Static Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
decode
public static SubjectKeyIdentifier decode(byte[] encoding) throws IOException
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
public void dumpValue(StringBuilder sb, String prefix)
- Overrides:
dumpValuein classExtensionValue
-
-