|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AuthenticationResult> org.weborganic.bastille.security.AuthenticationResult
public enum AuthenticationResult
An enumeration for the results of authentication methods such as login and logout.
Enum Constant Summary | |
---|---|
ALREADY_LOGGED_IN
The user was already logged in. |
|
ALREADY_LOGGED_OUT
The user was already logged out. |
|
INCORRECT_DETAILS
The login failed because the user provided incorrect details. |
|
INSUFFICIENT_DETAILS
The login could not proceed because the user provided insufficient details. |
|
LOGGED_IN
The login succeeded and resulted in the user being logged in. |
|
LOGGED_OUT
The user has been logged out. |
Method Summary | |
---|---|
static AuthenticationResult |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AuthenticationResult[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AuthenticationResult LOGGED_IN
public static final AuthenticationResult ALREADY_LOGGED_IN
public static final AuthenticationResult INSUFFICIENT_DETAILS
public static final AuthenticationResult INCORRECT_DETAILS
public static final AuthenticationResult LOGGED_OUT
public static final AuthenticationResult ALREADY_LOGGED_OUT
Method Detail |
---|
public static AuthenticationResult[] values()
for (AuthenticationResult c : AuthenticationResult.values()) System.out.println(c);
public static AuthenticationResult valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |