Enum ForgotPasswordMode
- java.lang.Object
-
- java.lang.Enum<ForgotPasswordMode>
-
- org.cyclos.model.system.configurations.ForgotPasswordMode
-
- All Implemented Interfaces:
Serializable,Comparable<ForgotPasswordMode>,HasMessageKey
public enum ForgotPasswordMode extends Enum<ForgotPasswordMode> implements HasMessageKey
Determines whether password recovery and security question are used
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEDPassword recovery is disabledENABLEDPassword recovery is enabled without a security questionSECURITY_QUESTIONPassword recovery is enabled with a security question
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanshowForgotPassword()static ForgotPasswordModevalueOf(String name)Returns the enum constant of this type with the specified name.static ForgotPasswordMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final ForgotPasswordMode DISABLED
Password recovery is disabled
-
ENABLED
public static final ForgotPasswordMode ENABLED
Password recovery is enabled without a security question
-
SECURITY_QUESTION
public static final ForgotPasswordMode SECURITY_QUESTION
Password recovery is enabled with a security question
-
-
Method Detail
-
values
public static ForgotPasswordMode[] 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 (ForgotPasswordMode c : ForgotPasswordMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ForgotPasswordMode 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
showForgotPassword
public boolean showForgotPassword()
-
-