Package org.apereo.cas.authentication
Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apereo.cas.authentication.RootCasException
org.apereo.cas.authentication.AuthenticationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PrincipalException
,UnauthorizedAuthenticationException
Authentication raised by
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.- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthenticationException
(String message, Map<String, Throwable> handlerErrors, Map<String, AuthenticationHandlerExecutionResult> handlerSuccesses) AuthenticationException
(Throwable handlerError) AuthenticationException
(Map<String, Throwable> handlerErrors) Creates a new instance for the case when no handlers succeeded.AuthenticationException
(Map<String, Throwable> handlerErrors, Map<String, AuthenticationHandlerExecutionResult> handlerSuccesses) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.apereo.cas.authentication.RootCasException
getArgs, getCode, withCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationException
-
AuthenticationException
public AuthenticationException() -
AuthenticationException
Creates a new instance for the case when no handlers succeeded.- Parameters:
handlerErrors
- Map of handler names to errors.
-
AuthenticationException
-
AuthenticationException
-
AuthenticationException
-
-
Method Details
-
getHandlerErrors
-
getHandlerSuccesses
-