public enum CloudHsmKeyStoreExceptionCause extends java.lang.Enum<CloudHsmKeyStoreExceptionCause>
CloudHsmKeyStoreException to specify the cause of the exception.| Enum Constant and Description |
|---|
INVALID_ALIAS
The alias provided to the KeyStore is invalid.
|
INVALID_CHAIN
The certificate chain provided to the KeyStore is invalid.
|
INVALID_KEY
The key provided to the KeyStore is invalid.
|
UNSUPPORTED
The requested operation is not supported by
CloudHsmKeyStore. |
| Modifier and Type | Method and Description |
|---|---|
static CloudHsmKeyStoreExceptionCause |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CloudHsmKeyStoreExceptionCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloudHsmKeyStoreExceptionCause INVALID_ALIAS
Resolution: The application should call Throwable.getMessage() to check the error message and
provide a valid alias.
public static final CloudHsmKeyStoreExceptionCause INVALID_KEY
Resolution: The application should provide a valid key and retry the operation.
public static final CloudHsmKeyStoreExceptionCause INVALID_CHAIN
Resolution: The application should provide a valid certificate chain and retry the operation.
public static final CloudHsmKeyStoreExceptionCause UNSUPPORTED
CloudHsmKeyStore.
Resolution: The application may not use CloudHsmKeyStore for the requested operation.
public static CloudHsmKeyStoreExceptionCause[] values()
for (CloudHsmKeyStoreExceptionCause c : CloudHsmKeyStoreExceptionCause.values()) System.out.println(c);
public static CloudHsmKeyStoreExceptionCause 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