|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.PwGen
public final class PwGen
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 String |
getPass(int length)
Get a random string at the given length using the NUMBER_UPPER set. |
static 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 |
|---|
public static final char[] NUMBER_UPPER
public static final char[] NUMBER_LOWER
public static final char[] NUMBER_UPPER_LOWER
| Constructor Detail |
|---|
public PwGen()
| Method Detail |
|---|
public static String getPass(int length)
public static String getPass(int length,
char[] charset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||