Interface AuthType
public interface AuthType
Auth type interface
- Author:
- Dinesh Karuppiah.T
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the associated match types.getAuthTypeForMatchType(MatchType matchType, AuthType[] authTypes) Gets the auth type for match type.Gets the auth type impl.default StringGets the display name.default StringgetDisplayName(AuthRequestDTO authReq, IdInfoFetcher helper) getMatchingStrategy(AuthRequestDTO authReq, String language) Gets the matching strategy.getMatchingThreshold(AuthRequestDTO authReq, String language, org.springframework.core.env.Environment environment, IdInfoFetcher idInfoFetcher) Gets the matching threshold.getMatchProperties(AuthRequestDTO authRequestDTO, IdInfoFetcher languageInfoFetcher, String language) Gets the match properties.default StringgetType()Gets the type.default String[]getTypes()default booleanisAssociatedMatchType(MatchType matchType) Checks if is associated match type.default booleanisAuthTypeEnabled(AuthRequestDTO authReq, IdInfoFetcher idInfoFetcher) Checks if is auth type info available.default booleanisAuthTypeInfoAvailable(AuthRequestDTO authRequestDTO) static <T> Set<T> setOf(T... supportedMatchTypes) Returns the set of given match types.
-
Field Details
-
DEFAULT_MATCHING_THRESHOLD
static final int DEFAULT_MATCHING_THRESHOLD- See Also:
-
-
Method Details
-
isAssociatedMatchType
Checks if is associated match type.- Parameters:
matchType- the match type- Returns:
- true, if is associated match type
-
getMatchingStrategy
Gets the matching strategy.- Parameters:
authReq- the auth reqlanguage- 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 reqlanguage- the languageenvironment- the environmentidInfoFetcher- the id info fetcher- Returns:
- the matching threshold
-
isAuthTypeInfoAvailable
-
getMatchProperties
default Map<String,Object> getMatchProperties(AuthRequestDTO authRequestDTO, IdInfoFetcher languageInfoFetcher, String language) Gets the match properties.- Parameters:
authRequestDTO- the auth request DTOlanguageInfoFetcher- the language info fetcherlanguage- the languagebioMatcherUtil- the bio matcher util- Returns:
- the match properties
-
getAuthTypeForMatchType
Gets the auth type for match type.- Parameters:
matchType- the match typeauthTypes- the auth types- Returns:
- the auth type for match type
-
setOf
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
Gets the display name.- Returns:
- the display name
-
getType
Gets the type.- Returns:
- the type
-
getTypes
-
isAuthTypeEnabled
Checks if is auth type info available.- Parameters:
authReq- the auth reqidInfoFetcher- the id info fetcher- Returns:
- true, if is auth type info available
-
getAssociatedMatchTypes
Gets the associated match types.- Returns:
- the associated match types
-
getDisplayName
-