Enum OtpStatusConstants
- java.lang.Object
-
- java.lang.Enum<OtpStatusConstants>
-
- io.mosip.kernel.otpmanager.constant.OtpStatusConstants
-
- All Implemented Interfaces:
Serializable,Comparable<OtpStatusConstants>
public enum OtpStatusConstants extends Enum<OtpStatusConstants>
This ENUM provides all the constants for OTP status attributes.- Version:
- 1.0.0
- Author:
- Sagar Mahapatra, Ritesh Sinha
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_SPACEBLOCKED_USERFAILURE_AND_FREEZED_MESSAGEFAILURE_MESSAGEFAILURE_STATUSGENERATION_SUCCESSFULKEY_FREEZEDOTP_EXPIRED_STATUSSET_AS_NULL_IN_STRINGSUCCESS_MESSAGESUCCESS_STATUSUNUSED_OTP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProperty()Getter for property.static OtpStatusConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static OtpStatusConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNUSED_OTP
public static final OtpStatusConstants UNUSED_OTP
-
KEY_FREEZED
public static final OtpStatusConstants KEY_FREEZED
-
BLOCKED_USER
public static final OtpStatusConstants BLOCKED_USER
-
GENERATION_SUCCESSFUL
public static final OtpStatusConstants GENERATION_SUCCESSFUL
-
SET_AS_NULL_IN_STRING
public static final OtpStatusConstants SET_AS_NULL_IN_STRING
-
SUCCESS_STATUS
public static final OtpStatusConstants SUCCESS_STATUS
-
SUCCESS_MESSAGE
public static final OtpStatusConstants SUCCESS_MESSAGE
-
FAILURE_STATUS
public static final OtpStatusConstants FAILURE_STATUS
-
FAILURE_MESSAGE
public static final OtpStatusConstants FAILURE_MESSAGE
-
FAILURE_AND_FREEZED_MESSAGE
public static final OtpStatusConstants FAILURE_AND_FREEZED_MESSAGE
-
OTP_EXPIRED_STATUS
public static final OtpStatusConstants OTP_EXPIRED_STATUS
-
ADD_SPACE
public static final OtpStatusConstants ADD_SPACE
-
-
Method Detail
-
values
public static OtpStatusConstants[] 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 (OtpStatusConstants c : OtpStatusConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OtpStatusConstants 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
-
getProperty
public String getProperty()
Getter for property.- Returns:
- The property.
-
-