Class RandomizerImpl

    • Constructor Detail

      • RandomizerImpl

        public RandomizerImpl()
    • Method Detail

      • randomAlphanumericString

        public String randomAlphanumericString​(int length)
        Description copied from interface: Randomizer
        Generates and returns a random alphanumeric string of the specified length.
        Specified by:
        randomAlphanumericString in interface Randomizer
        Parameters:
        length - length of the random string (in chars)
        Returns:
        random alphanumeric string of the specified length
      • randomUrlSafeString

        public String randomUrlSafeString​(int length)
        Description copied from interface: Randomizer
        Generates a URL-safe random string with the given length
        The resulting string will contain ASCII characters [0-9], [A-Z], and [a-z], as well as the URL-safe characters '-' and '_', and can be safely used anywhere in the URL, including as query parameters
        Specified by:
        randomUrlSafeString in interface Randomizer
        Parameters:
        length - length of the random string (in chars)
        Returns:
        random URL-safe string of the specified length