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