public interface MultifactorAuthenticationProvider
extends java.io.Serializable, org.springframework.core.Ordered
MultifactorAuthenticationProvider
that describes an external authentication entity/provider
matched against a registered service. Providers may be given
the ability to check authentication provider for availability
before actually producing a relevant identifier.Modifier and Type | Method and Description |
---|---|
default java.lang.String |
createUniqueId()
Creates a unique mark that identifies this provider instance.
|
RegisteredServiceMultifactorPolicy.FailureModes |
failureMode()
This method will return the failure mode for the provider.
|
MultifactorAuthenticationProviderBypass |
getBypassEvaluator()
Returns the configured bypass provider for this MFA provider.
|
java.lang.String |
getFriendlyName()
Gets the friendly-name for this provider.
|
java.lang.String |
getId()
Gets id for this provider.
|
boolean |
isAvailable(RegisteredService service)
Ensure the provider is available.
|
boolean |
matches(java.lang.String identifier)
Does provider match/support this identifier?
The identifier passed may be formed as a regular expression.
|
default boolean |
validateId(java.lang.String id)
Validates that the passed mark was created by this provider.
|
boolean isAvailable(RegisteredService service) throws AuthenticationException
service
- - the serviceAuthenticationException
- the authentication exceptionMultifactorAuthenticationProviderBypass getBypassEvaluator()
java.lang.String getId()
java.lang.String getFriendlyName()
boolean matches(java.lang.String identifier)
identifier
- the identifierRegisteredServiceMultifactorPolicy.FailureModes failureMode()
default java.lang.String createUniqueId()
default boolean validateId(java.lang.String id)
id
- - the id to validate