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:
java.io.Serializable
public class AuthenticationException extends java.security.GeneralSecurityException
A generic authentication exception. This exception corresponds to the Jakarta AuthenticationAuthException
in that whenever a method from theHttpAuthenticationMechanism
throws this exception, the Jakarta Authentication bridge has to throw anAuthException
back to the Jakarta Authentication runtime wrapping this exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationException()
Constructs a newAuthenticationException
exception withnull
as its detail message.AuthenticationException(java.lang.String message)
Constructs a newAuthenticationException
exception with the specified detail message.AuthenticationException(java.lang.String message, java.lang.Throwable cause)
Constructs a newAuthenticationException
exception with the specified detail message and cause.AuthenticationException(java.lang.Throwable cause)
Constructs a newAuthenticationException
exception with the specified cause.
-
-
-
Constructor Detail
-
AuthenticationException
public AuthenticationException()
Constructs a newAuthenticationException
exception withnull
as its detail message.
-
AuthenticationException
public AuthenticationException(java.lang.String message)
Constructs a newAuthenticationException
exception with the specified detail message.- Parameters:
message
- the detail message.
-
AuthenticationException
public AuthenticationException(java.lang.String message, java.lang.Throwable cause)
Constructs a newAuthenticationException
exception with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- the cause.
-
AuthenticationException
public AuthenticationException(java.lang.Throwable cause)
Constructs a newAuthenticationException
exception with the specified cause.- Parameters:
cause
- the cause.
-
-