FileDocCategorySizeDatePackage
ParametersWithRandom.javaAPI DocAzureus 3.0.3.4868Tue Jun 08 05:13:00 BST 2004org.bouncycastle.crypto.params

ParametersWithRandom

public class ParametersWithRandom extends Object implements org.bouncycastle.crypto.CipherParameters

Fields Summary
private SecureRandom
random
private org.bouncycastle.crypto.CipherParameters
parameters
Constructors Summary
public ParametersWithRandom(org.bouncycastle.crypto.CipherParameters parameters, SecureRandom random)

        this.random = random;
        this.parameters = parameters;
    
public ParametersWithRandom(org.bouncycastle.crypto.CipherParameters parameters)

        this.random = null;
        this.parameters = parameters;
    
Methods Summary
public org.bouncycastle.crypto.CipherParametersgetParameters()

        return parameters;
    
public java.security.SecureRandomgetRandom()

        if (random == null)
        {
            random = new SecureRandom();
        }
        return random;