java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
jakarta.security.enterprise.AuthenticationException
- All Implemented Interfaces:
Serializable
A generic authentication exception.
This exception corresponds to the Jakarta Authentication
AuthException
in that whenever a
method from the HttpAuthenticationMechanism
throws this exception, the Jakarta Authentication
bridge has to throw an AuthException
back to the Jakarta Authentication runtime wrapping
this exception.- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newAuthenticationException
exception withnull
as its detail message.AuthenticationException
(String message) Constructs a newAuthenticationException
exception with the specified detail message.AuthenticationException
(String message, Throwable cause) Constructs a newAuthenticationException
exception with the specified detail message and cause.AuthenticationException
(Throwable cause) Constructs a newAuthenticationException
exception 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 Details
-
AuthenticationException
public AuthenticationException()Constructs a newAuthenticationException
exception withnull
as its detail message. -
AuthenticationException
Constructs a newAuthenticationException
exception with the specified detail message.- Parameters:
message
- the detail message.
-
AuthenticationException
-
AuthenticationException
Constructs a newAuthenticationException
exception with the specified cause.- Parameters:
cause
- the cause.
-