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 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
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 Details
-
ASN1
ASN.1 Encoder/Decoder.
-
-
Constructor Details
-
ExtendedKeyUsage
public ExtendedKeyUsage(byte[] encoding)Creates the extension object on the base of its encoded form.
-
-
Method Details
-
getExtendedKeyUsage
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
- Overrides:
dumpValuein classExtensionValue
-