public enum KeyAttribute extends java.lang.Enum<KeyAttribute>
KeyAttribute contains key attribute values supported by the CloudHSM JCE provider. This
type is used with KeyAttributesMap and KeyPairAttributesMap to specify multiple
key attributes for an operation.| Enum Constant and Description |
|---|
CRT_COEFFICIENT
Chinese Remainder Theorem coefficient.
|
DECRYPT
Allows a key to be used for decrypt operations.
|
DERIVE
Allows a key to be used to derive other keys.
|
EC_PARAMS
EC domain parameters.
|
EC_POINT
EC point represented as affine coordinates.
|
ENCRYPT
Allows a key to be used for encrypt operations.
|
EXTRACTABLE
Allows a key to be wrapped.
|
ID
An Identifier that can be later used to retrieve a key by id.
|
KCV
Used to verify the integrity of a key.
|
KEY_TYPE
Contains a CloudHSM key algorithm.
|
LABEL
A label that can be later used to retrieve a key by name.
|
LOCAL
Indicates a key was generated by an HSM.
|
MODULUS
Sets the modulus value for an RSA key.
|
MODULUS_BITS
A modulus length given in bits.
|
OBJECT_CLASS
Contains a CloudHSM object type.
|
PRIME_EXPONENT_P
RSA prime exponent
p. |
PRIME_EXPONENT_Q
RSA prime exponent
q. |
PRIME_P
RSA prime factor
p. |
PRIME_Q
RSA prime factor
q. |
PRIVATE
Indicates a key is a private key.
|
PRIVATE_EXPONENT
Sets the private exponent of an RSA key.
|
PUBLIC_EXPONENT
Sets the public exponent of an RSA key.
|
SIGN
Allows a key to be used for sign operations.
|
SIZE
A key size given in bits.
|
TOKEN
Designates a key as persistent.
|
UNWRAP
Allows a key to be used for unwrap operations.
|
VALUE
Sets the encoded value of a key.
|
VERIFY
Allows a key to be used for verify operations.
|
WRAP
Allows a key to be used for wrap operations.
|
WRAP_WITH_TRUSTED
Allows a key to be wrapped only by keys with the
TRUSTED attribute (not modeled in
the JCE library). |
| Modifier and Type | Method and Description |
|---|---|
static KeyAttribute |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyAttribute OBJECT_CLASS
ObjectClassTypepublic static final KeyAttribute KEY_TYPE
KeyTypepublic static final KeyAttribute LABEL
public static final KeyAttribute ID
public static final KeyAttribute SIZE
public static final KeyAttribute MODULUS_BITS
public static final KeyAttribute DECRYPT
public static final KeyAttribute DERIVE
public static final KeyAttribute ENCRYPT
public static final KeyAttribute EXTRACTABLE
public static final KeyAttribute LOCAL
public static final KeyAttribute PRIVATE
public static final KeyAttribute SIGN
public static final KeyAttribute TOKEN
public static final KeyAttribute UNWRAP
public static final KeyAttribute VERIFY
public static final KeyAttribute WRAP
public static final KeyAttribute VALUE
public static final KeyAttribute MODULUS
public static final KeyAttribute PUBLIC_EXPONENT
public static final KeyAttribute KCV
public static final KeyAttribute PRIVATE_EXPONENT
public static final KeyAttribute PRIME_P
p.public static final KeyAttribute PRIME_Q
q.public static final KeyAttribute PRIME_EXPONENT_P
p.public static final KeyAttribute PRIME_EXPONENT_Q
q.public static final KeyAttribute CRT_COEFFICIENT
public static final KeyAttribute EC_PARAMS
ECParameterSpecpublic static final KeyAttribute EC_POINT
ECPointpublic static final KeyAttribute WRAP_WITH_TRUSTED
TRUSTED attribute (not modeled in
the JCE library).public static KeyAttribute[] values()
for (KeyAttribute c : KeyAttribute.values()) System.out.println(c);
public static KeyAttribute valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null