Enum ClientCryptoErrorConstants
- java.lang.Object
-
- java.lang.Enum<ClientCryptoErrorConstants>
-
- io.mosip.kernel.clientcrypto.constant.ClientCryptoErrorConstants
-
- All Implemented Interfaces:
Serializable,Comparable<ClientCryptoErrorConstants>
public enum ClientCryptoErrorConstants extends Enum<ClientCryptoErrorConstants>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTEXT_RELOAD_REQUIREDCRYPTO_FAILEDINITIALIZATION_ERRORTPM_REQUIREDTPM_REQUIRED_FLAG_NOT_SET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static ClientCryptoErrorConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static ClientCryptoErrorConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TPM_REQUIRED
public static final ClientCryptoErrorConstants TPM_REQUIRED
-
INITIALIZATION_ERROR
public static final ClientCryptoErrorConstants INITIALIZATION_ERROR
-
CONTEXT_RELOAD_REQUIRED
public static final ClientCryptoErrorConstants CONTEXT_RELOAD_REQUIRED
-
CRYPTO_FAILED
public static final ClientCryptoErrorConstants CRYPTO_FAILED
-
TPM_REQUIRED_FLAG_NOT_SET
public static final ClientCryptoErrorConstants TPM_REQUIRED_FLAG_NOT_SET
-
-
Method Detail
-
values
public static ClientCryptoErrorConstants[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClientCryptoErrorConstants c : ClientCryptoErrorConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientCryptoErrorConstants valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorCode
public String getErrorCode()
- Returns:
- The error code.
-
getErrorMessage
public String getErrorMessage()
- Returns:
- The error message.
-
-