org.bouncycastle.crypto.params

## Class ParametersWithRandom

- java.lang.Object
- - org.bouncycastle.crypto.params.ParametersWithRandom

- All Implemented Interfaces:
    CipherParameters

      public class ParametersWithRandom
      extends Object
      implements CipherParameters

  Cipher parameters with associated random number generator. Wraps cipher parameters with a secure random source for cryptographic operations.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ParametersWithRandom(CipherParameters parameters)`
    `ParametersWithRandom(CipherParameters parameters, SecureRandom random)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CipherParameters` | `getParameters()`
    `SecureRandom` | `getRandom()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ParametersWithRandom

          public ParametersWithRandom(CipherParameters parameters)

    - #### ParametersWithRandom

          public ParametersWithRandom(CipherParameters parameters,
                                      SecureRandom random)

  - ### Method Detail

    - #### getParameters

          public CipherParameters getParameters()

    - #### getRandom

          public SecureRandom getRandom()