public class CleartextPassword extends Object implements Serializable
| Constructor and Description |
|---|
CleartextPassword(String c) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCleartext() |
int |
hashCode() |
static CleartextPassword |
newRandom()
Generates a new password of a reasonable length; see
newRandom(int) |
static CleartextPassword |
newRandom(int length)
Generates a random password.
|
String |
toString() |
@Nonnull public static CleartextPassword newRandom(int length)
A-Z, a-z, 0-9 characters are used, with the exception confusing characters such as uppercase O and digit 0 are not used.
The objective is that:
Make up for "lack of randomness" by making the password longer.
@Nonnull public static CleartextPassword newRandom()
newRandom(int)Copyright © 2003–2018. All rights reserved.