public final class Randoms extends Object
| Modifier and Type | Method and Description |
|---|---|
static SecureRandom |
secureRandom()
Returns JJWT's default SecureRandom number generator - a static singleton which may be cached if desired.
|
public static SecureRandom secureRandom()
static {
DEFAULT_SECURE_RANDOM = new SecureRandom();
DEFAULT_SECURE_RANDOM.nextBytes(new byte[64]);
}
nextBytes is called to force the RNG to initialize itself if not already initialized. The
byte array is not used and discarded immediately for garbage collection.
Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.