| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private EntropySourceProvider | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | X931SecureRandomBuilder()
Basic constructor, creates a builder using an EntropySourceProvider based on the default SecureRandom with predictionResistant set to false. |
| public | X931SecureRandomBuilder(SecureRandom entropySource, boolean predictionResistant)
Construct a builder with an EntropySourceProvider based on the passed in SecureRandom and the passed in value for prediction resistance. |
| public | X931SecureRandomBuilder(EntropySourceProvider
a provider of EntropySource objects. entropySourceProvider)Create a builder which makes creates the SecureRandom objects from a specified entropy source provider. |
| Modifier and Type | Method and Description |
|---|---|
| public X931SecureRandom | Returns: a SecureRandom.a block cipher to use as the operator. engine, KeyParameter the block cipher key to initialise engine with. key, boolean true if engine to be reseeded on each use, false otherwise. predictionResistant)Construct a X9.31 secure random generator using the passed in engine and key. |
| public X931SecureRandomBuilder |
| dateTimeVector | back to summary |
|---|---|
| private byte[] dateTimeVector | |
| entropySourceProvider | back to summary |
|---|---|
| private EntropySourceProvider entropySourceProvider | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| X931SecureRandomBuilder | back to summary |
|---|---|
| public X931SecureRandomBuilder() Basic constructor, creates a builder using an EntropySourceProvider based on the default SecureRandom with predictionResistant set to false. 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. | |
| X931SecureRandomBuilder | back to summary |
|---|---|
| public X931SecureRandomBuilder(SecureRandom entropySource, boolean predictionResistant) Construct a builder with an EntropySourceProvider based on the passed in SecureRandom and the passed in value for prediction resistance. 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. | |
| X931SecureRandomBuilder | back to summary |
|---|---|
| public X931SecureRandomBuilder(EntropySourceProvider entropySourceProvider) Create a builder which makes creates the SecureRandom objects from a specified entropy source provider. Note If this constructor is used any calls to setSeed() in the resulting SecureRandom will be ignored.
| |
| build | back to summary |
|---|---|
| public X931SecureRandom build(BlockCipher engine, KeyParameter key, boolean predictionResistant) Construct a X9.31 secure random generator using the passed in engine and key. If predictionResistant is true the generator will be reseeded on each request.
| |
| setDateTimeVector | back to summary |
|---|---|
| public X931SecureRandomBuilder setDateTimeVector(byte[] dateTimeVector) | |