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
    • 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 requirements
        registeredService - The service to check for MFA requirements
        authentication - The authentication to check for MFA requirements
        service - 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