public class KeyGenerationParameters extends Object
| Constructor and Description |
|---|
KeyGenerationParameters(SecureRandom random,
int strength)initialise the generator with a source of randomness
and a strength (in bits). |
| Modifier and Type | Method and Description |
|---|---|
SecureRandom | getRandom()return the random source associated with this
generator. |
int | getStrength()return the bit strength for keys produced by this generator, |
public KeyGenerationParameters(SecureRandom random, int strength)
random - the random byte source.strength - the size, in bits, of the keys we want to produce.public SecureRandom getRandom()
public int getStrength()