@Component(value="blChangePasswordValidator") public class ChangePasswordValidator extends Object implements org.springframework.validation.Validator
| Modifier and Type | Field and Description |
|---|---|
protected CustomerService |
customerService |
protected Boolean |
enableCurrentPasswordCheck |
| Constructor and Description |
|---|
ChangePasswordValidator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getValidPasswordRegex() |
boolean |
supports(Class<?> clazz) |
void |
validate(Object target,
org.springframework.validation.Errors errors) |
void |
validate(PasswordChange passwordChange,
org.springframework.validation.Errors errors) |
protected CustomerService customerService
@Value(value="${enable.current.password.check:true}")
protected Boolean enableCurrentPasswordCheck
public void validate(PasswordChange passwordChange, org.springframework.validation.Errors errors)
public static String getValidPasswordRegex()
public boolean supports(Class<?> clazz)
supports in interface org.springframework.validation.Validatorpublic void validate(Object target, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.ValidatorCopyright © 2023. All rights reserved.