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 java.lang.Object implements CasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>
- Since:
- 6.1.0
-
-
Field Summary
-
Fields inherited from interface org.apereo.cas.web.flow.authentication.CasWebflowExceptionHandler
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description DefaultCasWebflowAuthenticationExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.webflow.execution.Eventhandle(org.apereo.cas.authentication.AuthenticationException exception, org.springframework.webflow.execution.RequestContext requestContext)Handle event.protected java.lang.StringhandleAuthenticationException(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.booleansupports(java.lang.Exception exception, org.springframework.webflow.execution.RequestContext requestContext)Supports exception.
-
-
-
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:CasWebflowExceptionHandlerHandle event.- Specified by:
handlein interfaceCasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>- Parameters:
exception- the exceptionrequestContext- the request context- Returns:
- the event
-
supports
public boolean supports(java.lang.Exception exception, org.springframework.webflow.execution.RequestContext requestContext)Description copied from interface:CasWebflowExceptionHandlerSupports exception.- Specified by:
supportsin interfaceCasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>- Parameters:
exception- the exceptionrequestContext- 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"
-
-