Package org.glassfish.tyrus.core
Interface MaskingKeyGenerator
Can be implemented to generate masking keys.
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(); } };
- Author:
- Petr Janouch
-
Method Summary
Modifier and TypeMethodDescriptionint
nextInt()
Return next random int similarly toRandom.nextInt()
.
-
Method Details
-
nextInt
int nextInt()Return next random int similarly toRandom.nextInt()
.- Returns:
- next random value.
-