public class CipherKeyGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.security.SecureRandom |
random |
protected int |
strength |
Constructor and Description |
---|
CipherKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateKey()
generate a secret key.
|
void |
init(KeyGenerationParameters param)
initialise the key generator.
|
public void init(KeyGenerationParameters param)
param
- the parameters to be used for key generationpublic byte[] generateKey()