public interface RandomStringGenerator
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LENGTH
The default length.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm() |
int |
getDefaultLength() |
java.lang.String |
getNewString() |
java.lang.String |
getNewString(int size) |
byte[] |
getNewStringAsBytes()
Gets the new string as bytes.
|
byte[] |
getNewStringAsBytes(int size)
Gets the new string as bytes.
|
static final int DEFAULT_LENGTH
int getDefaultLength()
java.lang.String getAlgorithm()
java.lang.String getNewString(int size)
size
- length of random string before encodingjava.lang.String getNewString()
byte[] getNewStringAsBytes()
byte[] getNewStringAsBytes(int size)
size
- the size of return