| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | BasicEntropySourceProvider(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. |
| _predictionResistant | back to summary |
|---|---|
| private final boolean _predictionResistant | |
| _sr | back to summary |
|---|---|
| private final SecureRandom _sr | |
| BasicEntropySourceProvider | back to summary |
|---|---|
| public BasicEntropySourceProvider(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().
| |