Difference between revisions of "Create password validator"
From OpenKM Documentation
(Created page with 'You can create your own password validation in OpenKM. By default OpenKM has password validation disabled and there's used the '''NoPasswordValidator''' class. Also there's some …') |
(No difference)
|
Revision as of 16:18, 17 May 2010
You can create your own password validation in OpenKM. By default OpenKM has password validation disabled and there's used the NoPasswordValidator class. Also there's some default OpenKM password validation class called CompletePasswordValidator class.
Enabling CompletePasswordValidator class can configure minimum and maximum password length, number of lowercase and uppercase characters, number of numeric characters and number of special characters that appearing in password. You can see more information at Application_configuration
You can also create your own password class that must implements the PasswordValidator interface:
public interface PasswordValidator {
/**
* Validate
*
* @param password
* @throws ValidatorException
*/
public void Validate(String password) throws ValidatorException;
}