net.spy.util
Class PwGen

java.lang.Object
  extended by net.spy.util.PwGen

public class PwGen
extends java.lang.Object

Password generator.


Field Summary
static char[] NUMBER_LOWER
          Character set containing numeric and lowercase characters.
static char[] NUMBER_UPPER
          Character set containing numeric and uppercase letters.
static char[] NUMBER_UPPER_LOWER
          Character set containing numeric, upper, and lowercase letters.
 
Constructor Summary
PwGen()
           
 
Method Summary
static java.lang.String getPass(int length)
          Get a random string at the given length using the NUMBER_UPPER set.
static java.lang.String getPass(int length, char[] charset)
          Get a random string with the given length and character set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMBER_UPPER

public static final char[] NUMBER_UPPER
Character set containing numeric and uppercase letters.


NUMBER_LOWER

public static final char[] NUMBER_LOWER
Character set containing numeric and lowercase characters.


NUMBER_UPPER_LOWER

public static final char[] NUMBER_UPPER_LOWER
Character set containing numeric, upper, and lowercase letters.

Constructor Detail

PwGen

public PwGen()
Method Detail

getPass

public static java.lang.String getPass(int length)
Get a random string at the given length using the NUMBER_UPPER set.


getPass

public static java.lang.String getPass(int length,
                                       char[] charset)
Get a random string with the given length and character set.



Copyright © 1995-2006 SPY Internetworking. All Rights Reserved.