Package com.logicaldoc.util.security
Class PasswordValidator
java.lang.Object
com.logicaldoc.util.security.PasswordValidator
An utility class to validate the passwords
- Since:
- 8.8.2
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
ConstructorDescriptionPasswordValidator
(PasswordCriteria criteria, Properties messages) Constructor -
Method Summary
-
Constructor Details
-
PasswordValidator
Constructor- Parameters:
criteria
- minimum size of the passwordmessages
- optional map with error codes and messages
-
-
Method Details
-
validate
Validates a password- Parameters:
password
- the password to check- Returns:
- the list of error messages or empty in case of valid password
-