Create password validator

From OpenKM Documentation
Revision as of 17:21, 17 May 2010 by Jllort (talk | contribs)

Jump to: navigation, search

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;
	
}