| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | IncrementalEntropySourceProvider(SecureRandom
the SecureRandom to base EntropySource construction on. random, boolean boolean indicating if the SecureRandom is based on prediction resistant entropy or not (true if it is). isPredictionResistant)Create a entropy source provider based on the passed in SecureRandom. |
| 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. |
| private static void |
| predictionResistant | back to summary |
|---|---|
| private final boolean predictionResistant | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| IncrementalEntropySourceProvider | back to summary |
|---|---|
| public IncrementalEntropySourceProvider(SecureRandom random, boolean isPredictionResistant) Create a entropy source provider based on the passed in SecureRandom.
| |
| 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().
| |
| sleep | back to summary |
|---|---|
| private static void sleep(long ms) throws InterruptedException | |