FileDocCategorySizeDatePackage
KeyGenerationParameters.javaAPI DocAzureus 3.0.3.41103Tue Jun 08 05:12:58 BST 2004org.bouncycastle.crypto

KeyGenerationParameters

public class KeyGenerationParameters extends Object
The base class for parameters to key generators.

Fields Summary
private SecureRandom
random
private int
strength
Constructors Summary
public KeyGenerationParameters(SecureRandom random, int strength)
initialise the generator with a source of randomness and a strength (in bits).

param
random the random byte source.
param
strength the size, in bits, of the keys we want to produce.

        this.random = random;
        this.strength = strength;
    
Methods Summary
public java.security.SecureRandomgetRandom()
return the random source associated with this generator.

return
the generators random source.

        return random;
    
public intgetStrength()
return the bit strength for keys produced by this generator,

return
the strength of the keys this generator produces (in bits).

        return strength;