public enum PasswordGenerator extends Enum<PasswordGenerator> implements com.google.common.base.Supplier<String>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static char[] |
goodChar |
static int |
MIN_LENGTH
Minimum length for a decent password
|
protected static SecureRandom |
r
The random number generator.
|
Modifier and Type | Method and Description |
---|---|
String |
get() |
static PasswordGenerator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PasswordGenerator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordGenerator INSTANCE
public static final int MIN_LENGTH
protected static final SecureRandom r
public static final char[] goodChar
public static PasswordGenerator[] values()
for (PasswordGenerator c : PasswordGenerator.values()) System.out.println(c);
public static PasswordGenerator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2009-2012 jclouds. All Rights Reserved.