public class AuthenticationException extends Exception
AuthenticationManager to signal authentication failure.
Authentication failure typically occurs when one or more AuthenticationHandler components
fail to authenticate credentials. This exception contains information about handler successes
and failures that may be used by higher-level components to determine subsequent behavior.| Constructor and Description |
|---|
AuthenticationException()
Creates a new instance for the case when no handlers were attempted, i.e. no successes or failures.
|
AuthenticationException(Map<String,Class<? extends Exception>> handlerErrors)
Creates a new instance for the case when no handlers succeeded.
|
AuthenticationException(Map<String,Class<? extends Exception>> handlerErrors,
Map<String,HandlerResult> handlerSuccesses)
Creates a new instance for the case when there are both handler successes and failures.
|
AuthenticationException(String message,
Map<String,Class<? extends Exception>> handlerErrors,
Map<String,HandlerResult> handlerSuccesses)
Creates a new instance for the case when there are both handler successes and failures and a custom
error message is required.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Class<? extends Exception>> |
getHandlerErrors()
Gets an unmodifable map of handler names to errors.
|
Map<String,HandlerResult> |
getHandlerSuccesses()
Gets an unmodifable map of handler names to authentication successes.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AuthenticationException()
public AuthenticationException(Map<String,Class<? extends Exception>> handlerErrors)
handlerErrors - Map of handler names to errors.public AuthenticationException(Map<String,Class<? extends Exception>> handlerErrors, Map<String,HandlerResult> handlerSuccesses)
handlerErrors - Map of handler names to errors.handlerSuccesses - Map of handler names to authentication successes.public AuthenticationException(String message, Map<String,Class<? extends Exception>> handlerErrors, Map<String,HandlerResult> handlerSuccesses)
handlerErrors - Map of handler names to errors.handlerSuccesses - Map of handler names to authentication successes.public Map<String,Class<? extends Exception>> getHandlerErrors()
public Map<String,HandlerResult> getHandlerSuccesses()
Copyright © 2004-2014 Jasig. All Rights Reserved.