Package mireka.login
Enum LoginDecision
- Object
-
- Enum<LoginDecision>
-
- mireka.login.LoginDecision
-
- All Implemented Interfaces:
java.io.Serializable,Comparable<LoginDecision>
public enum LoginDecision extends Enum<LoginDecision>
This class represents the result of an authentication attempt.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALIDPASSWORD_DOES_NOT_MATCHUSERNAME_NOT_EXISTSVALID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoginDecisionvalueOf(String name)Returns the enum constant of this type with the specified name.static LoginDecision[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USERNAME_NOT_EXISTS
public static final LoginDecision USERNAME_NOT_EXISTS
-
PASSWORD_DOES_NOT_MATCH
public static final LoginDecision PASSWORD_DOES_NOT_MATCH
-
INVALID
public static final LoginDecision INVALID
-
VALID
public static final LoginDecision VALID
-
-
Method Detail
-
values
public static LoginDecision[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LoginDecision c : LoginDecision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoginDecision valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-