public class X509KeyUsage extends ASN1Object
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) }
Modifier and Type | Field and Description |
---|---|
static int |
cRLSign |
static int |
dataEncipherment |
static int |
decipherOnly |
static int |
digitalSignature |
static int |
encipherOnly |
static int |
keyAgreement |
static int |
keyCertSign |
static int |
keyEncipherment |
static int |
nonRepudiation |
Constructor and Description |
---|
X509KeyUsage(int usage)
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public static final int digitalSignature
public static final int nonRepudiation
public static final int keyEncipherment
public static final int dataEncipherment
public static final int keyAgreement
public static final int keyCertSign
public static final int cRLSign
public static final int encipherOnly
public static final int decipherOnly
public X509KeyUsage(int usage)
usage
- - the bitwise OR of the Key Usage flags giving the
allowed uses for the key.
e.g. (X509KeyUsage.keyEncipherment | X509KeyUsage.dataEncipherment)public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object