Package org.jeasy.random.randomizers
Class PasswordRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<T>
-
- org.jeasy.random.randomizers.FakerBasedRandomizer<java.lang.String>
-
- org.jeasy.random.randomizers.PasswordRandomizer
-
- All Implemented Interfaces:
org.jeasy.random.api.Randomizer<java.lang.String>
public class PasswordRandomizer extends FakerBasedRandomizer<java.lang.String>
ARandomizerthat generates random passwords.- Author:
- https://github.com/JJ1216
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.FakerBasedRandomizer
faker
-
-
Constructor Summary
Constructors Constructor Description PasswordRandomizer()Create 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, java.util.Locale locale)Create a newPasswordRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRandomValue()
-
-
-
Constructor Detail
-
PasswordRandomizer
public PasswordRandomizer()
Create a newPasswordRandomizer.
-
PasswordRandomizer
public PasswordRandomizer(long seed)
Create a newPasswordRandomizer.- Parameters:
seed- the initial seed
-
PasswordRandomizer
public PasswordRandomizer(long seed, java.util.Locale locale)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
-
-