Enum KeymanagerErrorConstant
- java.lang.Object
-
- java.lang.Enum<KeymanagerErrorConstant>
-
- io.mosip.kernel.keymanagerservice.constant.KeymanagerErrorConstant
-
- All Implemented Interfaces:
Serializable,Comparable<KeymanagerErrorConstant>
public enum KeymanagerErrorConstant extends Enum<KeymanagerErrorConstant>
This ENUM provides all the constant identified for Keymanager Service errors.- Version:
- 1.0.0
- Author:
- Dharmesh Khandelwal
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static KeymanagerErrorConstantvalueOf(String name)Returns the enum constant of this type with the specified name.static KeymanagerErrorConstant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALIDITY_CHECK_FAIL
public static final KeymanagerErrorConstant VALIDITY_CHECK_FAIL
-
APPLICATIONID_NOT_VALID
public static final KeymanagerErrorConstant APPLICATIONID_NOT_VALID
-
NO_UNIQUE_ALIAS
public static final KeymanagerErrorConstant NO_UNIQUE_ALIAS
-
NO_SUCH_ALGORITHM_EXCEPTION
public static final KeymanagerErrorConstant NO_SUCH_ALGORITHM_EXCEPTION
-
INVALID_REQUEST
public static final KeymanagerErrorConstant INVALID_REQUEST
-
DATE_TIME_PARSE_EXCEPTION
public static final KeymanagerErrorConstant DATE_TIME_PARSE_EXCEPTION
-
CRYPTO_EXCEPTION
public static final KeymanagerErrorConstant CRYPTO_EXCEPTION
-
KEY_STORE_EXCEPTION
public static final KeymanagerErrorConstant KEY_STORE_EXCEPTION
-
INVALID_RESPONSE_TYPE
public static final KeymanagerErrorConstant INVALID_RESPONSE_TYPE
-
REFERENCE_ID_NOT_SUPPORTED
public static final KeymanagerErrorConstant REFERENCE_ID_NOT_SUPPORTED
-
ROOT_KEY_NOT_FOUND
public static final KeymanagerErrorConstant ROOT_KEY_NOT_FOUND
-
KEY_GENERATION_NOT_DONE
public static final KeymanagerErrorConstant KEY_GENERATION_NOT_DONE
-
CERTIFICATE_PARSING_ERROR
public static final KeymanagerErrorConstant CERTIFICATE_PARSING_ERROR
-
KEY_NOT_MATCHING
public static final KeymanagerErrorConstant KEY_NOT_MATCHING
-
UPLOAD_NOT_ALLOWED
public static final KeymanagerErrorConstant UPLOAD_NOT_ALLOWED
-
GENERATION_NOT_ALLOWED
public static final KeymanagerErrorConstant GENERATION_NOT_ALLOWED
-
CERTIFICATE_NOT_FOUND
public static final KeymanagerErrorConstant CERTIFICATE_NOT_FOUND
-
DECRYPTION_NOT_ALLOWED
public static final KeymanagerErrorConstant DECRYPTION_NOT_ALLOWED
-
INTERNAL_SERVER_ERROR
public static final KeymanagerErrorConstant INTERNAL_SERVER_ERROR
-
-
Method Detail
-
values
public static KeymanagerErrorConstant[] 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 (KeymanagerErrorConstant c : KeymanagerErrorConstant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeymanagerErrorConstant 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.
-
-