Top Description Fields Constructors
jakarta.security.auth.message

public Class AuthException

extends LoginException
Class Inheritance
Imports
javax.security.auth.login.LoginException

A generic authentication exception.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
AuthException()

Constructs an AuthException with no detail message.

public
AuthException(String
The detail message.
msg
)

Constructs an AuthException with the specified detail message.

public
AuthException(String
The detail message.
msg
,
Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs an AuthException with the specified detail message and cause.

public
AuthException(Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs an AuthException with the specified cause and a detail message of (cause==null ?

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.security.auth.login.LoginException.serialVersionUID.

Constructor Detail

AuthExceptionback to summary
public AuthException()

Constructs an AuthException with no detail message. A detail message is a String that describes this particular exception.

AuthExceptionback to summary
public AuthException(String msg)

Constructs an AuthException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters
msg:String

The detail message.

AuthExceptionback to summary
public AuthException(String msg, Throwable cause)

Constructs an AuthException with the specified detail message and cause.

Note

Providing a cause could potentially disclose information about the security system to an outside party. Utter care should be taken that this is either not the case, or the exception is correctly handled to prevent this.

Parameters
msg:String

The detail message.

cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Since
3.0
AuthExceptionback to summary
public AuthException(Throwable cause)

Constructs an AuthException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). *

Note

Providing a cause could potentially disclose information about the security system to an outside party. Utter care should be taken that this is either not the case, or the exception is correctly handled to prevent this.

Parameters
cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Since
3.0