Package com.logicaldoc.util.security
Class PasswordGenerator
java.lang.Object
com.logicaldoc.util.security.PasswordGenerator
A password generator utility
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Method Summary
- 
Method Details- 
main
- 
shuffleString
- 
generatepublic static String generate(int minLength, int uppercaseChars, int lowercaseChars, int digits, int specialChars, int maxSequenceSize, int maxOccurrences) Generates a new password- Parameters:
- minLength- minimum dimension of the password
- uppercaseChars- minimum number of upper case chars
- lowercaseChars- minimum number of lower case chars
- digits- minimum number of digits
- specialChars- minimum number of special chars
- maxSequenceSize- maximum size of a sequence
- maxOccurrences- maximum number of occurrences of the same char
- Returns:
- the generated password
 
 
-