Package adalid.jee2
Class StrongPasswordValidatorRules
java.lang.Object
adalid.jee2.StrongPasswordValidatorRules
- Author:
- Jorge Campins
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanSpecifies whether the password validator is enabled or not.intSpecifies the maximum number of consecutive alphabetical sequences that a password can have.intSpecifies the maximum number of consecutive keyboard sequences that a password can have.intSpecifies the maximum length of a password.intSpecifies the maximum number of consecutive numeric sequences that a password can have.intSpecifies the maximum number of consecutive repeated characters that a password can have.intSpecifies the minimum number of digits that a password must have.intSpecifies the minimum length of a password.intSpecifies the minimum number of lowercase characters that a password must have.intSpecifies the minimum number of special characters that a password must have.intSpecifies the minimum number of uppercase characters that a password must have.intSpecifies the the number of previous passwords that a user cannot reuse.booleanSpecifies whether a password can have spaces or not.booleanSpecifies whether a password can contain the user code or not.booleanSpecifies whether a password can contain substrings (parts) of the user name or not.intSpecifies the lower bound of the number range that a password can have.intSpecifies the upper bound of the number range that a password can have. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintintintintintintintintintintbooleanbooleanbooleanbooleanbooleanprohibit()booleanbooleanprohibit(Collection<String> substrings)
-
Field Details
-
minimumLength
public int minimumLengthSpecifies the minimum length of a password. -
maximumLength
public int maximumLengthSpecifies the maximum length of a password. -
minimumUpperCaseNumber
public int minimumUpperCaseNumberSpecifies the minimum number of uppercase characters that a password must have. -
minimumLowerCaseNumber
public int minimumLowerCaseNumberSpecifies the minimum number of lowercase characters that a password must have. -
minimumDigitNumber
public int minimumDigitNumberSpecifies the minimum number of digits that a password must have. -
minimumSpecialNumber
public int minimumSpecialNumberSpecifies the minimum number of special characters that a password must have. -
maximumRepeatingCharacters
public int maximumRepeatingCharactersSpecifies the maximum number of consecutive repeated characters that a password can have. -
maximumAlphabeticalSequence
public int maximumAlphabeticalSequenceSpecifies the maximum number of consecutive alphabetical sequences that a password can have. -
maximumNumericalSequence
public int maximumNumericalSequenceSpecifies the maximum number of consecutive numeric sequences that a password can have. -
maximumKeyboardSequence
public int maximumKeyboardSequenceSpecifies the maximum number of consecutive keyboard sequences that a password can have. -
rangeLowerBound
public int rangeLowerBoundSpecifies the lower bound of the number range that a password can have. -
rangeUpperBound
public int rangeUpperBoundSpecifies the upper bound of the number range that a password can have. -
passwordHistorySize
public int passwordHistorySizeSpecifies the the number of previous passwords that a user cannot reuse. -
prohibitSpaces
public boolean prohibitSpacesSpecifies whether a password can have spaces or not. -
prohibitUserCode
public boolean prohibitUserCodeSpecifies whether a password can contain the user code or not. -
prohibitUserSubstrings
public boolean prohibitUserSubstringsSpecifies whether a password can contain substrings (parts) of the user name or not. -
enabled
public boolean enabledSpecifies whether the password validator is enabled or not.
-
-
Constructor Details
-
StrongPasswordValidatorRules
public StrongPasswordValidatorRules()
-
-
Method Details
-
getMinimumLength
public int getMinimumLength() -
getMaximumLength
public int getMaximumLength() -
getMinimumUpperCaseNumber
public int getMinimumUpperCaseNumber() -
getMinimumLowerCaseNumber
public int getMinimumLowerCaseNumber() -
getMinimumDigitNumber
public int getMinimumDigitNumber() -
getMinimumSpecialNumber
public int getMinimumSpecialNumber() -
getMaximumRepeatingCharacters
public int getMaximumRepeatingCharacters() -
getMaximumAlphabeticalSequence
public int getMaximumAlphabeticalSequence() -
getMaximumNumericalSequence
public int getMaximumNumericalSequence() -
getMaximumKeyboardSequence
public int getMaximumKeyboardSequence() -
getRangeLowerBound
public int getRangeLowerBound() -
getRangeUpperBound
public int getRangeUpperBound() -
getPasswordHistorySize
public int getPasswordHistorySize() -
getProhibitedSubstrings
-
prohibit
public boolean prohibit() -
prohibit
-
prohibit
-
isProhibitSpaces
public boolean isProhibitSpaces() -
isProhibitUserCode
public boolean isProhibitUserCode() -
isProhibitUserSubstrings
public boolean isProhibitUserSubstrings() -
isEnabled
public boolean isEnabled()
-