Enum EkycAuthType
- java.lang.Object
-
- java.lang.Enum<EkycAuthType>
-
- io.mosip.authentication.core.indauth.dto.EkycAuthType
-
- All Implemented Interfaces:
Serializable,Comparable<EkycAuthType>
public enum EkycAuthType extends Enum<EkycAuthType>
The enum for EkycAuthType- Author:
- Prem Kumar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<EkycAuthType>getEkycAuthType(String type)This method returns the EkycAuthType based on the type.StringgetType()Gets the type.static EkycAuthTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EkycAuthType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEMO
public static final EkycAuthType DEMO
For demo
-
BIO
public static final EkycAuthType BIO
For bio
-
PIN
public static final EkycAuthType PIN
For Pin
-
OTP
public static final EkycAuthType OTP
For OTP
-
-
Method Detail
-
values
public static EkycAuthType[] 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 (EkycAuthType c : EkycAuthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EkycAuthType 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
-
getType
public String getType()
Gets the type.- Returns:
- the type
-
getEkycAuthType
public static Optional<EkycAuthType> getEkycAuthType(String type)
This method returns the EkycAuthType based on the type.- Parameters:
type- the type- Returns:
- EkycAuthType
-
-