org.alfresco.repo.security.authentication
Class BasicPasswordGenerator

java.lang.Object
  extended by 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


Constructor Summary
BasicPasswordGenerator()
           
 
Method Summary
 java.lang.String generatePassword()
          Returns a generated password
static void main(java.lang.String[] args)
           
 void setPasswordLength(int passwordLength)
          Set the password length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPasswordGenerator

public BasicPasswordGenerator()
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:
generatePassword in interface PasswordGenerator
Returns:
generated password

main

public static void main(java.lang.String[] args)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.