public class SecretGenerator extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
ALPHANUM |
static int |
DEFAULT_LENGTH |
static char[] |
DIGITS |
static char[] |
UPPER |
Modifier and Type | Method and Description |
---|---|
static SecretGenerator |
getInstance() |
byte[] |
randomBytes() |
byte[] |
randomBytes(int length) |
String |
randomString() |
String |
randomString(int length) |
String |
randomString(int length,
char[] symbols) |
public static final int DEFAULT_LENGTH
public static final char[] UPPER
public static final char[] DIGITS
public static final char[] ALPHANUM
public static SecretGenerator getInstance()
public String randomString()
public String randomString(int length)
public String randomString(int length, char[] symbols)
public byte[] randomBytes()
public byte[] randomBytes(int length)
Copyright © 2025 JBoss by Red Hat. All rights reserved.