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.CategorygetCategory()BiFunction<Map<String,String>,Map<String,Object>,Map<String,String>>getEntityInfoMapper()Gets the entity info.Function<RequestDTO,Map<String,List<IdentityInfoDTO>>>getIdentityInfoFunction()IdMappinggetIdMapping()Function<AuthRequestDTO,Map<String,String>>getReqestInfoFunction()booleanhasIdEntityInfo()booleanhasRequestEntityInfo()static PinMatchTypevalueOf(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, isDynamic, isMultiLanguage, 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:
getAllowedMatchingStrategyin interfaceMatchType- Parameters:
matchStrategyType- the match strategy type- Returns:
- the allowed matching strategy
-
getEntityInfoMapper
public BiFunction<Map<String,String>,Map<String,Object>,Map<String,String>> getEntityInfoMapper()
Gets the entity info.- Specified by:
getEntityInfoMapperin interfaceMatchType- Returns:
- the entity info
-
getIdMapping
public IdMapping getIdMapping()
- Specified by:
getIdMappingin interfaceMatchType
-
getIdentityInfoFunction
public Function<RequestDTO,Map<String,List<IdentityInfoDTO>>> getIdentityInfoFunction()
- Specified by:
getIdentityInfoFunctionin interfaceMatchType
-
getCategory
public MatchType.Category getCategory()
- Specified by:
getCategoryin interfaceMatchType
-
getReqestInfoFunction
public Function<AuthRequestDTO,Map<String,String>> getReqestInfoFunction()
- Specified by:
getReqestInfoFunctionin interfaceMatchType
-
hasIdEntityInfo
public boolean hasIdEntityInfo()
- Specified by:
hasIdEntityInfoin interfaceMatchType
-
hasRequestEntityInfo
public boolean hasRequestEntityInfo()
- Specified by:
hasRequestEntityInfoin interfaceMatchType
-
-