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.AuthExceptionA generic authentication exception which accepts a detail message and/or the cause.- Since:
- 2.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationException(String message)Creates anAuthenticationExceptionwith the specified detail message.AuthenticationException(String message, Throwable cause)Creates anAuthenticationExceptionwith the specified detail message and cause.AuthenticationException(Throwable cause)Creates anAuthenticationExceptionwith 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 Detail
-
AuthenticationException
public AuthenticationException(String message)
Creates anAuthenticationExceptionwith the specified detail message.- Parameters:
message- The detail message.
-
AuthenticationException
public AuthenticationException(Throwable cause)
Creates anAuthenticationExceptionwith the specified cause and a detail message of(cause==null ? null : cause.getMessage()).- Parameters:
cause- The cause.
-
-