Interface AuthType
-
public interface AuthTypeAuth type interface- Author:
- Dinesh Karuppiah.T
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MATCHING_THRESHOLD
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<MatchType>getAssociatedMatchTypes()Gets the associated match types.static Optional<AuthType>getAuthTypeForMatchType(MatchType matchType, AuthType[] authTypes)Gets the auth type for match type.AuthTypegetAuthTypeImpl()Gets the auth type impl.default StringgetDisplayName()Gets the display name.default StringgetDisplayName(AuthRequestDTO authReq, IdInfoFetcher helper)default Optional<String>getMatchingStrategy(AuthRequestDTO authReq, String language)Gets the matching strategy.default Optional<Integer>getMatchingThreshold(AuthRequestDTO authReq, String language, org.springframework.core.env.Environment environment, IdInfoFetcher idInfoFetcher)Gets the matching threshold.default Map<String,Object>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 Detail
-
DEFAULT_MATCHING_THRESHOLD
static final int DEFAULT_MATCHING_THRESHOLD
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 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
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 DTOlanguageInfoFetcher- the language info fetcherbioMatcherUtil- the bio matcher utillanguage- the language- Returns:
- the match properties
-
getAuthTypeForMatchType
static Optional<AuthType> getAuthTypeForMatchType(MatchType matchType, AuthType[] authTypes)
Gets the auth type for match type.- Parameters:
matchType- the match typeauthTypes- 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 reqidInfoFetcher- 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)
-
-