Class BasicPasswordGenerator
java.lang.Object
org.alfresco.repo.security.authentication.BasicPasswordGenerator
- All Implemented Interfaces:
PasswordGenerator
Generates a password of specified length consisting of printable ASCII characters
- Author:
- glen johnson at Alfresco dot com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a generated passwordstatic voidvoidsetPasswordLength(int passwordLength) Set the password length
-
Constructor Details
-
BasicPasswordGenerator
public BasicPasswordGenerator()
-
-
Method Details
-
setPasswordLength
public void setPasswordLength(int passwordLength) Set the password length- Parameters:
passwordLength- the password length
-
generatePassword
Returns a generated password- Specified by:
generatePasswordin interfacePasswordGenerator- Returns:
- generated password
-
main
-