public enum KeyUsageExceptionCause extends java.lang.Enum<KeyUsageExceptionCause>
KeyUsageException to specify the cause of the exception.| Enum Constant and Description |
|---|
KEY_AVAILABILITY_CHECK_FAILED
The provided key does not meet the availability requirements.
|
KEY_FUNCTION_NOT_PERMITTED
An attempt has been made to use a key for a cryptographic purpose that the key's attributes are not set to allow it to do.
|
KEY_NOT_FOUND
Key pointed to by this object was not found on the HSM.
|
KEY_SIZE_RANGE
The supplied key size is outside the range of supported key sizes for the key type.
|
KEY_TYPE_INCONSISTENT
The specified key has an invalid type for the specified mechanism.
|
KEY_UNEXTRACTABLE
The attributes of the key do not allow it to be extracted.
|
UNSUPPORTED_KEY_TYPE
The provided key type is not supported.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyUsageExceptionCause |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyUsageExceptionCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyUsageExceptionCause KEY_AVAILABILITY_CHECK_FAILED
Resolution: The application should wait until the key is available on the set number of HSMs or update the key availability requirement configuration option.
public static final KeyUsageExceptionCause KEY_FUNCTION_NOT_PERMITTED
Resolution: The application should use a key with attributes that allow this cryptographic operation.
public static final KeyUsageExceptionCause KEY_SIZE_RANGE
Resolution: The application should use a supported key size for the given operation.
public static final KeyUsageExceptionCause KEY_TYPE_INCONSISTENT
Resolution: The application should use a valid key type for this mechanism
public static final KeyUsageExceptionCause UNSUPPORTED_KEY_TYPE
Resolution: The application should use a supported key type for this operation.
public static final KeyUsageExceptionCause KEY_NOT_FOUND
Resolution: The application should only use active keys.
public static final KeyUsageExceptionCause KEY_UNEXTRACTABLE
Resolution: The application may only extract keys which have the KeyAttribute.EXTRACTABLE attribute.
public static KeyUsageExceptionCause[] values()
for (KeyUsageExceptionCause c : KeyUsageExceptionCause.values()) System.out.println(c);
public static KeyUsageExceptionCause 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