Top Description Fields Constructors
jakarta.security.enterprise

public Class AuthenticationException

extends GeneralSecurityException
Class Inheritance
Imports
java.security.GeneralSecurityException, jakarta.security.enterprise.authentication.mechanism.http.HttpAuthenticationMechanism

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.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
AuthenticationException()

Constructs a new AuthenticationException exception with null as its detail message.

public
AuthenticationException(String
the detail message.
message
)

Constructs a new AuthenticationException exception with the specified detail message.

public
AuthenticationException(String
the detail message.
message
,
Throwable
the cause.
cause
)

Constructs a new AuthenticationException exception with the specified detail message and cause.

public
AuthenticationException(Throwable
the cause.
cause
)

Constructs a new AuthenticationException exception with the specified cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.GeneralSecurityException.serialVersionUID.

Constructor Detail

AuthenticationExceptionback to summary
public AuthenticationException()

Constructs a new AuthenticationException exception with null as its detail message.

AuthenticationExceptionback to summary
public AuthenticationException(String message)

Constructs a new AuthenticationException exception with the specified detail message.

Parameters
message:String

the detail message.

AuthenticationExceptionback to summary
public AuthenticationException(String message, Throwable cause)

Constructs a new AuthenticationException exception with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

the cause.

AuthenticationExceptionback to summary
public AuthenticationException(Throwable cause)

Constructs a new AuthenticationException exception with the specified cause.

Parameters
cause:Throwable

the cause.