Package org.apereo.cas.authentication
Interface MultifactorAuthenticationTriggerSelectionStrategy
public interface MultifactorAuthenticationTriggerSelectionStrategy
This interface is responsible for deciding which Multifactor provider to use based on the request, service, and
principal.
- Since:
- 5.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets multifactor authentication triggers.resolve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service) Resolve the multifactor authentication provider id.
-
Field Details
-
BEAN_NAME
Default Bean name.- See Also:
-
-
Method Details
-
resolve
Optional<MultifactorAuthenticationProvider> resolve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service) throws Throwable Resolve the multifactor authentication provider id.- Parameters:
request- The original request to check for MFA requirementsresponse- the responseregisteredService- The service to check for MFA requirementsauthentication- The authentication to check for MFA requirementsservice- the service- Returns:
- the provider id of the MFA provider required for authentication
- Throws:
Throwable- the throwable
-
multifactorAuthenticationTriggers
Collection<MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers()Gets multifactor authentication triggers.- Returns:
- the multifactor authentication triggers
-