Package org.keycloak.common.util
Class SecretGenerator
java.lang.Object
org.keycloak.common.util.SecretGenerator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final char[]
static final char[]
static final int
static final int
static final int
static final char[]
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecretGenerator
byte[]
byte[]
randomBytes
(int length) randomString
(int length) randomString
(int length, char[] symbols)
-
Field Details
-
SECRET_LENGTH_256_BITS
public static final int SECRET_LENGTH_256_BITS- See Also:
-
SECRET_LENGTH_384_BITS
public static final int SECRET_LENGTH_384_BITS- See Also:
-
SECRET_LENGTH_512_BITS
public static final int SECRET_LENGTH_512_BITS- See Also:
-
UPPER
public static final char[] UPPER -
DIGITS
public static final char[] DIGITS -
ALPHANUM
public static final char[] ALPHANUM
-
-
Method Details
-
getInstance
-
randomString
-
randomString
-
randomString
-
randomBytes
public byte[] randomBytes() -
randomBytes
public byte[] randomBytes(int length)
-