@ConfigurationProperties(value="broadleaf.auth.password.validator") public class DefaultPasswordRequestValidator extends Object implements PasswordRequestValidator
Constructor and Description |
---|
DefaultPasswordRequestValidator(PasswordValidatorProperties props) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesPasswordConfirmationMatch(String password,
String pwdConfirm)
Ensures that both the passwords match, excluding 'null' matches.
|
protected boolean |
hasDigit(String password) |
protected boolean |
hasLowercase(String password) |
protected boolean |
hasNoWhitespaces(String password) |
protected boolean |
hasSpecialChar(String password) |
protected boolean |
hasUppercase(String password) |
protected boolean |
isTooLong(String password) |
protected boolean |
isTooShort(String password) |
protected boolean |
matchesCustomRegex(String password) |
PasswordValidation |
validate(String password)
Validates the password
|
public DefaultPasswordRequestValidator(PasswordValidatorProperties props)
@NonNull public PasswordValidation validate(@Nullable String password)
PasswordRequestValidator
validate
in interface PasswordRequestValidator
public boolean doesPasswordConfirmationMatch(@Nullable String password, @Nullable String pwdConfirm)
PasswordRequestValidator
doesPasswordConfirmationMatch
in interface PasswordRequestValidator
password
- what the user typed in as the passwordpwdConfirm
- confirmation dialogue that the user gaveprotected boolean isTooShort(@Nullable String password)
protected boolean isTooLong(@Nullable String password)
protected boolean hasUppercase(@Nullable String password)
protected boolean hasLowercase(@Nullable String password)
protected boolean hasNoWhitespaces(@Nullable String password)
protected boolean hasSpecialChar(@Nullable String password)
protected boolean hasDigit(@Nullable String password)
protected boolean matchesCustomRegex(@Nullable String password)
Copyright © 2021. All rights reserved.