public enum LoginResult extends Enum<LoginResult>
Enum Constant and Description |
---|
DISABLED
User is disabled.
|
INVALID_PASSWORD
Invalid password.
|
INVALID_PASSWORD_NEXT_ATTEMPT_WILL_DISABLE
User has too many invalid logins: retry later, but next time,
the user will be disabled upon a failure.
|
INVALID_USER
Invalid user.
|
SUCCESS
Validation succeeded.
|
SUCCESS_CHANGE_PASSWORD
Validation succeeded, but user has to change password.
|
SUCCESS_MUST_REGISTER
Validation succeeded, but user must register with the License System.
|
SYSTEM_FAILURE
System failure.
|
TOO_MANY_INVALID_LOGINS_RETRY_LATER
User has too many invalid logins: retry later.
|
TOO_MANY_INVALID_LOGINS_RETRY_LATER_NEXT_TIME_DISABLE
User has too many invalid logins: retry later.
|
Modifier and Type | Field and Description |
---|---|
String |
englishMessage
The English text message.
|
String |
textID
The text ID for the message, starts with "userauth.".
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSuccessful()
Returns if the login is successful, even if e.g.
|
boolean |
mustChangePassword()
Returns if the user must change password.
|
static LoginResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoginResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoginResult SUCCESS
public static final LoginResult SUCCESS_CHANGE_PASSWORD
public static final LoginResult SUCCESS_MUST_REGISTER
public static final LoginResult INVALID_PASSWORD
public static final LoginResult TOO_MANY_INVALID_LOGINS_RETRY_LATER
public static final LoginResult TOO_MANY_INVALID_LOGINS_RETRY_LATER_NEXT_TIME_DISABLE
public static final LoginResult INVALID_PASSWORD_NEXT_ATTEMPT_WILL_DISABLE
public static final LoginResult DISABLED
public static final LoginResult INVALID_USER
public static final LoginResult SYSTEM_FAILURE
public final String englishMessage
public final String textID
public static LoginResult[] values()
for (LoginResult c : LoginResult.values()) System.out.println(c);
public static LoginResult 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 nullpublic boolean isSuccessful()
public boolean mustChangePassword()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.