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