Class GroovyScriptMultifactorAuthenticationTrigger

java.lang.Object
org.apereo.cas.authentication.mfa.trigger.GroovyScriptMultifactorAuthenticationTrigger
All Implemented Interfaces:
org.apereo.cas.authentication.MultifactorAuthenticationTrigger, org.springframework.beans.factory.DisposableBean, org.springframework.core.Ordered

public class GroovyScriptMultifactorAuthenticationTrigger extends Object implements org.apereo.cas.authentication.MultifactorAuthenticationTrigger, org.springframework.beans.factory.DisposableBean
Since:
6.0.0
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    GroovyScriptMultifactorAuthenticationTrigger(org.apereo.cas.util.scripting.WatchableGroovyScriptResource watchableScript, org.springframework.context.ApplicationContext applicationContext, org.apereo.cas.authentication.MultifactorAuthenticationProviderResolver multifactorAuthenticationProviderResolver, org.apereo.cas.authentication.MultifactorAuthenticationProviderSelector multifactorAuthenticationProviderSelector)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.springframework.context.ApplicationContext
     
    org.apereo.cas.authentication.MultifactorAuthenticationProviderResolver
     
    org.apereo.cas.authentication.MultifactorAuthenticationProviderSelector
     
    int
     
    org.apereo.cas.util.scripting.WatchableGroovyScriptResource
     
    Optional<org.apereo.cas.authentication.MultifactorAuthenticationProvider>
    isActivated(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.authentication.principal.Service service)
     
    void
    setOrder(int order)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.apereo.cas.authentication.MultifactorAuthenticationTrigger

    getName, supports
  • Constructor Details

    • GroovyScriptMultifactorAuthenticationTrigger

      public GroovyScriptMultifactorAuthenticationTrigger(org.apereo.cas.util.scripting.WatchableGroovyScriptResource watchableScript, org.springframework.context.ApplicationContext applicationContext, org.apereo.cas.authentication.MultifactorAuthenticationProviderResolver multifactorAuthenticationProviderResolver, org.apereo.cas.authentication.MultifactorAuthenticationProviderSelector multifactorAuthenticationProviderSelector)
  • Method Details

    • isActivated

      public Optional<org.apereo.cas.authentication.MultifactorAuthenticationProvider> isActivated(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.authentication.principal.Service service)
      Specified by:
      isActivated in interface org.apereo.cas.authentication.MultifactorAuthenticationTrigger
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • getWatchableScript

      public org.apereo.cas.util.scripting.WatchableGroovyScriptResource getWatchableScript()
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • getMultifactorAuthenticationProviderResolver

      public org.apereo.cas.authentication.MultifactorAuthenticationProviderResolver getMultifactorAuthenticationProviderResolver()
    • getMultifactorAuthenticationProviderSelector

      public org.apereo.cas.authentication.MultifactorAuthenticationProviderSelector getMultifactorAuthenticationProviderSelector()
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.apereo.cas.authentication.MultifactorAuthenticationTrigger
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)