Enum MosipSecurityExceptionCodeConstants
- java.lang.Object
-
- java.lang.Enum<MosipSecurityExceptionCodeConstants>
-
- io.mosip.kernel.core.security.constants.MosipSecurityExceptionCodeConstants
-
- All Implemented Interfaces:
Serializable,Comparable<MosipSecurityExceptionCodeConstants>
public enum MosipSecurityExceptionCodeConstants extends Enum<MosipSecurityExceptionCodeConstants>
Enumfor exception constants- 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 MosipSecurityExceptionCodeConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static MosipSecurityExceptionCodeConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOSIP_INVALID_KEY_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_KEY_EXCEPTION
-
MOSIP_INVALID_KEY_SIZE_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_KEY_SIZE_EXCEPTION
-
MOSIP_INVALID_LENGTH_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_LENGTH_EXCEPTION
-
MOSIP_INVALID_DATA_LENGTH_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_DATA_LENGTH_EXCEPTION
-
MOSIP_INVALID_KEY_CORRUPT_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_KEY_CORRUPT_EXCEPTION
-
MOSIP_INVALID_ASYMMETRIC_PRIVATE_KEY_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_ASYMMETRIC_PRIVATE_KEY_EXCEPTION
-
MOSIP_INVALID_ASYMMETRIC_PUBLIC_KEY_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_ASYMMETRIC_PUBLIC_KEY_EXCEPTION
-
MOSIP_INVALID_DATA_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_DATA_EXCEPTION
-
MOSIP_INVALID_ENCRYPTED_DATA_CORRUPT_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_ENCRYPTED_DATA_CORRUPT_EXCEPTION
-
MOSIP_INVALID_DATA_SIZE_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_INVALID_DATA_SIZE_EXCEPTION
-
MOSIP_NULL_DATA_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_NULL_DATA_EXCEPTION
-
MOSIP_NULL_METHOD_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_NULL_METHOD_EXCEPTION
-
MOSIP_NO_SUCH_ALGORITHM_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_NO_SUCH_ALGORITHM_EXCEPTION
-
MOSIP_NULL_KEY_EXCEPTION
public static final MosipSecurityExceptionCodeConstants MOSIP_NULL_KEY_EXCEPTION
-
-
Method Detail
-
values
public static MosipSecurityExceptionCodeConstants[] 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 (MosipSecurityExceptionCodeConstants c : MosipSecurityExceptionCodeConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MosipSecurityExceptionCodeConstants 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:
- get errorCode value
-
getErrorMessage
public String getErrorMessage()
Getter for errorMessage- Returns:
- get errorMessage value
-
-