Top Description Methods
org.glassfish.tyrus.core

public Interface MaskingKeyGenerator

Annotations
@Beta

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 TypeMethod and Description
public int

Returns:

next random value.
nextInt
()

Return next random int similarly to java.util.Random#nextInt().

Method Detail

nextIntback to summary
public int nextInt()

Return next random int similarly to java.util.Random#nextInt().

Returns:int

next random value.