Interface MultifactorAuthenticationTrigger

All Superinterfaces:
org.apereo.cas.util.NamedObject, org.springframework.core.Ordered
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MultifactorAuthenticationTrigger extends org.springframework.core.Ordered, org.apereo.cas.util.NamedObject
Since:
6.0.0
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
     
    isActivated(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, org.apereo.cas.authentication.principal.Service service)
    Is activated optional.
    default boolean
    supports(jakarta.servlet.http.HttpServletRequest request, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service)
    Supports.

    Methods inherited from interface org.apereo.cas.util.NamedObject

    getName
  • Method Details

    • isActivated

      Optional<MultifactorAuthenticationProvider> isActivated(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, org.apereo.cas.authentication.principal.Service service) throws Throwable
      Is activated optional.
      Parameters:
      authentication - the authentication
      registeredService - the service
      httpServletRequest - the http servlet request
      httpServletResponse - the http servlet response
      service - the service
      Returns:
      the optional
      Throws:
      Throwable - the throwable
    • supports

      default boolean supports(jakarta.servlet.http.HttpServletRequest request, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service)
      Supports.
      Parameters:
      request - the request
      registeredService - the registered service
      authentication - the authentication
      service - the service
      Returns:
      true/false
    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered