Interface IdInfoFetcher
-
public interface IdInfoFetcherThe IdInfoFetcher interface that provides the helper methods invoked by the classes involved in ID Info matching.- Author:
- Loganathan.Sekar, Nagarjuna
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckLanguageType(String languageForMatchType, String languageFromReq)To check language type.Set<String>getAvailableDynamicAttributesNames(RequestDTO request)Gets the available dynamic attributes names.Map<String,Map.Entry<String,List<IdentityInfoDTO>>>getCbeffValues(Map<String,List<IdentityInfoDTO>> idEntity, CbeffDocType[] cbeffDocTypes, MatchType matchType)To fetch cbeff values.DemoMatcherUtilgetDemoMatcherUtil()DemoNormalizergetDemoNormalizer()Gets the demo normalizer object to normalise the corresponding(address/name) used for demographic authentication .org.springframework.core.env.EnvironmentgetEnvironment()To get EnvPropertyResolver.Map<String,List<IdentityInfoDTO>>getIdentityInfo(MatchType matchType, String idName, RequestDTO identity)Gets the identity info.Map<String,String>getIdentityRequestInfo(MatchType matchType, RequestDTO identity, String language)Gets the identity info for the MatchType from the IdentityDTO.Map<String,String>getIdentityRequestInfo(MatchType matchType, String idName, RequestDTO identity, String language)Gets the identity info for the MatchType from the IdentityDTO.static Map<String,List<IdentityInfoDTO>>getIdInfo(Map<String,Object> idResponseDTO)Fetch data from Identity info value based on Identity response.Optional<String>getLanguageName(String languageCode)Get language name for Match Properties based on language code.MappingConfiggetMappingConfig()Gets the mapping config.TriFunctionWithBusinessException<Map<String,String>,Map<String,String>,Map<String,Object>,Double>getMatchFunction(AuthType authType)Gets the match function.Optional<Integer>getMatchingThreshold(String key)Gets the matching threshold.ComparePasswordFunctiongetMatchPasswordFunction()To Get match Password function.List<String>getSystemSupportedLanguageCodes()Gets the system supported languages.List<String>getTemplatesDefaultLanguageCodes()Gets the template default language codesMasterDataFetchergetTitleFetcher()Title info fetcher from Master data manager.Optional<String>getTypeForIdName(String idName, IdMapping[] idMappings)Gets the type for id name.List<String>getUserPreferredLanguages(Map<String,List<IdentityInfoDTO>> idInfo)Gets the user preferred language attributeValidateOtpFunctiongetValidateOTPFunction()Get the Validate Otp function.
-
-
-
Method Detail
-
getTemplatesDefaultLanguageCodes
List<String> getTemplatesDefaultLanguageCodes()
Gets the template default language codes- Returns:
-
getSystemSupportedLanguageCodes
List<String> getSystemSupportedLanguageCodes()
Gets the system supported languages. Combination of Mandatory and optional languages.- Returns:
-
checkLanguageType
boolean checkLanguageType(String languageForMatchType, String languageFromReq)
To check language type.- Parameters:
languageForMatchType- the language for match typelanguageFromReq- the language from req- Returns:
- true, if successful
-
getLanguageName
Optional<String> getLanguageName(String languageCode)
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 typeidName-identity- the identitylanguage- the language- Returns:
- the identity info
-
getValidateOTPFunction
ValidateOtpFunction getValidateOTPFunction()
Get the Validate Otp function.- Returns:
- the ValidateOtpFunction
-
getCbeffValues
Map<String,Map.Entry<String,List<IdentityInfoDTO>>> getCbeffValues(Map<String,List<IdentityInfoDTO>> idEntity, CbeffDocType[] cbeffDocTypes, MatchType matchType) throws IdAuthenticationBusinessException
To 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
Optional<Integer> getMatchingThreshold(String key)
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
List<String> getUserPreferredLanguages(Map<String,List<IdentityInfoDTO>> idInfo)
Gets the user preferred language attribute- Returns:
-
getMatchFunction
TriFunctionWithBusinessException<Map<String,String>,Map<String,String>,Map<String,Object>,Double> getMatchFunction(AuthType authType)
Gets the match function.- Parameters:
authType- the auth type- Returns:
- the match function
-
getTypeForIdName
Optional<String> getTypeForIdName(String idName, IdMapping[] idMappings)
Gets the type for id name.- Parameters:
idName- the id nameidMappings- the id mappings- Returns:
- the type for id name
-
getMappingConfig
MappingConfig getMappingConfig()
Gets the mapping config.- Returns:
- the mapping config
-
getDemoMatcherUtil
DemoMatcherUtil getDemoMatcherUtil()
- Returns:
-
getAvailableDynamicAttributesNames
Set<String> getAvailableDynamicAttributesNames(RequestDTO request)
Gets the available dynamic attributes names.- Parameters:
request- the request- Returns:
- the available dynamic attributes names
-
getIdInfo
static Map<String,List<IdentityInfoDTO>> getIdInfo(Map<String,Object> idResponseDTO)
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
-
-