Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
javax.security.auth.login.LoginException
javax.security.auth.message.AuthException
org.forgerock.caf.authentication.api.AuthenticationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationFailedException
public class AuthenticationException
extends javax.security.auth.message.AuthException
A generic authentication exception which accepts a detail message and/or the cause.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthenticationException
(String message) Creates anAuthenticationException
with the specified detail message.AuthenticationException
(String message, Throwable cause) Creates anAuthenticationException
with the specified detail message and cause.AuthenticationException
(Throwable cause) Creates anAuthenticationException
with the specified cause and a detail message of(cause==null ? null : cause.getMessage())
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationException
Creates anAuthenticationException
with the specified detail message.- Parameters:
message
- The detail message.
-
AuthenticationException
Creates anAuthenticationException
with the specified cause and a detail message of(cause==null ? null : cause.getMessage())
.- Parameters:
cause
- The cause.
-
AuthenticationException
Creates anAuthenticationException
with the specified detail message and cause.- Parameters:
message
- The detail message.cause
- The cause.
-