public enum KeyUsageBit extends Enum<KeyUsageBit>
| Enum Constant and Description |
|---|
CRL_SIGN
CRL signing
Binary: 10 Hex: 0x02 Dec: 2 |
DATA_ENCIPHERMENT
Data encipherment
Binary: 10000 Hex: 0x10 Dec: 16 |
DECIPHER_ONLY
Dicipherment only
Binary: 1000000000000000 Hex: 0x8000 Dec: 32768 |
DIGITAL_SIGNATURE
Digital signature
Binary: 10000000 Hex: 0x80 Dec: 128 |
ENCIPHERMENT_ONLY
Encipherment only
Binary: 1 Hex: 0x01 Dec: 1 |
KEY_AGREEMENT
Key agreement
Binary: 100 Hex: 0x08 Dec: 8 |
KEY_CERT_SIGN
Certificate signing
Binary: 100 Hex: 0x04 Dec: 4 |
KEY_ENCIPHERMENT
Key encipherment
Binary: 100000 Hex: 0x20 Dec: 32 |
NON_REPUDIATION
Non repudiation
Binary: 1000000 Hex: 0x40 Dec: 64 |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the key usage bit.
|
int |
getUsageBit()
Gets the key usage bit as an integer.
|
static KeyUsageBit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyUsageBit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyUsageBit DIGITAL_SIGNATURE
public static final KeyUsageBit NON_REPUDIATION
public static final KeyUsageBit KEY_ENCIPHERMENT
public static final KeyUsageBit DATA_ENCIPHERMENT
public static final KeyUsageBit KEY_AGREEMENT
public static final KeyUsageBit KEY_CERT_SIGN
public static final KeyUsageBit CRL_SIGN
public static final KeyUsageBit ENCIPHERMENT_ONLY
public static final KeyUsageBit DECIPHER_ONLY
public static KeyUsageBit[] values()
for (KeyUsageBit c : KeyUsageBit.values()) System.out.println(c);
public static KeyUsageBit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getUsageBit()
public String getName()
Copyright © 2010-2016 The Direct Project. All Rights Reserved.