public class AuthenticationExceptionHandlerAction
extends org.springframework.webflow.action.AbstractAction
AuthenticationException raised from the authentication
layer:
errors
in list order. The first entry that matches determines the outcome state, which
is the simple class name of the exception.| Constructor and Description |
|---|
AuthenticationExceptionHandlerAction() |
AuthenticationExceptionHandlerAction(java.util.Set<java.lang.Class<? extends java.lang.Exception>> errors) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.webflow.execution.Event |
doExecute(org.springframework.webflow.execution.RequestContext requestContext) |
java.util.Set<java.lang.Class<? extends java.lang.Exception>> |
getErrors() |
java.lang.String |
handle(java.lang.Exception e,
org.springframework.binding.message.MessageContext messageContext)
Maps an authentication exception onto a state name.
|
protected java.lang.String |
handleAbstractTicketException(org.apereo.cas.ticket.AbstractTicketException e,
org.springframework.binding.message.MessageContext messageContext)
Maps an
AbstractTicketException onto a state name equal to the simple class name of the exception with
highest precedence. |
protected java.lang.String |
handleAuthenticationException(org.apereo.cas.authentication.AuthenticationException e,
org.springframework.binding.message.MessageContext messageContext)
Maps an authentication exception onto a state name equal to the simple class name of the
AuthenticationException.getHandlerErrors()
with highest precedence. |
public AuthenticationExceptionHandlerAction()
public AuthenticationExceptionHandlerAction(java.util.Set<java.lang.Class<? extends java.lang.Exception>> errors)
public java.util.Set<java.lang.Class<? extends java.lang.Exception>> getErrors()
public java.lang.String handle(java.lang.Exception e,
org.springframework.binding.message.MessageContext messageContext)
e - Authentication error to handle.messageContext - the spring message contextprotected java.lang.String handleAuthenticationException(org.apereo.cas.authentication.AuthenticationException e,
org.springframework.binding.message.MessageContext messageContext)
AuthenticationException.getHandlerErrors()
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, is returned.e - Authentication error to handle.messageContext - the spring message contextprotected java.lang.String handleAbstractTicketException(org.apereo.cas.ticket.AbstractTicketException e,
org.springframework.binding.message.MessageContext messageContext)
AbstractTicketException onto a state name equal to the simple class name of the exception with
highest precedence. Also sets an ERROR severity message in the message context with the error code found in
RootCasException.getCode(). If no match is found,
is returned.e - Ticket exception to handle.messageContext - the spring message contextprotected org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext requestContext)
throws java.lang.Exception
doExecute in class org.springframework.webflow.action.AbstractActionjava.lang.Exception