| Bouncy Castle Cryptography Library 1.39 | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.bouncycastle.asn1.ASN1Encodableorg.bouncycastle.asn1.DERObjectorg.bouncycastle.asn1.ASN1Objectorg.bouncycastle.asn1.DERBitStringorg.bouncycastle.asn1.x509.KeyUsagepublic class KeyUsageextends 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 | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
Fields inherited from class org.bouncycastle.asn1.DERBitString | |
data, padBits | |
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable | |
BER, DER | |
Fields inherited from interface org.bouncycastle.asn1.DERTags | |
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERALIZED_TIME, GENERAL_STRING, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING | |
Constructor Summary | |
| |
| |
Method Summary | |
static DERBitString |
|
String |
|
Methods inherited from class org.bouncycastle.asn1.DERBitString | |
asn1Equals, getBytes, getBytes, getInstance, getInstance, getPadBits, getPadBits, getString, hashCode, intValue, toString | |
Methods inherited from class org.bouncycastle.asn1.ASN1Object | |
equals, fromByteArray, hashCode | |
Methods inherited from class org.bouncycastle.asn1.DERObject | |
equals, hashCode, toASN1Object | |
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable | |
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object | |
public static final int cRLSign
- Field Value:
- 2
public static final int dataEncipherment
- Field Value:
- 16
public static final int decipherOnly
- Field Value:
- 32768
public static final int digitalSignature
- Field Value:
- 128
public static final int encipherOnly
- Field Value:
- 1
public static final int keyAgreement
- Field Value:
- 8
public static final int keyCertSign
- Field Value:
- 4
public static final int keyEncipherment
- Field Value:
- 32
public static final int nonRepudiation
- Field Value:
- 64
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)
public static DERBitString getInstance(Object obj)
- Overrides:
- getInstance in interface DERBitString