Generate secure random strings.
More...
|
static final String | lettersSpecial = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890+-$%&/()=?@" |
|
static final String | letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" |
|
static final SecureRandom | random = new SecureRandom() |
|
Generate secure random strings.
Definition at line 9 of file RandomString.java.
static String org.openslx.imagemaster.util.RandomString.generate |
( |
int |
length, |
|
|
boolean |
specialChars |
|
) |
| |
|
static |
Generate a random string.
- Parameters
-
length | the length of the string |
specialChars | whether to use special charachters or not |
- Returns
- the generated string
Definition at line 22 of file RandomString.java.
static byte [] org.openslx.imagemaster.util.RandomString.generateBinary |
( |
int |
length | ) |
|
|
static |
Generate random binary data.
- Parameters
-
length | number of bytes to generate |
- Returns
- the generated binary data, as byte array
Definition at line 39 of file RandomString.java.
final String org.openslx.imagemaster.util.RandomString.letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" |
|
staticprivate |
final String org.openslx.imagemaster.util.RandomString.lettersSpecial = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890+-$%&/()=?@" |
|
staticprivate |
final SecureRandom org.openslx.imagemaster.util.RandomString.random = new SecureRandom() |
|
staticprivate |
The documentation for this class was generated from the following file: