Interface RandomStringGenerator

    • Method Detail

      • getDefaultLength

        long getDefaultLength()
        Default length to use.
        Returns:
        the default length as an int.
      • getAlgorithm

        java.lang.String getAlgorithm()
        The algorithm used by the generator's SecureRandom instance.
        Returns:
        the algorithm used by the generator's SecureRandom instance.
      • getNewString

        java.lang.String getNewString​(int size)
        A new random string of specified initial size.
        Parameters:
        size - length of random string before encoding
        Returns:
        a new random string of specified initial size
      • getNewString

        java.lang.String getNewString()
        A new random string of specified default size.
        Returns:
        a new random string of default initial size
      • getNewStringAsBytes

        byte[] getNewStringAsBytes​(int size)
        Gets the new string as bytes.
        Parameters:
        size - the size of return
        Returns:
        the new random string as bytes