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
dataEncipherment
public static final int dataEncipherment
decipherOnly
public static final int decipherOnly
digitalSignature
public static final int digitalSignature
encipherOnly
public static final int encipherOnly
keyAgreement
public static final int keyAgreement
keyCertSign
public static final int keyCertSign
keyEncipherment
public static final int keyEncipherment
nonRepudiation
public static final int nonRepudiation
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)