@Beta public interface MaskingKeyGenerator
The implementation must be thread safe.
Tyrus by default uses the following implementation:
new MaskingKeyGenerator() { private final SecureRandom secureRandom = new SecureRandom(); public int nextInt() { return secureRandom.nextInt(); } };
Modifier and Type | Method and Description |
---|---|
int |
nextInt()
Return next random int similarly to
Random.nextInt() . |
int nextInt()
Random.nextInt()
.Copyright © 2012–2019 Oracle Corporation. All rights reserved.