public final class KeyUsage extends ExtensionValue
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)encoding| Constructor and Description |
|---|
KeyUsage(byte[] encoding)
Creates the extension object on the base of its encoded form.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpValue(StringBuilder sb,
String prefix) |
byte[] |
getEncoded()
Returns encoded form of the object.
|
boolean[] |
getKeyUsage() |
dumpValuepublic KeyUsage(byte[] encoding)
throws IOException
IOExceptionpublic boolean[] getKeyUsage()
public byte[] getEncoded()
ExtensionValuegetEncoded in class ExtensionValuepublic void dumpValue(StringBuilder sb, String prefix)
dumpValue in class ExtensionValue