Enum KycTokenStatusType
- java.lang.Object
-
- java.lang.Enum<KycTokenStatusType>
-
- io.mosip.authentication.core.constant.KycTokenStatusType
-
- All Implemented Interfaces:
Serializable,Comparable<KycTokenStatusType>
public enum KycTokenStatusType extends Enum<KycTokenStatusType>
The Enum KYC Token Status is used to set the token status for each transactions.- Author:
- Mahammed Taheer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetStatus()Gets the status.voidsetStatus(String status)Sets the status.static KycTokenStatusTypevalueOf(String name)Returns the enum constant of this type with the specified name.static KycTokenStatusType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final KycTokenStatusType ACTIVE
The active status.
-
PROCESSED
public static final KycTokenStatusType PROCESSED
The processed status.
-
EXPIRED
public static final KycTokenStatusType EXPIRED
The expired Status
-
-
Method Detail
-
values
public static KycTokenStatusType[] 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 (KycTokenStatusType c : KycTokenStatusType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KycTokenStatusType 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
-
getStatus
public String getStatus()
Gets the status.- Returns:
- the status
-
setStatus
public void setStatus(String status)
Sets the status.- Parameters:
status- the new status
-
-