Enum CryptomanagerErrorCode
- java.lang.Object
-
- java.lang.Enum<CryptomanagerErrorCode>
-
- io.mosip.kernel.cryptomanager.constant.CryptomanagerErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<CryptomanagerErrorCode>
public enum CryptomanagerErrorCode extends Enum<CryptomanagerErrorCode>
Error Constants for Crypto-Manager-Service- Since:
- 1.0.0
- Author:
- Urvil Joshi
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Getter for errorCodeStringgetErrorMessage()Getter for errorMessagestatic CryptomanagerErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static CryptomanagerErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_SUCH_ALGORITHM_EXCEPTION
public static final CryptomanagerErrorCode NO_SUCH_ALGORITHM_EXCEPTION
-
INVALID_SPEC_PUBLIC_KEY
public static final CryptomanagerErrorCode INVALID_SPEC_PUBLIC_KEY
-
INVALID_DATA_WITHOUT_KEY_BREAKER
public static final CryptomanagerErrorCode INVALID_DATA_WITHOUT_KEY_BREAKER
-
INVALID_DATA
public static final CryptomanagerErrorCode INVALID_DATA
-
INVALID_REQUEST
public static final CryptomanagerErrorCode INVALID_REQUEST
-
CANNOT_CONNECT_TO_KEYMANAGER_SERVICE
public static final CryptomanagerErrorCode CANNOT_CONNECT_TO_KEYMANAGER_SERVICE
-
KEYMANAGER_SERVICE_ERROR
public static final CryptomanagerErrorCode KEYMANAGER_SERVICE_ERROR
-
RESPONSE_PARSE_ERROR
public static final CryptomanagerErrorCode RESPONSE_PARSE_ERROR
-
DATE_TIME_PARSE_EXCEPTION
public static final CryptomanagerErrorCode DATE_TIME_PARSE_EXCEPTION
-
HEX_DATA_PARSE_EXCEPTION
public static final CryptomanagerErrorCode HEX_DATA_PARSE_EXCEPTION
-
CERTIFICATE_THUMBPRINT_ERROR
public static final CryptomanagerErrorCode CERTIFICATE_THUMBPRINT_ERROR
-
INTERNAL_SERVER_ERROR
public static final CryptomanagerErrorCode INTERNAL_SERVER_ERROR
-
-
Method Detail
-
values
public static CryptomanagerErrorCode[] 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 (CryptomanagerErrorCode c : CryptomanagerErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptomanagerErrorCode 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()
Getter for errorCode- Returns:
- errorCode
-
getErrorMessage
public String getErrorMessage()
Getter for errorMessage- Returns:
- errorMessage
-
-