Serializable
, Comparable<AuthenticationChecker.AuthenticationError>
public static enum AuthenticationChecker.AuthenticationError extends Enum<AuthenticationChecker.AuthenticationError>
Enum Constant | Description |
---|---|
INVALID_LOGIN_CHAR |
The login contains invalids characters.
|
INVALID_PASS_CHAR |
The password contains invalid characters.
|
LOGIN_TOO_LONG |
The login contains too many characters.
|
LOGIN_TOO_SHORT |
The login does not contain enough characters.
|
PASS_TOO_LONG |
The password contains too many characters.
|
PASS_TOO_SHORT |
The password does not contain enough characters.
|
Modifier and Type | Field | Description |
---|---|---|
String |
messageKey |
Key associated to the error message.
|
Modifier and Type | Method | Description |
---|---|---|
static AuthenticationChecker.AuthenticationError |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AuthenticationChecker.AuthenticationError[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationChecker.AuthenticationError INVALID_LOGIN_CHAR
public static final AuthenticationChecker.AuthenticationError INVALID_PASS_CHAR
public static final AuthenticationChecker.AuthenticationError LOGIN_TOO_LONG
public static final AuthenticationChecker.AuthenticationError LOGIN_TOO_SHORT
public static final AuthenticationChecker.AuthenticationError PASS_TOO_LONG
public static final AuthenticationChecker.AuthenticationError PASS_TOO_SHORT
public final String messageKey
public static AuthenticationChecker.AuthenticationError[] values()
for (AuthenticationChecker.AuthenticationError c : AuthenticationChecker.AuthenticationError.values()) System.out.println(c);
public static AuthenticationChecker.AuthenticationError valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017–2018. All rights reserved.