Package org.apereo.cas.authentication
Interface MultifactorAuthenticationTriggerSelectionStrategy
-
public interface MultifactorAuthenticationTriggerSelectionStrategyThis interface is responsible for deciding which Multifactor provider to use based on the request, service, and principal.- Since:
- 5.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<MultifactorAuthenticationTrigger>getMultifactorAuthenticationTriggers()Gets multifactor authentication triggers.java.util.Optional<MultifactorAuthenticationProvider>resolve(javax.servlet.http.HttpServletRequest request, 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.
-
-
-
Method Detail
-
resolve
java.util.Optional<MultifactorAuthenticationProvider> resolve(javax.servlet.http.HttpServletRequest request, 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.- Parameters:
request- The original request to check for MFA requirementsregisteredService- 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
-
getMultifactorAuthenticationTriggers
java.util.Collection<MultifactorAuthenticationTrigger> getMultifactorAuthenticationTriggers()
Gets multifactor authentication triggers.- Returns:
- the multifactor authentication triggers
-
-