public class BasicEntropySourceProvider extends Object implements EntropySourceProvider
| Constructor and Description |
|---|
BasicEntropySourceProvider(SecureRandom random,
boolean isPredictionResistant)
Create a entropy source provider based on the passed in SecureRandom.
|
| 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 BasicEntropySourceProvider(SecureRandom random, boolean isPredictionResistant)
random - the SecureRandom to base EntropySource construction on.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.Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.