public class Generator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Generator.CharacterTypes
Character types to use for password generation.
|
| Constructor and Description |
|---|
Generator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generatePassphrase(String delimiter,
int words)
Generates a passphrase from the eff_large standard dictionary with the requested word count.
|
static String |
generatePassphrase(String delimiter,
int words,
Dictionary dictionary)
Generates a passphrase from the supplied dictionary with the requested word count.
|
static String |
generateRandomPassword(Generator.CharacterTypes characterTypes,
int length)
Generates a random password of the specified length with the specified characters.
|
public static String generatePassphrase(String delimiter, int words)
delimiter - delimiter to place between wordswords - the count of words you want in your passphrasepublic static String generatePassphrase(String delimiter, int words, Dictionary dictionary)
delimiter - delimiter to place between wordswords - the count of words you want in your passphrasedictionary - the dictionary to use for generating this passphrasepublic static String generateRandomPassword(Generator.CharacterTypes characterTypes, int length)
characterTypes - the types of characters to include in the passwordlength - the length of the passwordCopyright © 2017. All rights reserved.