Package org.cyclos.server.utils
Class SecureRandomHelper
- java.lang.Object
-
- org.cyclos.server.utils.SecureRandomHelper
-
public class SecureRandomHelper extends Object
Generates random data using aSecureRandom
-
-
Constructor Summary
Constructors Constructor Description SecureRandomHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringrandom(int size, String chars)Returns a random string with a given size, composed of any of the given charactersstatic StringrandomAlphabetic(int size)Returns a random string composed of either lower or uppercase lettersstatic StringrandomAlphanumeric(int size)Returns a random string composed of either lower or uppercase letters or numbersstatic StringrandomNumeric(int size)Returns a random string composed of numbersstatic StringrandomUppercase(int size)Returns a random string composed of uppercase letters
-
-
-
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
-
-