Enum RegistrationConfiguration.PasswordRules
- java.lang.Object
-
- java.lang.Enum<RegistrationConfiguration.PasswordRules>
-
- org.xwiki.security.authentication.RegistrationConfiguration.PasswordRules
-
- All Implemented Interfaces:
Serializable,Comparable<RegistrationConfiguration.PasswordRules>
- Enclosing interface:
- RegistrationConfiguration
public static enum RegistrationConfiguration.PasswordRules extends Enum<RegistrationConfiguration.PasswordRules>
Represents the rules to apply for creating a new password.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ONE_LOWER_CASE_CHARACTERWhen one lower case character is mandatory.ONE_NUMBER_CHARACTERWhen one number character is mandatory.ONE_SYMBOL_CHARACTERWhen one symbol character is mandatory.ONE_UPPER_CASE_CHARACTERWhen one upper case character is mandatory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatterngetPattern()static RegistrationConfiguration.PasswordRulesvalueOf(String name)Returns the enum constant of this type with the specified name.static RegistrationConfiguration.PasswordRules[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_LOWER_CASE_CHARACTER
public static final RegistrationConfiguration.PasswordRules ONE_LOWER_CASE_CHARACTER
When one lower case character is mandatory.
-
ONE_UPPER_CASE_CHARACTER
public static final RegistrationConfiguration.PasswordRules ONE_UPPER_CASE_CHARACTER
When one upper case character is mandatory.
-
ONE_SYMBOL_CHARACTER
public static final RegistrationConfiguration.PasswordRules ONE_SYMBOL_CHARACTER
When one symbol character is mandatory.
-
ONE_NUMBER_CHARACTER
public static final RegistrationConfiguration.PasswordRules ONE_NUMBER_CHARACTER
When one number character is mandatory.
-
-
Method Detail
-
values
public static RegistrationConfiguration.PasswordRules[] 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 (RegistrationConfiguration.PasswordRules c : RegistrationConfiguration.PasswordRules.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegistrationConfiguration.PasswordRules 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
-
getPattern
public Pattern getPattern()
- Returns:
- the pattern used by the rule to ensure it's respected.
-
-