Enum BioAuthType
- java.lang.Object
-
- java.lang.Enum<BioAuthType>
-
- io.mosip.authentication.common.service.impl.match.BioAuthType
-
- All Implemented Interfaces:
AuthType,Serializable,Comparable<BioAuthType>
public enum BioAuthType extends Enum<BioAuthType> implements AuthType
The Enum BioAuthType.- Author:
- Dinesh Karuppiah.T
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FACE_IMGFGR_IMGFGR_IMG_COMPOSITEFGR_MINFGR_MIN_COMPOSITEIRIS_COMP_IMGIRIS_IMGMULTI_MODAL
-
Field Summary
-
Fields inherited from interface io.mosip.authentication.core.spi.indauth.match.AuthType
DEFAULT_MATCHING_THRESHOLD
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AuthTypegetAuthTypeImpl()protected abstract LonggetBioIdentityValuesCount(AuthRequestDTO reqDTO, IdInfoFetcher helper)StringgetConfigNameValue()IntPredicategetCountPredicate()Gets the count predicate.Optional<String>getMatchingStrategy(AuthRequestDTO authReq, String languageInfoFetcher)To Get Matching StrategyOptional<Integer>getMatchingThreshold(AuthRequestDTO authReq, String languageInfoFetcher, org.springframework.core.env.Environment environment, IdInfoFetcher idInfoFetcher)Get Matching Thresholdprotected Map<String,Object>getMatchProperties(AuthRequestDTO authRequestDTO, IdaIdMapping idMapping, IdInfoFetcher idInfoFetcher, TriFunctionWithBusinessException<Map<String,String>,Map<String,String>,Map<String,Object>,Double> func)protected Map<String,Object>getMultiMatchProperties(AuthRequestDTO authRequestDTO, IdaIdMapping idMapping, IdInfoFetcher idInfoFetcher)static Optional<BioAuthType>getSingleBioAuthTypeForType(String type)This method accepts the bioType and it will return Optional of BioAuthType only when the count is single.static Stream<BioAuthType>getSingleBioAuthTypes()protected Map<String,Object>getSingleMatchProperties(AuthRequestDTO authRequestDTO, IdaIdMapping idMapping, IdInfoFetcher idInfoFetcher)protected StringgetThresholdConfigKey()static Optional<String>getTypeForConfigNameValue(String configNameValue)booleanisAuthTypeEnabled(AuthRequestDTO authReq, IdInfoFetcher helper)static BioAuthTypevalueOf(String name)Returns the enum constant of this type with the specified name.static BioAuthType[]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.AuthType
getAssociatedMatchTypes, getDisplayName, getDisplayName, getMatchProperties, getType, getTypes, isAssociatedMatchType, isAuthTypeInfoAvailable
-
-
-
-
Enum Constant Detail
-
FGR_MIN
public static final BioAuthType FGR_MIN
-
FGR_IMG
public static final BioAuthType FGR_IMG
-
FGR_MIN_COMPOSITE
public static final BioAuthType FGR_MIN_COMPOSITE
-
FGR_IMG_COMPOSITE
public static final BioAuthType FGR_IMG_COMPOSITE
-
IRIS_COMP_IMG
public static final BioAuthType IRIS_COMP_IMG
-
IRIS_IMG
public static final BioAuthType IRIS_IMG
-
FACE_IMG
public static final BioAuthType FACE_IMG
-
MULTI_MODAL
public static final BioAuthType MULTI_MODAL
-
-
Method Detail
-
values
public static BioAuthType[] 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 (BioAuthType c : BioAuthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BioAuthType 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
-
getBioIdentityValuesCount
protected abstract Long getBioIdentityValuesCount(AuthRequestDTO reqDTO, IdInfoFetcher helper)
-
getSingleMatchProperties
protected Map<String,Object> getSingleMatchProperties(AuthRequestDTO authRequestDTO, IdaIdMapping idMapping, IdInfoFetcher idInfoFetcher)
-
getMultiMatchProperties
protected Map<String,Object> getMultiMatchProperties(AuthRequestDTO authRequestDTO, IdaIdMapping idMapping, IdInfoFetcher idInfoFetcher)
-
getMatchProperties
protected Map<String,Object> getMatchProperties(AuthRequestDTO authRequestDTO, IdaIdMapping idMapping, IdInfoFetcher idInfoFetcher, TriFunctionWithBusinessException<Map<String,String>,Map<String,String>,Map<String,Object>,Double> func)
-
isAuthTypeEnabled
public boolean isAuthTypeEnabled(AuthRequestDTO authReq, IdInfoFetcher helper)
- Specified by:
isAuthTypeEnabledin interfaceAuthType
-
getMatchingStrategy
public Optional<String> getMatchingStrategy(AuthRequestDTO authReq, String languageInfoFetcher)
To Get Matching Strategy- Specified by:
getMatchingStrategyin interfaceAuthType
-
getMatchingThreshold
public Optional<Integer> getMatchingThreshold(AuthRequestDTO authReq, String languageInfoFetcher, org.springframework.core.env.Environment environment, IdInfoFetcher idInfoFetcher)
Get Matching Threshold- Specified by:
getMatchingThresholdin interfaceAuthType
-
getSingleBioAuthTypeForType
public static Optional<BioAuthType> getSingleBioAuthTypeForType(String type)
This method accepts the bioType and it will return Optional of BioAuthType only when the count is single.- Parameters:
type- the type- Returns:
- the single bio auth type for type
-
getSingleBioAuthTypes
public static Stream<BioAuthType> getSingleBioAuthTypes()
-
getTypeForConfigNameValue
public static Optional<String> getTypeForConfigNameValue(String configNameValue)
-
getCountPredicate
public IntPredicate getCountPredicate()
Gets the count predicate.- Returns:
- the count predicate
-
getConfigNameValue
public String getConfigNameValue()
-
getThresholdConfigKey
protected String getThresholdConfigKey()
-
getAuthTypeImpl
public AuthType getAuthTypeImpl()
- Specified by:
getAuthTypeImplin interfaceAuthType
-
-