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
 - 
generate
public 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 passworduppercaseChars- minimum number of upper case charslowercaseChars- minimum number of lower case charsdigits- minimum number of digitsspecialChars- minimum number of special charsmaxSequenceSize- maximum size of a sequencemaxOccurrences- maximum number of occurrences of the same char- Returns:
 - the generated password
 
 
 -