public class RandomString extends Object
Modifier and Type | Field and Description |
---|---|
static String |
alphanum |
static String |
digits |
static String |
lower |
static String |
upper |
Constructor and Description |
---|
RandomString()
Create 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) |
Modifier and Type | Method and Description |
---|---|
String |
nextString()
Generate a random string.
|
static String |
randomCode(int length) |
public static final String upper
public static final String lower
public static final String digits
public static final String alphanum
public RandomString(int length, Random random)
public RandomString(int length)
public RandomString()
Copyright © 2019 JBoss by Red Hat. All rights reserved.