Package org.apache.harmony.security.x509
Class ExtendedKeyUsage
- java.lang.Object
-
- org.apache.harmony.security.x509.ExtensionValue
-
- org.apache.harmony.security.x509.ExtendedKeyUsage
-
public final class ExtendedKeyUsage extends ExtensionValue
Extended Key Usage Extension (OID == 2.5.29.37). The ASN.1 definition for Extended Key Usage Extension is:id-ce-extKeyUsage OBJECT IDENTIFIER ::= { id-ce 37 } ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId KeyPurposeId ::= OBJECT IDENTIFIER(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt
-
-
Field Summary
Fields Modifier and Type Field Description static ASN1TypeASN1ASN.1 Encoder/Decoder.-
Fields inherited from class org.apache.harmony.security.x509.ExtensionValue
encoding
-
-
Constructor Summary
Constructors Constructor Description ExtendedKeyUsage(byte[] encoding)Creates the extension object on the base of its encoded form.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddumpValue(StringBuilder sb, String prefix)byte[]getEncoded()Returns encoded form of the object.List<String>getExtendedKeyUsage()Returns the list of string representation of OIDs corresponding to key purpose IDs.-
Methods inherited from class org.apache.harmony.security.x509.ExtensionValue
dumpValue
-
-
-
-
Field Detail
-
ASN1
public static final ASN1Type ASN1
ASN.1 Encoder/Decoder.
-
-
Method Detail
-
getExtendedKeyUsage
public List<String> getExtendedKeyUsage() throws IOException
Returns the list of string representation of OIDs corresponding to key purpose IDs.- Throws:
IOException
-
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
-
-