public enum KeyAttributePermissiveProfile extends java.lang.Enum<KeyAttributePermissiveProfile>
When a KeyAttributesMap or KeyPairAttributesMap is instantiated, an
appropriate profile will be called upon to pre-configure the ParameterSpec's key attributes and
values.
The specific profile used is determined automatically by the key operation and type of ParameterSpec object being configured.
After a profile is applied, the key attributes and values stored in KeyAttributesMap
or KeyPairAttributesMap (if any) will be superimposed. Therefore, the creator of the
KeyAttributesMap or KeyPairAttributesMap object is responsible for explicitly
disabling (setting to
false) any key attributes that should not remain permissive.
The instantiated ParameterSpec object may then be passed as a parameter to an appropriate key operation method or class, where the combined key attributes and values will be utilized by the key operation.
KeyAttributesMap,
KeyPairAttributesMap| Enum Constant and Description |
|---|
KEY_CREATION
This profile will be applied during the generation and import of Symmetric, AES, DES3 and
Generic Secret keys.
|
KEY_PAIR_CREATION
This profile will be applied during the generation of key pairs.
|
| Modifier and Type | Method and Description |
|---|---|
KeyAttributesMap |
getKeyDefaultsMap()
Retrieves this profile's key attributes and values stored in a
KeyAttributesMap
object. |
KeyPairAttributesMap |
getKeyPairDefaultsMap()
Retrieves this profile's key attributes and values stored in a
KeyPairAttributesMap
object. |
static KeyAttributePermissiveProfile |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyAttributePermissiveProfile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyAttributePermissiveProfile KEY_PAIR_CREATION
The following key attributes and values will act as defaults before a KeyPairAttributesMap is applied:
| Attribute | Value |
|---|---|
| TOKEN | false |
| PRIVATE | true |
| ENCRYPT | true |
| VERIFY | true |
| WRAP | true |
| Attribute | Value |
|---|---|
| TOKEN | false |
| PRIVATE | true |
| EXTRACTABLE | true |
| DECRYPT | true |
| SIGN | true |
| UNWRAP | true |
public static final KeyAttributePermissiveProfile KEY_CREATION
The following key attributes and values will act as defaults before a KeyAttributesMap is applied:
| Attribute | Value |
|---|---|
| TOKEN | false |
| PRIVATE | true |
| EXTRACTABLE | true |
| ENCRYPT | true |
| DECRYPT | true |
| SIGN | true |
| VERIFY | true |
| WRAP | true |
| UNWRAP | true |
public static KeyAttributePermissiveProfile[] values()
for (KeyAttributePermissiveProfile c : KeyAttributePermissiveProfile.values()) System.out.println(c);
public static KeyAttributePermissiveProfile 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 nullpublic KeyAttributesMap getKeyDefaultsMap()
KeyAttributesMap
object.KeyAttributesMap object.java.lang.UnsupportedOperationException - If called against KEY_PAIR_CREATION.public KeyPairAttributesMap getKeyPairDefaultsMap()
KeyPairAttributesMap
object.KeyPairAttributesMap object.java.lang.UnsupportedOperationException - If called against KEY_CREATION.