Class BasicPasswordGenerator
- java.lang.Object
-
- org.alfresco.repo.security.authentication.BasicPasswordGenerator
-
- All Implemented Interfaces:
PasswordGenerator
public class BasicPasswordGenerator extends java.lang.Object implements PasswordGenerator
Generates a password of specified length consisting of printable ASCII characters- Author:
- glen johnson at Alfresco dot com
-
-
Constructor Summary
Constructors Constructor Description BasicPasswordGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgeneratePassword()Returns a generated passwordstatic voidmain(java.lang.String... args)voidsetPasswordLength(int passwordLength)Set the password length
-
-
-
Method Detail
-
setPasswordLength
public void setPasswordLength(int passwordLength)
Set the password length- Parameters:
passwordLength- the password length
-
generatePassword
public java.lang.String generatePassword()
Returns a generated password- Specified by:
generatePasswordin interfacePasswordGenerator- Returns:
- generated password
-
main
public static void main(java.lang.String... args)
-
-