Package com.identity4j.util.passwords
Enum PasswordPolicyException.Type
- java.lang.Object
-
- java.lang.Enum<PasswordPolicyException.Type>
-
- com.identity4j.util.passwords.PasswordPolicyException.Type
-
- All Implemented Interfaces:
Serializable,Comparable<PasswordPolicyException.Type>
- Enclosing class:
- PasswordPolicyException
public static enum PasswordPolicyException.Type extends Enum<PasswordPolicyException.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description containsDictionaryWordscontainsUsernamedoesNotMatchComplexitydoesNotMatchMinimumStrengthnotEnoughDigitsnotEnoughLowerCasenotEnoughSymbolsnotEnoughUpperCasetooLongtooShort
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PasswordPolicyException.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static PasswordPolicyException.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
tooShort
public static final PasswordPolicyException.Type tooShort
-
tooLong
public static final PasswordPolicyException.Type tooLong
-
notEnoughLowerCase
public static final PasswordPolicyException.Type notEnoughLowerCase
-
notEnoughUpperCase
public static final PasswordPolicyException.Type notEnoughUpperCase
-
notEnoughSymbols
public static final PasswordPolicyException.Type notEnoughSymbols
-
notEnoughDigits
public static final PasswordPolicyException.Type notEnoughDigits
-
containsDictionaryWords
public static final PasswordPolicyException.Type containsDictionaryWords
-
containsUsername
public static final PasswordPolicyException.Type containsUsername
-
doesNotMatchComplexity
public static final PasswordPolicyException.Type doesNotMatchComplexity
-
doesNotMatchMinimumStrength
public static final PasswordPolicyException.Type doesNotMatchMinimumStrength
-
-
Method Detail
-
values
public static PasswordPolicyException.Type[] 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 (PasswordPolicyException.Type c : PasswordPolicyException.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PasswordPolicyException.Type 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
-
-