Class DefaultCasWebflowAuthenticationExceptionHandler

    • 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
      org.springframework.webflow.execution.Event handle​(org.apereo.cas.authentication.AuthenticationException exception, org.springframework.webflow.execution.RequestContext requestContext)
      Handle event.
      protected java.lang.String handleAuthenticationException​(org.apereo.cas.authentication.AuthenticationException e, org.springframework.webflow.execution.RequestContext requestContext)
      Maps an authentication exception onto a state name equal to the simple class name of the handler errors.
      boolean supports​(java.lang.Exception exception, org.springframework.webflow.execution.RequestContext requestContext)
      Supports exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.core.Ordered

        getOrder
    • Constructor Detail

      • DefaultCasWebflowAuthenticationExceptionHandler

        public DefaultCasWebflowAuthenticationExceptionHandler()
    • Method Detail

      • handle

        public org.springframework.webflow.execution.Event handle​(org.apereo.cas.authentication.AuthenticationException exception,
                                                                  org.springframework.webflow.execution.RequestContext requestContext)
        Description copied from interface: CasWebflowExceptionHandler
        Handle event.
        Specified by:
        handle in interface CasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>
        Parameters:
        exception - the exception
        requestContext - the request context
        Returns:
        the event
      • supports

        public boolean supports​(java.lang.Exception exception,
                                org.springframework.webflow.execution.RequestContext requestContext)
        Description copied from interface: CasWebflowExceptionHandler
        Supports exception.
        Specified by:
        supports in interface CasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>
        Parameters:
        exception - the exception
        requestContext - the request context
        Returns:
        true/false
      • handleAuthenticationException

        protected java.lang.String handleAuthenticationException​(org.apereo.cas.authentication.AuthenticationException e,
                                                                 org.springframework.webflow.execution.RequestContext requestContext)
        Maps an authentication exception onto a state name equal to the simple class name of the handler errors. with highest precedence. Also sets an ERROR severity message in the message context of the form [messageBundlePrefix][exceptionClassSimpleName] for for the first handler error that is configured. If no match is found, "UNKNOWN" is returned.
        Parameters:
        e - Authentication error to handle.
        requestContext - the spring context
        Returns:
        Name of next flow state to transition to or "UNKNOWN"