org.bouncycastle.jce
Class X509KeyUsage
- DEREncodable
public class X509KeyUsage
A holding class for constructing an X509 Key Usage extension.
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) }
cRLSign
public static final int cRLSign
- 2
dataEncipherment
public static final int dataEncipherment
- 16
decipherOnly
public static final int decipherOnly
- 32768
digitalSignature
public static final int digitalSignature
- 128
encipherOnly
public static final int encipherOnly
- 1
keyAgreement
public static final int keyAgreement
- 8
keyCertSign
public static final int keyCertSign
- 4
keyEncipherment
public static final int keyEncipherment
- 32
nonRepudiation
public static final int nonRepudiation
- 64
X509KeyUsage
public X509KeyUsage(int usage)
Basic constructor.
usage
- - the bitwise OR of the Key Usage flags giving the
allowed uses for the key.
e.g. (X509KeyUsage.keyEncipherment | X509KeyUsage.dataEncipherment)