Class RestEndpointMultifactorAuthenticationTrigger

  • All Implemented Interfaces:
    org.apereo.cas.authentication.MultifactorAuthenticationTrigger, org.springframework.core.Ordered

    public class RestEndpointMultifactorAuthenticationTrigger
    extends java.lang.Object
    implements org.apereo.cas.authentication.MultifactorAuthenticationTrigger
    Since:
    6.0.0
    • Field Summary

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

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String callRestEndpointForMultifactor​(org.apereo.cas.authentication.principal.Principal principal, org.apereo.cas.authentication.principal.Service resolvedService)
      Call rest endpoint for multifactor.
      java.util.Optional<org.apereo.cas.authentication.MultifactorAuthenticationProvider> isActivated​(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse response, org.apereo.cas.authentication.principal.Service service)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.MultifactorAuthenticationTrigger

        getName, getOrder, supports
    • Constructor Detail

      • RestEndpointMultifactorAuthenticationTrigger

        public RestEndpointMultifactorAuthenticationTrigger()
    • Method Detail

      • isActivated

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

        protected java.lang.String callRestEndpointForMultifactor​(org.apereo.cas.authentication.principal.Principal principal,
                                                                  org.apereo.cas.authentication.principal.Service resolvedService)
        Call rest endpoint for multifactor.
        Parameters:
        principal - the principal
        resolvedService - the resolved service
        Returns:
        return the rest response, typically the mfa id.