Package org.apereo.cas.web.flow.actions
Class AuthenticationExceptionHandlerAction
- java.lang.Object
-
- org.springframework.webflow.action.AbstractAction
-
- org.apereo.cas.web.flow.actions.AuthenticationExceptionHandlerAction
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.webflow.execution.Action
public class AuthenticationExceptionHandlerAction extends org.springframework.webflow.action.AbstractActionPerforms two important error handling functions on anAuthenticationExceptionraised from the authentication layer:- Maps handler errors onto message bundle strings for display to user.
- Determines the next webflow state by comparing handler errors. in list order. The first entry that matches determines the outcome state, which is the simple class name of the exception.
- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description AuthenticationExceptionHandlerAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.webflow.execution.EventdoExecute(org.springframework.webflow.execution.RequestContext requestContext)java.lang.Stringhandle(java.lang.Exception e, org.springframework.webflow.execution.RequestContext requestContext)Maps an authentication exception onto a state name.
-
-
-
Method Detail
-
doExecute
protected org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext requestContext)
- Specified by:
doExecutein classorg.springframework.webflow.action.AbstractAction
-
handle
public java.lang.String handle(java.lang.Exception e, org.springframework.webflow.execution.RequestContext requestContext)Maps an authentication exception onto a state name. Also sets an ERROR severity message in the message context.- Parameters:
e- Authentication error to handle.requestContext- the spring context- Returns:
- Name of next flow state to transition to or "UNKNOWN"
-
-