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 Details

    • 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 type
      languageFromReq - 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 type
      idName -
      identity - the identity
      language - 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 type
      idName - the id name
      identity - 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 type
      identity - the identity
      language - the language
      idName -
      Returns:
      the identity info
    • getValidateOTPFunction

      ValidateOtpFunction getValidateOTPFunction()
      Get the Validate Otp function.
      Returns:
      the ValidateOtpFunction
    • getCbeffValues

      To fetch cbeff values.
      Parameters:
      idEntity - the id entity
      cbeffDocTypes - the cbeff doc types
      matchType - 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

      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

      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