| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | TestRandomEntropySourceProvider(boolean
boolean indicating if the SecureRandom is based on prediction resistant entropy or not (true if it is). isPredictionResistant)Create a test entropy source provider. |
| Modifier and Type | Method and Description |
|---|---|
| public EntropySource | Returns: an EntropySource that generates bitsRequired bits of entropy on each call to its getEntropy() method.size (in bits) of entropy to be created by the provided source. bitsRequired)Implements org. Return an entropy source that will create bitsRequired bits of entropy on each invocation of getEntropy(). |
| _predictionResistant | back to summary |
|---|---|
| private final boolean _predictionResistant | |
| _sr | back to summary |
|---|---|
| private final SecureRandom _sr | |
| TestRandomEntropySourceProvider | back to summary |
|---|---|
| public TestRandomEntropySourceProvider(boolean isPredictionResistant) Create a test entropy source provider.
| |
| get | back to summary |
|---|---|
| public EntropySource get(final int bitsRequired) Implements org. Return an entropy source that will create bitsRequired bits of entropy on each invocation of getEntropy().
| |