org.bouncycastle.asn1.x509
Class KeyUsage
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.DERBitString
org.bouncycastle.asn1.x509.KeyUsage
- All Implemented Interfaces:
- ASN1Encodable, ASN1String
public class KeyUsage
- extends DERBitString
The KeyUsage object.
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) }
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
digitalSignature
public static final int digitalSignature
- See Also:
- Constant Field Values
nonRepudiation
public static final int nonRepudiation
- See Also:
- Constant Field Values
keyEncipherment
public static final int keyEncipherment
- See Also:
- Constant Field Values
dataEncipherment
public static final int dataEncipherment
- See Also:
- Constant Field Values
keyAgreement
public static final int keyAgreement
- See Also:
- Constant Field Values
keyCertSign
public static final int keyCertSign
- See Also:
- Constant Field Values
cRLSign
public static final int cRLSign
- See Also:
- Constant Field Values
encipherOnly
public static final int encipherOnly
- See Also:
- Constant Field Values
decipherOnly
public static final int decipherOnly
- See Also:
- Constant Field Values
KeyUsage
public KeyUsage(int usage)
- Basic constructor.
- Parameters:
usage
- - the bitwise OR of the Key Usage flags giving the
allowed uses for the key.
e.g. (KeyUsage.keyEncipherment | KeyUsage.dataEncipherment)
KeyUsage
public KeyUsage(DERBitString usage)
getInstance
public static DERBitString getInstance(java.lang.Object obj)
toString
public java.lang.String toString()
- Overrides:
toString
in class DERBitString