Package x.oauth
Class RandomGenerator
java.lang.Object
x.oauth.RandomGenerator
Utility class that generates random strings.
- Author:
- sakdsitt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateCharsSymbolsString(int lenght) Generates random string that contains chars (a-z, A-Z) and some symbols(_,-,#,=).static StringgenerateDigitsString(int length) Generates random string that contains digits only.static StringGenerates random string.static StringGenerates short random string.
-
Constructor Details
-
RandomGenerator
public RandomGenerator()
-
-
Method Details
-
generateCharsSymbolsString
Generates random string that contains chars (a-z, A-Z) and some symbols(_,-,#,=).- Parameters:
lenght- the length of the generated string- Returns:
- random string
-
generateRandomString
Generates random string.- Returns:
- random string
-
generateShortRandomString
Generates short random string.- Returns:
- random string
-
generateDigitsString
Generates random string that contains digits only.- Parameters:
length- the length of the generated string- Returns:
- random string
-