Enum KeymanagerErrorCode
- java.lang.Object
-
- java.lang.Enum<KeymanagerErrorCode>
-
- io.mosip.kernel.keymanager.hsm.constant.KeymanagerErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<KeymanagerErrorCode>
public enum KeymanagerErrorCode extends Enum<KeymanagerErrorCode>
Error Code for Softhsm Keystore- Since:
- 1.0.0
- Author:
- Dharmesh Khandelwal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERTIFICATE_PROCESSING_ERRORINVALID_CONFIG_FILEKEYSTORE_NOT_INSTANTIATEDKEYSTORE_PROCESSING_ERRORNO_SUCH_ALIASNO_SUCH_SECURITY_PROVIDERNOT_VALID_PKCS11_STORE_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Function to get error codeStringgetErrorMessage()Function to get the error messagestatic KeymanagerErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static KeymanagerErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_CONFIG_FILE
public static final KeymanagerErrorCode INVALID_CONFIG_FILE
-
NO_SUCH_SECURITY_PROVIDER
public static final KeymanagerErrorCode NO_SUCH_SECURITY_PROVIDER
-
KEYSTORE_PROCESSING_ERROR
public static final KeymanagerErrorCode KEYSTORE_PROCESSING_ERROR
-
NO_SUCH_ALIAS
public static final KeymanagerErrorCode NO_SUCH_ALIAS
-
CERTIFICATE_PROCESSING_ERROR
public static final KeymanagerErrorCode CERTIFICATE_PROCESSING_ERROR
-
NOT_VALID_PKCS11_STORE_TYPE
public static final KeymanagerErrorCode NOT_VALID_PKCS11_STORE_TYPE
-
KEYSTORE_NOT_INSTANTIATED
public static final KeymanagerErrorCode KEYSTORE_NOT_INSTANTIATED
-
-
Method Detail
-
values
public static KeymanagerErrorCode[] 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 (KeymanagerErrorCode c : KeymanagerErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeymanagerErrorCode 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
-
getErrorMessage
public String getErrorMessage()
Function to get the error message- Returns:
errorMessage
-
-