Package org.jeasy.random.randomizers
Class PasswordRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.FakerBasedRandomizer<String>
org.jeasy.random.randomizers.PasswordRandomizer
- All Implemented Interfaces:
Randomizer<String>
A
Randomizer that generates random passwords.- Author:
- https://github.com/JJ1216
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.FakerBasedRandomizer
fakerFields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newPasswordRandomizer.PasswordRandomizer(long seed) Create a newPasswordRandomizer.PasswordRandomizer(long seed, int min, int max) Create a newPasswordRandomizer.PasswordRandomizer(long seed, int min, int max, boolean includeUppercase) Create a newPasswordRandomizer.PasswordRandomizer(long seed, int min, int max, boolean includeUppercase, boolean includeSpecial) Create a newPasswordRandomizer.PasswordRandomizer(long seed, Locale locale) Create a newPasswordRandomizer. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
PasswordRandomizer
public PasswordRandomizer()Create a newPasswordRandomizer. -
PasswordRandomizer
public PasswordRandomizer(long seed) Create a newPasswordRandomizer.- Parameters:
seed- the initial seed
-
PasswordRandomizer
Create a newPasswordRandomizer.- Parameters:
seed- the initial seedlocale- the locale to use
-
PasswordRandomizer
public PasswordRandomizer(long seed, int min, int max) Create a newPasswordRandomizer.- Parameters:
seed- the initial seedmin- the minimum number of characters of passwordsmax- the maximum number of characters of passwords
-
PasswordRandomizer
public PasswordRandomizer(long seed, int min, int max, boolean includeUppercase) Create a newPasswordRandomizer.- Parameters:
seed- the initial seedmin- the minimum number of characters of passwordsmax- the maximum number of characters of passwordsincludeUppercase- true to generate passwords containing Uppercase Characters, false otherwise
-
PasswordRandomizer
public PasswordRandomizer(long seed, int min, int max, boolean includeUppercase, boolean includeSpecial) Create a newPasswordRandomizer.- Parameters:
seed- the initial seedmin- the minimum number of characters of passwordsmax- the maximum number of characters of passwordsincludeUppercase- true to generate passwords containing Uppercase Characters , false otherwiseincludeSpecial- true to generate passwords containing Special Characters, false otherwise
-
-
Method Details
-
getRandomValue
-