public enum KeyWrapExceptionCause extends java.lang.Enum<KeyWrapExceptionCause>
KeyWrapException to specify the cause of the exception.| Enum Constant and Description |
|---|
WRAPPED_KEY_INVALID
Key cannot be wrapped.
|
WRAPPED_KEY_UNEXTRACTABLE
The attributes of the key to be wrapped do not allow it to be extracted.
|
WRAPPING_KEY_INVALID
Key cannot be used for wrapping.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyWrapExceptionCause |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyWrapExceptionCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyWrapExceptionCause WRAPPED_KEY_INVALID
Resolution: The application should use a valid key to wrap.
public static final KeyWrapExceptionCause WRAPPING_KEY_INVALID
Resolution: The application should use a valid wrapping key.
public static final KeyWrapExceptionCause WRAPPED_KEY_UNEXTRACTABLE
Resolution: The application may only wrap keys which have the KeyAttribute.EXTRACTABLE attribute.
public static KeyWrapExceptionCause[] values()
for (KeyWrapExceptionCause c : KeyWrapExceptionCause.values()) System.out.println(c);
public static KeyWrapExceptionCause 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