Class PasswordRandomizer

  • All Implemented Interfaces:
    org.jeasy.random.api.Randomizer<java.lang.String>

    public class PasswordRandomizer
    extends FakerBasedRandomizer<java.lang.String>
    A Randomizer that generates random passwords.
    Author:
    https://github.com/JJ1216
    • Constructor Detail

      • PasswordRandomizer

        public PasswordRandomizer​(long seed)
        Create a new PasswordRandomizer.
        Parameters:
        seed - the initial seed
      • PasswordRandomizer

        public PasswordRandomizer​(long seed,
                                  java.util.Locale locale)
        Create a new PasswordRandomizer.
        Parameters:
        seed - the initial seed
        locale - the locale to use
      • PasswordRandomizer

        public PasswordRandomizer​(long seed,
                                  int min,
                                  int max)
        Create a new PasswordRandomizer.
        Parameters:
        seed - the initial seed
        min - the minimum number of characters of passwords
        max - the maximum number of characters of passwords
      • PasswordRandomizer

        public PasswordRandomizer​(long seed,
                                  int min,
                                  int max,
                                  boolean includeUppercase)
        Create a new PasswordRandomizer.
        Parameters:
        seed - the initial seed
        min - the minimum number of characters of passwords
        max - the maximum number of characters of passwords
        includeUppercase - true to generate passwords containing Uppercase Characters, false otherwise
      • PasswordRandomizer

        public PasswordRandomizer​(long seed,
                                  int min,
                                  int max,
                                  boolean includeUppercase,
                                  boolean includeSpecial)
        Create a new PasswordRandomizer.
        Parameters:
        seed - the initial seed
        min - the minimum number of characters of passwords
        max - the maximum number of characters of passwords
        includeUppercase - true to generate passwords containing Uppercase Characters , false otherwise
        includeSpecial - true to generate passwords containing Special Characters, false otherwise
    • Method Detail

      • getRandomValue

        public java.lang.String getRandomValue()