org.bouncycastle.asn1.x509
public class KeyUsage extends DERBitString
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) }
Field Summary | |
---|---|
static int | cRLSign |
static int | dataEncipherment |
static int | decipherOnly |
static int | digitalSignature |
static int | encipherOnly |
static int | keyAgreement |
static int | keyCertSign |
static int | keyEncipherment |
static int | nonRepudiation |
Constructor Summary | |
---|---|
KeyUsage(int usage)
Basic constructor.
| |
KeyUsage(DERBitString usage) |
Method Summary | |
---|---|
static DERBitString | getInstance(Object obj) |
String | toString() |
Parameters: usage - the bitwise OR of the Key Usage flags giving the allowed uses for the key. e.g. (KeyUsage.keyEncipherment | KeyUsage.dataEncipherment)