Skip to main content

PasswordRules

public class PasswordRules

  • Model class to represent the password rules(attributes).

Field Summary​

Parameters
IntallowInRowMinimum consecutive chars allowed in a row.
BoolallowInRowEnabledMaximum no of same characters allowed in a row.
IntminMinimum password length.
IntminAlphaCapsMinimum number of alpha-caps allowed.
BoolminAlphaCapsEnabledIf minimum alpha-caps check is enabled..
BoolminEnabledIf minimum characters check is enabled.
IntminNumbersMinimum number allowed.
BoolminNumbersEnabledIf minimum numbers check is enabled.
IntminSpecialMinimum special characters allowed
BoolminSpecialEnabledIf minimum special characters check is enabled.
BoolnoUsernameif username must not be used/ allowed in password.
BoolnoUsernameEnabledif no user name is enabled.
StringspecialCharsAllowedWhat special chars are allowed
BoolspecialCharAllowedEnabledif special characters are allowed.