public static class X931PRNG.Base extends java.lang.Object implements Parameters
Modifier and Type | Method and Description |
---|---|
X931PRNG.Builder |
fromDefaultEntropy()
Return a builder using an EntropySourceProvider based on the default SecureRandom with
predictionResistant set to false.
|
X931PRNG.Builder |
fromEntropySource(EntropySourceProvider entropySourceProvider)
Return a builder which makes creates the SecureRandom objects from a specified entropy source provider.
|
X931PRNG.Builder |
fromEntropySource(java.security.SecureRandom entropySource,
boolean predictionResistant)
Return a builder with an EntropySourceProvider based on the passed in SecureRandom and the passed in value
for prediction resistance.
|
Algorithm |
getAlgorithm()
Return the algorithm these parameters are associated with.
|
public X931PRNG.Builder fromDefaultEntropy()
Any SecureRandom created from a builder constructed like this will make use of input passed to SecureRandom.setSeed() if the default SecureRandom does for its generateSeed() call.
public X931PRNG.Builder fromEntropySource(java.security.SecureRandom entropySource, boolean predictionResistant)
Any SecureRandom created from a builder constructed like this will make use of input passed to SecureRandom.setSeed() if the passed in SecureRandom does for its generateSeed() call.
entropySource
- a SecureRandom to use as a source of entropy for the PRNG.predictionResistant
- true if the SecureRandom should be regarded as prediction resistant, false otherwise.public X931PRNG.Builder fromEntropySource(EntropySourceProvider entropySourceProvider)
Note: If this constructor is used any calls to setSeed() in the resulting SecureRandom will be ignored.
entropySourceProvider
- a provider of EntropySource objects.public Algorithm getAlgorithm()
Parameters
getAlgorithm
in interface Parameters