Interface MultifactorAuthenticationTrigger

  • All Superinterfaces:
    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
    Since:
    6.0.0
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getName()  
      default int getOrder()  
      java.util.Optional<MultifactorAuthenticationProvider> isActivated​(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, javax.servlet.http.HttpServletRequest httpServletRequest, org.apereo.cas.authentication.principal.Service service)
      Is activated optional.
      default boolean supports​(javax.servlet.http.HttpServletRequest request, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service)
      Supports.
    • Method Detail

      • isActivated

        java.util.Optional<MultifactorAuthenticationProvider> isActivated​(org.apereo.cas.authentication.Authentication authentication,
                                                                          org.apereo.cas.services.RegisteredService registeredService,
                                                                          javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                          org.apereo.cas.authentication.principal.Service service)
        Is activated optional.
        Parameters:
        authentication - the authentication
        registeredService - the service
        httpServletRequest - the http servlet request
        service - the service
        Returns:
        the optional
      • supports

        default boolean supports​(javax.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
      • getName

        default java.lang.String getName()