KeyGenerationParameterspublic 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).
this.random = random;
this.strength = strength;
|
Methods Summary |
---|
public java.security.SecureRandom | getRandom()return the random source associated with this
generator.
return random;
| public int | getStrength()return the bit strength for keys produced by this generator,
return strength;
|
|