Class BasicPasswordGenerator

java.lang.Object
org.alfresco.repo.security.authentication.BasicPasswordGenerator
All Implemented Interfaces:
PasswordGenerator

public class BasicPasswordGenerator extends Object implements PasswordGenerator
Generates a password of specified length consisting of printable ASCII characters
Author:
glen johnson at Alfresco dot com
  • Constructor Details

    • BasicPasswordGenerator

      public BasicPasswordGenerator()
  • Method Details

    • setPasswordLength

      public void setPasswordLength(int passwordLength)
      Set the password length
      Parameters:
      passwordLength - the password length
    • generatePassword

      public String generatePassword()
      Returns a generated password
      Specified by:
      generatePassword in interface PasswordGenerator
      Returns:
      generated password
    • main

      public static void main(String... args)