public class TestRandomEntropySourceProvider extends java.lang.Object implements EntropySourceProvider
| Constructor and Description |
|---|
TestRandomEntropySourceProvider(boolean isPredictionResistant)
Create a test entropy source provider.
|
| Modifier and Type | Method and Description |
|---|---|
EntropySource |
get(int bitsRequired)
Return an entropy source that will create bitsRequired bits of entropy on
each invocation of getEntropy().
|
public TestRandomEntropySourceProvider(boolean isPredictionResistant)
isPredictionResistant - boolean indicating if the SecureRandom is based on prediction resistant entropy or not (true if it is).public EntropySource get(int bitsRequired)
get in interface EntropySourceProviderbitsRequired - size (in bits) of entropy to be created by the provided source.