public enum LoginResult extends Enum<LoginResult>
Enum Constant and Description |
---|
AUTHENTICATION_DENIED
The user is not allowed to even attempt a login
|
AUTHENTICATION_FAILED
The user could not be authenticated.
|
OK
The login was OK
|
OK_WITH_ELEVATED_SECURITY_CHECK_REQUIRED
Authentication succeeded (username and password match) but an elevated security check is required.
|
USER_DOES_NOT_EXIST
The username does not exist
|
Modifier and Type | Method and Description |
---|---|
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 USER_DOES_NOT_EXIST
public static final LoginResult AUTHENTICATION_DENIED
public static final LoginResult OK_WITH_ELEVATED_SECURITY_CHECK_REQUIRED
public static final LoginResult AUTHENTICATION_FAILED
public static final LoginResult OK
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 nullCopyright © 2003–2015 Atlassian. All rights reserved.