Class AuthTypeImpl
- java.lang.Object
-
- io.mosip.authentication.common.service.impl.AuthTypeImpl
-
-
Field Summary
-
Fields inherited from interface io.mosip.authentication.core.spi.indauth.match.AuthType
DEFAULT_MATCHING_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description AuthTypeImpl(String type, Set<MatchType> associatedMatchTypes, String displayName)
Instantiates a new auth type impl.AuthTypeImpl(String type, Set<MatchType> associatedMatchTypes, Predicate<? super AuthTypeDTO> authTypePredicate, String displayName)
Instantiates a new auth type impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<MatchType>
getAssociatedMatchTypes()
AuthType
getAuthTypeImpl()
Predicate<? super AuthTypeDTO>
getAuthTypePredicate()
String
getDisplayName()
String
getType()
boolean
isAuthTypeEnabled(AuthRequestDTO authReq, IdInfoFetcher helper)
boolean
isAuthTypeInfoAvailable(AuthRequestDTO authRequestDTO)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.mosip.authentication.core.spi.indauth.match.AuthType
getDisplayName, getMatchingStrategy, getMatchingThreshold, getMatchProperties, getTypes, isAssociatedMatchType
-
-
-
-
Constructor Detail
-
AuthTypeImpl
public AuthTypeImpl(String type, Set<MatchType> associatedMatchTypes, Predicate<? super AuthTypeDTO> authTypePredicate, String displayName)
Instantiates a new auth type impl.- Parameters:
type
- the typeassociatedMatchTypes
- the associated match typesauthTypePredicate
- the auth type predicatedisplayName
- the display name
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAuthType
-
isAuthTypeEnabled
public boolean isAuthTypeEnabled(AuthRequestDTO authReq, IdInfoFetcher helper)
- Specified by:
isAuthTypeEnabled
in interfaceAuthType
-
getAssociatedMatchTypes
public Set<MatchType> getAssociatedMatchTypes()
- Specified by:
getAssociatedMatchTypes
in interfaceAuthType
-
isAuthTypeInfoAvailable
public boolean isAuthTypeInfoAvailable(AuthRequestDTO authRequestDTO)
- Specified by:
isAuthTypeInfoAvailable
in interfaceAuthType
-
getAuthTypePredicate
public Predicate<? super AuthTypeDTO> getAuthTypePredicate()
- Specified by:
getAuthTypePredicate
in interfaceAuthType
-
getAuthTypeImpl
public AuthType getAuthTypeImpl()
- Specified by:
getAuthTypeImpl
in interfaceAuthType
-
-