Class SecureRandomHelper


  • public class SecureRandomHelper
    extends Object
    Generates random data using a SecureRandom
    • Constructor Detail

      • SecureRandomHelper

        public SecureRandomHelper()
    • Method Detail

      • random

        public static String random​(int size,
                                    String chars)
        Returns a random string with a given size, composed of any of the given characters
      • randomAlphabetic

        public static String randomAlphabetic​(int size)
        Returns a random string composed of either lower or uppercase letters
      • randomAlphanumeric

        public static String randomAlphanumeric​(int size)
        Returns a random string composed of either lower or uppercase letters or numbers
      • randomNumeric

        public static String randomNumeric​(int size)
        Returns a random string composed of numbers
      • randomUppercase

        public static String randomUppercase​(int size)
        Returns a random string composed of uppercase letters