Package org.apache.harmony.security.x509
Class KeyUsage
java.lang.Object
org.apache.harmony.security.x509.ExtensionValue
org.apache.harmony.security.x509.KeyUsage
public final class KeyUsage extends ExtensionValue
Key Usage Extension (OID = 2.5.29.15).
The ASN.1 definition for Key Usage Extension is:
id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 }
KeyUsage ::= BIT STRING {
digitalSignature (0),
nonRepudiation (1),
keyEncipherment (2),
dataEncipherment (3),
keyAgreement (4),
keyCertSign (5),
cRLSign (6),
encipherOnly (7),
decipherOnly (8)
}
(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 KeyUsage(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.boolean[]getKeyUsage()Methods inherited from class org.apache.harmony.security.x509.ExtensionValue
dumpValue
-
Constructor Details
-
KeyUsage
Creates the extension object on the base of its encoded form.- Throws:
IOException
-
-
Method Details
-
getKeyUsage
public boolean[] getKeyUsage() -
getEncoded
public byte[] getEncoded()Description copied from class:ExtensionValueReturns encoded form of the object.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
- Overrides:
dumpValuein classExtensionValue
-