com.jalios.util
Class PasswordGenerator

java.lang.Object
  extended by com.jalios.util.PasswordGenerator

public class PasswordGenerator
extends Object

This class contains static methods to generate different kinds of password.

Since:
jcms-4.0
Version:
$Revision: 27751 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
PasswordGenerator()
           
 
Method Summary
static String generateBasicPassword(int length)
          Generates a basic password (consonnants / voyels)
static String generatePronounceablePassword(int length)
          Generates pronounceable passwords of specified length.
static String generateRandomPassword(int length)
          Generates a pure random password
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

PasswordGenerator

public PasswordGenerator()
Method Detail

main

public static void main(String[] args)

generateBasicPassword

public static String generateBasicPassword(int length)
Generates a basic password (consonnants / voyels)

Parameters:
length - the length of the password to be generated
Returns:
the generated password
Since:
jcms-4.0

generateRandomPassword

public static String generateRandomPassword(int length)
Generates a pure random password

Parameters:
length - the length of the password to be generated
Returns:
the generated password
Since:
jcms-4.0

generatePronounceablePassword

public static String generatePronounceablePassword(int length)
Generates pronounceable passwords of specified length. See www.multicians.org/thvv/gpw.html for history and info. Tom Van Vleck

Parameters:
length - the length of the password to be generated
Returns:
the generated password
Since:
jcms-4.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.