public class AuthenticationExceptionHandler extends Object
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 |
|---|
AuthenticationExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<Class<? extends Exception>> |
getErrors() |
String |
handle(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. |
void |
setErrors(List<Class<? extends Exception>> errors)
Sets the list of errors that this class knows how to handle.
|
void |
setMessageBundlePrefix(String prefix)
Sets the message bundle prefix appended to exception class names to create a message bundle key for that
particular error.
|
public void setErrors(List<Class<? extends Exception>> errors)
errors - List of errors in order of descending precedence.public void setMessageBundlePrefix(String prefix)
prefix - Prefix appended to exception names.public String handle(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 each handler error that is
configured. If not match is found, is returned.e - Authentication error to handle.Copyright © 2004-2015 Apereo. All Rights Reserved.