If the program wants to handle this exception in particular, it should catch AuthenticationException explicitly before attempting to catch NamingException. After catching AuthenticationException, the program could reattempt the authentication by updating the resolved context's environment properties with the appropriate credentials.
Synchronization and serialization issues that apply to NamingException apply directly here.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides javax. |
| Access | Constructor and Description |
|---|---|
| public | AuthenticationException(String
A possibly null string containing
additional detail about this exception. explanation)Constructs a new instance of AuthenticationException using the explanation supplied. |
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. Use serialVersionUID from JNDI 1.1.1 for interoperability | |
| AuthenticationException | back to summary |
|---|---|
| public AuthenticationException(String explanation) Constructs a new instance of AuthenticationException using the explanation supplied. All other fields default to null.
| |
| AuthenticationException | back to summary |
|---|---|
| public AuthenticationException() Constructs a new instance of AuthenticationException. All fields are set to null. | |