Interface IdInfoFetcher
public interface IdInfoFetcher
The IdInfoFetcher interface that provides the helper methods invoked by the
classes involved in ID Info matching.
- Author:
- Loganathan.Sekar, Nagarjuna
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckLanguageType(String languageForMatchType, String languageFromReq) To check language type.Gets the available dynamic attributes names.getCbeffValues(Map<String, List<IdentityInfoDTO>> idEntity, CbeffDocType[] cbeffDocTypes, MatchType matchType) To fetch cbeff values.Gets the demo normalizer object to normalise the corresponding(address/name) used for demographic authentication .org.springframework.core.env.EnvironmentTo get EnvPropertyResolver.getIdentityInfo(MatchType matchType, String idName, RequestDTO identity) Gets the identity info.getIdentityRequestInfo(MatchType matchType, RequestDTO identity, String language) Gets the identity info for the MatchType from the IdentityDTO.getIdentityRequestInfo(MatchType matchType, String idName, RequestDTO identity, String language) Gets the identity info for the MatchType from the IdentityDTO.static Map<String, List<IdentityInfoDTO>> Fetch data from Identity info value based on Identity response.getLanguageName(String languageCode) Get language name for Match Properties based on language code.Gets the mapping config.getMatchFunction(AuthType authType) Gets the match function.Gets the matching threshold.To Get match Password function.Gets the system supported languages.Gets the template default language codesTitle info fetcher from Master data manager.getUserPreferredLanguages(Map<String, List<IdentityInfoDTO>> idInfo) Gets the user preferred language attributeGet the Validate Otp function.
-
Method Details
-
getTemplatesDefaultLanguageCodes
Gets the template default language codes- Returns:
-
getSystemSupportedLanguageCodes
Gets the system supported languages. Combination of Mandatory and optional languages.- Returns:
-
checkLanguageType
To check language type.- Parameters:
languageForMatchType- the language for match typelanguageFromReq- the language from req- Returns:
- true, if successful
-
getLanguageName
Get language name for Match Properties based on language code.- Parameters:
languageCode- language code- Returns:
- language name
-
getIdentityRequestInfo
Map<String,String> getIdentityRequestInfo(MatchType matchType, String idName, RequestDTO identity, String language) Gets the identity info for the MatchType from the IdentityDTO.- Parameters:
matchType- the match typeidName-identity- the identitylanguage- the language- Returns:
- the identity info
-
getIdentityInfo
Map<String,List<IdentityInfoDTO>> getIdentityInfo(MatchType matchType, String idName, RequestDTO identity) Gets the identity info.- Parameters:
matchType- the match typeidName- the id nameidentity- the identity- Returns:
- the identity info
-
getIdentityRequestInfo
Map<String,String> getIdentityRequestInfo(MatchType matchType, RequestDTO identity, String language) Gets the identity info for the MatchType from the IdentityDTO.- Parameters:
matchType- the match typeidentity- the identitylanguage- the languageidName-- Returns:
- the identity info
-
getValidateOTPFunction
ValidateOtpFunction getValidateOTPFunction()Get the Validate Otp function.- Returns:
- the ValidateOtpFunction
-
getCbeffValues
Map<String,Map.Entry<String, getCbeffValuesList<IdentityInfoDTO>>> (Map<String, List<IdentityInfoDTO>> idEntity, CbeffDocType[] cbeffDocTypes, MatchType matchType) throws IdAuthenticationBusinessExceptionTo fetch cbeff values.- Parameters:
idEntity- the id entitycbeffDocTypes- the cbeff doc typesmatchType- the match type- Returns:
- the cbeff values
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
getEnvironment
org.springframework.core.env.Environment getEnvironment()To get EnvPropertyResolver.- Returns:
- the environment
-
getTitleFetcher
MasterDataFetcher getTitleFetcher()Title info fetcher from Master data manager.- Returns:
- the title fetcher
-
getMatchingThreshold
Gets the matching threshold.- Parameters:
key- the key- Returns:
- the matching threshold
-
getDemoNormalizer
DemoNormalizer getDemoNormalizer()Gets the demo normalizer object to normalise the corresponding(address/name) used for demographic authentication .- Returns:
- the demo normalizer
-
getUserPreferredLanguages
Gets the user preferred language attribute- Returns:
-
getMatchFunction
TriFunctionWithBusinessException<Map<String,String>, getMatchFunctionMap<String, String>, Map<String, Object>, Double> (AuthType authType) Gets the match function.- Parameters:
authType- the auth type- Returns:
- the match function
-
getMappingConfig
MappingConfig getMappingConfig()Gets the mapping config.- Returns:
- the mapping config
-
getDemoMatcherUtil
DemoMatcherUtil getDemoMatcherUtil()- Returns:
-
getAvailableDynamicAttributesNames
Gets the available dynamic attributes names.- Parameters:
request- the request- Returns:
- the available dynamic attributes names
-
getIdInfo
Fetch data from Identity info value based on Identity response.- Parameters:
idResponseDTO- the id response DTO- Returns:
- the id info
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
getMatchPasswordFunction
ComparePasswordFunction getMatchPasswordFunction()To Get match Password function.- Returns:
- the ComparePasswordFunction
-