Package org.opencms.security
Class CmsDefaultPasswordGenerator
java.lang.Object
org.opencms.security.CmsDefaultPasswordGenerator
- All Implemented Interfaces:
I_CmsPasswordGenerator
Default Password Generator class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns random password.getRandomPassword
(int countTotal, int countCapitals, int countSpecials) Generates a random password.static String
Get a random password.static String
getRandomPWD
(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_CmsPasswordGenerator
Returns random password.- Specified by:
getRandomPassword
in 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
-