public abstract class AbstractMultifactorAuthenticationProvider extends java.lang.Object implements MultifactorAuthenticationProvider, java.io.Serializable
AbstractMultifactorAuthenticationProvider
is responsible for
as the parent of all providers.Constructor and Description |
---|
AbstractMultifactorAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
Gets id for this provider.
|
int |
getOrder() |
int |
hashCode() |
protected boolean |
isAvailable()
Is provider available?
|
boolean |
isAvailable(RegisteredService service)
Ensure the provider is available.
|
boolean |
matches(java.lang.String identifier)
Does provider match/support this identifier?
|
void |
setBypassEvaluator(MultifactorAuthenticationProviderBypass bypassEvaluator) |
void |
setGlobalFailureMode(java.lang.String globalFailureMode) |
void |
setId(java.lang.String id) |
void |
setOrder(int order) |
boolean |
supports(org.springframework.webflow.execution.Event e,
Authentication authentication,
RegisteredService registeredService)
Indicates whether the current active event is supported by
this mfa provider based on the given authentication and service definition.
|
protected boolean |
supportsInternal(org.springframework.webflow.execution.Event e,
Authentication authentication,
RegisteredService registeredService)
Determine internally if provider is able to support this authentication request
for multifactor, and account for bypass rules..
|
java.lang.String |
toString() |
public AbstractMultifactorAuthenticationProvider()
public java.lang.String getId()
MultifactorAuthenticationProvider
getId
in interface MultifactorAuthenticationProvider
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setId(java.lang.String id)
public void setOrder(int order)
public void setGlobalFailureMode(java.lang.String globalFailureMode)
public final boolean supports(org.springframework.webflow.execution.Event e, Authentication authentication, RegisteredService registeredService)
MultifactorAuthenticationProvider
supports
in interface MultifactorAuthenticationProvider
e
- the eventauthentication
- the authenticationregisteredService
- the registered serviceprotected boolean supportsInternal(org.springframework.webflow.execution.Event e, Authentication authentication, RegisteredService registeredService)
e
- the eventauthentication
- the authenticationregisteredService
- the registered servicepublic boolean isAvailable(RegisteredService service) throws AuthenticationException
MultifactorAuthenticationProvider
isAvailable
in interface MultifactorAuthenticationProvider
service
- the serviceAuthenticationException
- the authentication exceptionprotected boolean isAvailable()
public void setBypassEvaluator(MultifactorAuthenticationProviderBypass bypassEvaluator)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean matches(java.lang.String identifier)
MultifactorAuthenticationProvider
matches
in interface MultifactorAuthenticationProvider
identifier
- the identifier