public class AuthException
extends java.lang.SecurityException
Authenticator is used for external
authentication, a java.lang.SecurityException is thrown
to signify an authentication failure. If the requirement is to
also specify the reason for the failure, this exception should be
thrown.| Modifier and Type | Field and Description |
|---|---|
static int |
ACCOUNT_DISABLED |
static int |
ACCOUNT_LOCKED |
static int |
CREDENTIAL_MISMATCH |
static int |
GENERIC_ERROR |
static int |
PASSWORD_EXPIRED |
static int |
PASSWORD_IN_HISTORY |
static int |
PASSWORD_MIN_LENGTH_UNSATISFIED |
static int |
PASSWORD_MIN_NUMERIC_UNSATISFIED |
| Constructor and Description |
|---|
AuthException()
Constructs an
AuthException with GENERIC_ERROR
as the authentication code. |
AuthException(int code)
Constructs an
AuthException with the specified authentication
code. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the error code.
|
public static final int ACCOUNT_DISABLED
public static final int ACCOUNT_LOCKED
public static final int CREDENTIAL_MISMATCH
public static final int GENERIC_ERROR
public static final int PASSWORD_EXPIRED
public static final int PASSWORD_IN_HISTORY
public static final int PASSWORD_MIN_LENGTH_UNSATISFIED
public static final int PASSWORD_MIN_NUMERIC_UNSATISFIED