Package jakarta.security.enterprise
Class AuthenticationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- jakarta.security.enterprise.AuthenticationException
-
- All Implemented Interfaces:
Serializable
public class AuthenticationException extends GeneralSecurityException
A generic authentication exception. This exception corresponds to the Jakarta AuthenticationAuthExceptionin that whenever a method from theHttpAuthenticationMechanismthrows this exception, the Jakarta Authentication bridge has to throw anAuthExceptionback to the Jakarta Authentication runtime wrapping this exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationException()Constructs a newAuthenticationExceptionexception withnullas its detail message.AuthenticationException(String message)Constructs a newAuthenticationExceptionexception with the specified detail message.AuthenticationException(String message, Throwable cause)Constructs a newAuthenticationExceptionexception with the specified detail message and cause.AuthenticationException(Throwable cause)Constructs a newAuthenticationExceptionexception with the specified cause.
-
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()
Constructs a newAuthenticationExceptionexception withnullas its detail message.
-
AuthenticationException
public AuthenticationException(String message)
Constructs a newAuthenticationExceptionexception with the specified detail message.- Parameters:
message- the detail message.
-
AuthenticationException
public AuthenticationException(String message, Throwable cause)
Constructs a newAuthenticationExceptionexception with the specified detail message and cause.- Parameters:
message- the detail message.cause- the cause.
-
AuthenticationException
public AuthenticationException(Throwable cause)
Constructs a newAuthenticationExceptionexception with the specified cause.- Parameters:
cause- the cause.
-
-