@FunctionalInterface
public interface MultifactorTriggerSelectionStrategy
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
resolve(java.util.Collection<MultifactorAuthenticationProvider> providers,
javax.servlet.http.HttpServletRequest request,
RegisteredService service,
Authentication authentication)
Resolve the multifactor authentication provider id for the specified HttpServletRequest, RegisteredService and
Principal.
|
java.util.Optional<java.lang.String> resolve(java.util.Collection<MultifactorAuthenticationProvider> providers, javax.servlet.http.HttpServletRequest request, RegisteredService service, Authentication authentication)
providers
- a Map of available MFA providers loaded in the spring contextrequest
- The original request to check for MFA requirementsservice
- The service to check for MFA requirementsauthentication
- The authentication to check for MFA requirements