Class BaseMultifactorAuthenticationProviderBypassEvaluator

java.lang.Object
org.apereo.cas.authentication.bypass.BaseMultifactorAuthenticationProviderBypassEvaluator
All Implemented Interfaces:
Serializable, org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator, org.springframework.core.Ordered
Direct Known Subclasses:
AlwaysAllowMultifactorAuthenticationProviderBypassEvaluator, AuthenticationMultifactorAuthenticationProviderBypassEvaluator, CredentialMultifactorAuthenticationProviderBypassEvaluator, GroovyMultifactorAuthenticationProviderBypassEvaluator, HttpRequestMultifactorAuthenticationProviderBypassEvaluator, NeverAllowMultifactorAuthenticationProviderBypassEvaluator, PrincipalMultifactorAuthenticationProviderBypassEvaluator, RegisteredServiceMultifactorAuthenticationProviderBypassEvaluator, RegisteredServicePrincipalAttributeMultifactorAuthenticationProviderBypassEvaluator, RestMultifactorAuthenticationProviderBypassEvaluator

public abstract class BaseMultifactorAuthenticationProviderBypassEvaluator extends Object implements org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
Since:
6.1.0
See Also:
  • Field Summary

    Fields inherited from interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator

    AUTHENTICATION_ATTRIBUTE_BYPASS_MFA, AUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDER

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator>
     
    void
    forgetBypass(org.apereo.cas.authentication.Authentication authentication)
     
     
     
    boolean
    isMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, String requestedContext)
     
    void
    rememberBypass(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)
     
    boolean
    shouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider, jakarta.servlet.http.HttpServletRequest request, org.apereo.cas.authentication.principal.Service service)
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator

    getOrder, isEmpty, size
  • Method Details

    • shouldMultifactorAuthenticationProviderExecute

      public boolean shouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider, jakarta.servlet.http.HttpServletRequest request, org.apereo.cas.authentication.principal.Service service)
      Specified by:
      shouldMultifactorAuthenticationProviderExecute in interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
    • isMultifactorAuthenticationBypassed

      public boolean isMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, String requestedContext)
      Specified by:
      isMultifactorAuthenticationBypassed in interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
    • forgetBypass

      public void forgetBypass(org.apereo.cas.authentication.Authentication authentication)
      Specified by:
      forgetBypass in interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
    • rememberBypass

      public void rememberBypass(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)
      Specified by:
      rememberBypass in interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
    • belongsToMultifactorAuthenticationProvider

      public Optional<org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator> belongsToMultifactorAuthenticationProvider(String providerId)
      Specified by:
      belongsToMultifactorAuthenticationProvider in interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
    • getProviderId

      public String getProviderId()
      Specified by:
      getProviderId in interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
    • getId

      public String getId()
      Specified by:
      getId in interface org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
    • toString

      public String toString()
      Overrides:
      toString in class Object