Interface ResetPasswordFormValidator<P extends PasswordToken>
-
- All Known Implementing Classes:
DefaultResetPasswordFormValidator
public interface ResetPasswordFormValidator<P extends PasswordToken>
Interface for validation of aResetPasswordForm
. This is generally a form submitted by a user from a UI.- Author:
- Nathan Moore (nathanmoore).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validate(List<P> tokens, ResetPasswordForm resetPasswordForm, org.springframework.validation.Errors errors)
Validates a password reset form.
-
-
-
Method Detail
-
validate
void validate(List<P> tokens, ResetPasswordForm resetPasswordForm, org.springframework.validation.Errors errors)
Validates a password reset form. When resetting a password, this is where validation of password requirements should be performed.- Parameters:
tokens
- A list of password tokens belonging to a user.resetPasswordForm
- The reset password formerrors
- An errors object to populate if validation fails.- See Also:
PasswordToken.getUserId()
-
-