public class CipherKeyGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected 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.
|
protected SecureRandom random
protected int strength
public void init(KeyGenerationParameters param)
param - the parameters to be used for key generationpublic byte[] generateKey()
Copyright © 2015. All rights reserved.