Enum ZKCryptoErrorConstants
- java.lang.Object
-
- java.lang.Enum<ZKCryptoErrorConstants>
-
- io.mosip.kernel.zkcryptoservice.constant.ZKCryptoErrorConstants
-
- All Implemented Interfaces:
Serializable,Comparable<ZKCryptoErrorConstants>
public enum ZKCryptoErrorConstants extends Enum<ZKCryptoErrorConstants>
This ENUM provides all the constant identified for ZKCryptoManager errors.- Version:
- 1.2.0-SNAPSHOT
- Author:
- Mahammed Taheer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_CIPHER_OPS_ERROREMPTY_DATA_ERRORINVALID_ENCRYPTED_RANDOM_KEYKEY_DERIVATION_ERRORNO_UNIQUE_ALIASRANDOM_KEY_CIPHER_FAILED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static ZKCryptoErrorConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static ZKCryptoErrorConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RANDOM_KEY_CIPHER_FAILED
public static final ZKCryptoErrorConstants RANDOM_KEY_CIPHER_FAILED
-
NO_UNIQUE_ALIAS
public static final ZKCryptoErrorConstants NO_UNIQUE_ALIAS
-
EMPTY_DATA_ERROR
public static final ZKCryptoErrorConstants EMPTY_DATA_ERROR
-
DATA_CIPHER_OPS_ERROR
public static final ZKCryptoErrorConstants DATA_CIPHER_OPS_ERROR
-
KEY_DERIVATION_ERROR
public static final ZKCryptoErrorConstants KEY_DERIVATION_ERROR
-
INVALID_ENCRYPTED_RANDOM_KEY
public static final ZKCryptoErrorConstants INVALID_ENCRYPTED_RANDOM_KEY
-
-
Method Detail
-
values
public static ZKCryptoErrorConstants[] 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 (ZKCryptoErrorConstants c : ZKCryptoErrorConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZKCryptoErrorConstants 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.
-
-