Enum PinMatchType
- java.lang.Object
-
- java.lang.Enum<PinMatchType>
-
- io.mosip.authentication.common.service.impl.match.PinMatchType
-
- All Implemented Interfaces:
MatchType
,Serializable
,Comparable<PinMatchType>
public enum PinMatchType extends Enum<PinMatchType> implements MatchType
The Enum PinMatchType - used to construct the Match input for Pin based authentication- Author:
- Sanjay Murali
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.mosip.authentication.core.spi.indauth.match.MatchType
MatchType.Category
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<MatchingStrategy>
getAllowedMatchingStrategy(MatchingStrategyType matchStrategyType)
Gets the allowed matching strategy.MatchType.Category
getCategory()
Function<Map<String,String>,Map<String,String>>
getEntityInfoMapper()
Gets the entity info.Function<RequestDTO,Map<String,List<IdentityInfoDTO>>>
getIdentityInfoFunction()
IdMapping
getIdMapping()
Function<AuthRequestDTO,Map<String,String>>
getReqestInfoFunction()
boolean
hasIdEntityInfo()
boolean
hasRequestEntityInfo()
static PinMatchType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PinMatchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface io.mosip.authentication.core.spi.indauth.match.MatchType
getIdentityInfoList, isMultiLanguage, isPropMultiLang, mapEntityInfo
-
-
-
-
Enum Constant Detail
-
SPIN
public static final PinMatchType SPIN
Primary Pin Match Type.
-
OTP
public static final PinMatchType OTP
-
-
Method Detail
-
values
public static PinMatchType[] 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 (PinMatchType c : PinMatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PinMatchType 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
-
getAllowedMatchingStrategy
public Optional<MatchingStrategy> getAllowedMatchingStrategy(MatchingStrategyType matchStrategyType)
Gets the allowed matching strategy.- Specified by:
getAllowedMatchingStrategy
in interfaceMatchType
- Parameters:
matchStrategyType
- the match strategy type- Returns:
- the allowed matching strategy
-
getEntityInfoMapper
public Function<Map<String,String>,Map<String,String>> getEntityInfoMapper()
Gets the entity info.- Specified by:
getEntityInfoMapper
in interfaceMatchType
- Returns:
- the entity info
-
getIdMapping
public IdMapping getIdMapping()
- Specified by:
getIdMapping
in interfaceMatchType
-
getIdentityInfoFunction
public Function<RequestDTO,Map<String,List<IdentityInfoDTO>>> getIdentityInfoFunction()
- Specified by:
getIdentityInfoFunction
in interfaceMatchType
-
getCategory
public MatchType.Category getCategory()
- Specified by:
getCategory
in interfaceMatchType
-
getReqestInfoFunction
public Function<AuthRequestDTO,Map<String,String>> getReqestInfoFunction()
- Specified by:
getReqestInfoFunction
in interfaceMatchType
-
hasIdEntityInfo
public boolean hasIdEntityInfo()
- Specified by:
hasIdEntityInfo
in interfaceMatchType
-
hasRequestEntityInfo
public boolean hasRequestEntityInfo()
- Specified by:
hasRequestEntityInfo
in interfaceMatchType
-
-