Enum SignatureErrorCode
- java.lang.Object
-
- java.lang.Enum<SignatureErrorCode>
-
- io.mosip.kernel.signature.constant.SignatureErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<SignatureErrorCode>
public enum SignatureErrorCode extends Enum<SignatureErrorCode>
Constants for CryptoSignaure- Since:
- 1.0.0
- Author:
- Uday Kumarl
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_SERVER_ERRORINVALID_INPUTINVALID_JSONINVALID_VERIFY_INPUTNOT_VALIDREQUEST_DATA_NOT_VALIDSIGN_ERRORVERIFY_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static SignatureErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static SignatureErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUEST_DATA_NOT_VALID
public static final SignatureErrorCode REQUEST_DATA_NOT_VALID
-
NOT_VALID
public static final SignatureErrorCode NOT_VALID
-
INVALID_INPUT
public static final SignatureErrorCode INVALID_INPUT
-
INVALID_JSON
public static final SignatureErrorCode INVALID_JSON
-
SIGN_ERROR
public static final SignatureErrorCode SIGN_ERROR
-
VERIFY_ERROR
public static final SignatureErrorCode VERIFY_ERROR
-
INVALID_VERIFY_INPUT
public static final SignatureErrorCode INVALID_VERIFY_INPUT
-
INTERNAL_SERVER_ERROR
public static final SignatureErrorCode INTERNAL_SERVER_ERROR
-
-
Method Detail
-
values
public static SignatureErrorCode[] 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 (SignatureErrorCode c : SignatureErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SignatureErrorCode 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()
-
getErrorMessage
public String getErrorMessage()
-
-