Package edu.suffolk.litlab.efspserver
Class RandomString
java.lang.Object
edu.suffolk.litlab.efspserver.RandomString
Copied from https://stackoverflow.com/a/41156. There's a good write up on the usage there.
- Author:
- erickson
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate session identifiers.RandomString
(int length) Create an alphanumeric strings from a secure generator.RandomString
(int length, Random random) Create an alphanumeric string generator.RandomString
(int length, Random random, String symbols) -
Method Summary
-
Field Details
-
upper
- See Also:
-
lower
-
digits
- See Also:
-
alphanum
-
-
Constructor Details
-
RandomString
-
RandomString
Create an alphanumeric string generator. -
RandomString
public RandomString(int length) Create an alphanumeric strings from a secure generator. -
RandomString
public RandomString()Create session identifiers.
-
-
Method Details
-
nextString
Generate a random string.
-