PasswordValidator¶
-
public interface
PasswordValidator
¶ Service interface that validates password
Methods¶
getName¶
getValidationError¶
-
String
getValidationError
(Locale locale)¶ Returns the error message for the validator. Should explain what is expected of the password. The message should be treated as a literal, meaning localization is left to the validator implementation.
Parameters: - locale – the locale for which the error message should be returned
Returns: the localized error message
validate¶
-
void
validate
(String password)¶ Validates password.
Parameters: - password – the password to check.
Throws: - org.motechproject.security.exception.PasswordValidatorException – signals an issue with the validation