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 |
|---|---|
| private DERBitString | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | KeyUsage(int
- the bitwise OR of the Key Usage flags giving the
allowed uses for the key.
e.g. (KeyUsage.keyEncipherment | KeyUsage.dataEncipherment) usage)Basic constructor. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static KeyUsage | |
| public byte[] | |
| public static KeyUsage | |
| public int | |
| public boolean | Returns: true if all bits are set, false otherwise.combination of usage flags. usages)Return true if a given usage bit is set, false otherwise. |
| public ASN1Primitive | toASN1Primitive()
Implements abstract org. Implements org. |
| public String |
| bitString | back to summary |
|---|---|
| private DERBitString bitString | |
| cRLSign | back to summary |
|---|---|
| public static final int cRLSign | |
| dataEncipherment | back to summary |
|---|---|
| public static final int dataEncipherment | |
| decipherOnly | back to summary |
|---|---|
| public static final int decipherOnly | |
| digitalSignature | back to summary |
|---|---|
| public static final int digitalSignature | |
| encipherOnly | back to summary |
|---|---|
| public static final int encipherOnly | |
| keyAgreement | back to summary |
|---|---|
| public static final int keyAgreement | |
| keyCertSign | back to summary |
|---|---|
| public static final int keyCertSign | |
| keyEncipherment | back to summary |
|---|---|
| public static final int keyEncipherment | |
| nonRepudiation | back to summary |
|---|---|
| public static final int nonRepudiation | |
| KeyUsage | back to summary |
|---|---|
| public KeyUsage(int usage) Basic constructor.
| |
| KeyUsage | back to summary |
|---|---|
| private KeyUsage(DERBitString bitString) | |
| fromExtensions | back to summary |
|---|---|
| public static KeyUsage fromExtensions(Extensions extensions) | |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() | |
| getInstance | back to summary |
|---|---|
| public static KeyUsage getInstance(Object obj) | |
| getPadBits | back to summary |
|---|---|
| public int getPadBits() | |
| hasUsages | back to summary |
|---|---|
| public boolean hasUsages(int usages) Return true if a given usage bit is set, false otherwise.
| |
| toASN1Primitive | back to summary |
|---|---|
| public ASN1Primitive toASN1Primitive() Implements abstract org. Implements org. Doc from org. Method providing a primitive representation of this object suitable for encoding.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |