Package org.opencms.security
Class CmsDefaultPasswordGenerator
java.lang.Object
org.opencms.security.CmsDefaultPasswordGenerator
- All Implemented Interfaces:
I_CmsPasswordGenerator
Default Password Generator class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns random password.getRandomPassword(int countTotal, int countCapitals, int countSpecials) Generates a random password.static StringGet a random password.static StringgetRandomPWD(int countTotal, int countCapitals, int countSpecials) Get a random password.
-
Constructor Details
-
CmsDefaultPasswordGenerator
public CmsDefaultPasswordGenerator()
-
-
Method Details
-
getRandomPWD
Get a random password.- Returns:
- random password
-
getRandomPWD
Get a random password.- Parameters:
countTotal- Desired password lengthcountCapitals- minimal count of Capital letterscountSpecials- count of special chars- Returns:
- random password
-
getRandomPassword
Description copied from interface:I_CmsPasswordGeneratorReturns random password.- Specified by:
getRandomPasswordin interfaceI_CmsPasswordGenerator- Returns:
- See Also:
-
getRandomPassword
Generates a random password.- Parameters:
countTotal- Total password lengthcountCapitals- Minimal count of capitalscountSpecials- count of special chars- Returns:
- random password
-