public interface AuthType
Auth type interface
Author:
Dinesh Karuppiah.T
  • Field Details

    • DEFAULT_MATCHING_THRESHOLD

      static final int DEFAULT_MATCHING_THRESHOLD
      See Also:
  • Method Details

    • isAssociatedMatchType

      default boolean isAssociatedMatchType(MatchType matchType)
      Checks if is associated match type.
      Parameters:
      matchType - the match type
      Returns:
      true, if is associated match type
    • getMatchingStrategy

      default Optional<String> getMatchingStrategy(AuthRequestDTO authReq, String language)
      Gets the matching strategy.
      Parameters:
      authReq - the auth req
      language - the language
      Returns:
      the matching strategy
    • getMatchingThreshold

      default Optional<Integer> getMatchingThreshold(AuthRequestDTO authReq, String language, org.springframework.core.env.Environment environment, IdInfoFetcher idInfoFetcher)
      Gets the matching threshold.
      Parameters:
      authReq - the auth req
      language - the language
      environment - the environment
      idInfoFetcher - the id info fetcher
      Returns:
      the matching threshold
    • isAuthTypeInfoAvailable

      default boolean isAuthTypeInfoAvailable(AuthRequestDTO authRequestDTO)
    • getMatchProperties

      default Map<String,Object> getMatchProperties(AuthRequestDTO authRequestDTO, IdInfoFetcher languageInfoFetcher, String language)
      Gets the match properties.
      Parameters:
      authRequestDTO - the auth request DTO
      languageInfoFetcher - the language info fetcher
      language - the language
      bioMatcherUtil - the bio matcher util
      Returns:
      the match properties
    • getAuthTypeForMatchType

      static Optional<AuthType> getAuthTypeForMatchType(MatchType matchType, AuthType[] authTypes)
      Gets the auth type for match type.
      Parameters:
      matchType - the match type
      authTypes - the auth types
      Returns:
      the auth type for match type
    • setOf

      static <T> Set<T> setOf(T... supportedMatchTypes)
      Returns the set of given match types.
      Parameters:
      supportedMatchTypes - the supported match types
      Returns:
      the sets the
    • getAuthTypeImpl

      AuthType getAuthTypeImpl()
      Gets the auth type impl.
      Returns:
      the auth type impl
    • getDisplayName

      default String getDisplayName()
      Gets the display name.
      Returns:
      the display name
    • getType

      default String getType()
      Gets the type.
      Returns:
      the type
    • getTypes

      default String[] getTypes()
    • isAuthTypeEnabled

      default boolean isAuthTypeEnabled(AuthRequestDTO authReq, IdInfoFetcher idInfoFetcher)
      Checks if is auth type info available.
      Parameters:
      authReq - the auth req
      idInfoFetcher - the id info fetcher
      Returns:
      true, if is auth type info available
    • getAssociatedMatchTypes

      default Set<MatchType> getAssociatedMatchTypes()
      Gets the associated match types.
      Returns:
      the associated match types
    • getDisplayName

      default String getDisplayName(AuthRequestDTO authReq, IdInfoFetcher helper)