Class DefaultCasWebflowAuthenticationExceptionHandler

java.lang.Object
org.apereo.cas.web.flow.authentication.DefaultCasWebflowAuthenticationExceptionHandler
All Implemented Interfaces:
CasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>, org.springframework.core.Ordered

public class DefaultCasWebflowAuthenticationExceptionHandler extends Object implements CasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>
Since:
6.1.0
  • Constructor Details

    • DefaultCasWebflowAuthenticationExceptionHandler

      public DefaultCasWebflowAuthenticationExceptionHandler(CasWebflowExceptionCatalog errors, String messageBundlePrefix)
      Creates a new DefaultCasWebflowAuthenticationExceptionHandler instance.
      Parameters:
      errors - Ordered list of error classes that this class knows how to handle.
      messageBundlePrefix - String appended to exception class name to create a message bundle key for that particular error.
  • Method Details

    • 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(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
    • getErrors

      public CasWebflowExceptionCatalog getErrors()
      Ordered list of error classes that this class knows how to handle.
    • getMessageBundlePrefix

      public String getMessageBundlePrefix()
      String appended to exception class name to create a message bundle key for that particular error.
    • getOrder

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

      public void setOrder(int order)