Package org.bremersee.dccon.model
Enum PasswordComplexity
- java.lang.Object
-
- java.lang.Enum<PasswordComplexity>
-
- org.bremersee.dccon.model.PasswordComplexity
-
- All Implemented Interfaces:
Serializable
,Comparable<PasswordComplexity>
public enum PasswordComplexity extends Enum<PasswordComplexity>
The password complexity.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PasswordComplexity
fromValue(String value)
From value password complexity.String
toString()
static PasswordComplexity
valueOf(String name)
Returns the enum constant of this type with the specified name.static PasswordComplexity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON
public static final PasswordComplexity ON
On password complexity.
-
OFF
public static final PasswordComplexity OFF
Off password complexity.
-
DEFAULT
public static final PasswordComplexity DEFAULT
Default password complexity.
-
-
Method Detail
-
values
public static PasswordComplexity[] 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 (PasswordComplexity c : PasswordComplexity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PasswordComplexity 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<PasswordComplexity>
-
fromValue
public static PasswordComplexity fromValue(String value)
From value password complexity.- Parameters:
value
- the value- Returns:
- the password complexity
-
-