Bouncy Castle Cryptography 1.11 API Specification: Class KeyUsage
org.bouncycastle.asn1.x509
Class KeyUsage
java.lang.Object
|
+--org.bouncycastle.asn1.DERObject
|
+--org.bouncycastle.asn1.DERBitString
|
+--org.bouncycastle.asn1.x509.KeyUsage
All Implemented Interfaces: DEREncodable , DERTags
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) }
Fields inherited from interface org.bouncycastle.asn1.DERTags
BIT_STRING , BMP_STRING , BOOLEAN , CONSTRUCTED , EXTERNAL , GENERAL_STRING , GENERALIZED_TIME , GRAPHIC_STRING , IA5_STRING , INTEGER , NULL , NUMERIC_STRING , OBJECT_IDENTIFIER , OCTET_STRING , PRINTABLE_STRING , SEQUENCE , SEQUENCE_OF , SET , SET_OF , T61_STRING , TAGGED , UTC_TIME , VIDEOTEX_STRING , VISIBLE_STRING
Method Summary
java.lang.String
toString ()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
digitalSignature
public static final int digitalSignature
nonRepudiation
public static final int nonRepudiation
keyEncipherment
public static final int keyEncipherment
dataEncipherment
public static final int dataEncipherment
keyAgreement
public static final int keyAgreement
keyCertSign
public static final int keyCertSign
cRLSign
public static final int cRLSign
encipherOnly
public static final int encipherOnly
decipherOnly
public static final int decipherOnly
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. (X509KeyUsage.keyEncipherment | X509KeyUsage.dataEncipherment)
KeyUsage
public KeyUsage (DERBitString usage)
toString
public java.lang.String toString ()
Overrides: toString
in class java.lang.Object