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 if / how password recovery is used
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAPTCHAPassword recovery is allowed by a link sent via e-mail and requests captchaDISABLEDPassword recovery is disabledSECURITY_QUESTIONPassword recovery is allowed by a link sent via e-mail, with security question and requests captchaWITHOUT_CAPTCHAPassword recovery is allowed by a link sent via e-mail without requesting captcha
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanrequestCaptcha()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
-
CAPTCHA
public static final ForgotPasswordMode CAPTCHA
Password recovery is allowed by a link sent via e-mail and requests captcha
-
WITHOUT_CAPTCHA
public static final ForgotPasswordMode WITHOUT_CAPTCHA
Password recovery is allowed by a link sent via e-mail without requesting captcha
-
SECURITY_QUESTION
public static final ForgotPasswordMode SECURITY_QUESTION
Password recovery is allowed by a link sent via e-mail, with security question and requests captcha
-
-
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
-
requestCaptcha
public boolean requestCaptcha()
-
showForgotPassword
public boolean showForgotPassword()
-
-