Package com.jalios.util
Class PasswordGenerator
java.lang.Object
com.jalios.util.PasswordGenerator
This class contains static methods to generate different kinds of password.
- Since:
- jcms-4.0
- Author:
- Olivier Dedieu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateBasicPassword(int length) Generates a basic password (consonnants / voyels)static StringgeneratePronounceablePassword(int length) Generates pronounceable passwords of specified length.static StringgenerateRandomPassword(int length) Generates a pure random passwordstatic void
-
Constructor Details
-
PasswordGenerator
public PasswordGenerator()
-
-
Method Details
-
main
-
generateBasicPassword
Generates a basic password (consonnants / voyels)- Parameters:
length- the length of the password to be generated- Returns:
- the generated password
- Since:
- jcms-4.0
-
generateRandomPassword
Generates a pure random password- Parameters:
length- the length of the password to be generated- Returns:
- the generated password
- Since:
- jcms-4.0
-
generatePronounceablePassword
Generates pronounceable passwords of specified length. See www.multicians.org/thvv/gpw.html for history and info. Tom Van Vleck- Parameters:
length- the length of the password to be generated- Returns:
- the generated password
- Since:
- jcms-4.0
-