|
Cumulus4j API (1.1.0) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cumulus4j.crypto.internal.symmetric.SecretKeyGeneratorImpl
public class SecretKeyGeneratorImpl
Default implementation of SecretKeyGenerator.
| Constructor Summary | |
|---|---|
SecretKeyGeneratorImpl()
|
|
| Method Summary | |
|---|---|
KeyParameter |
generateKey()
Generate random a secret key. |
void |
init(KeyGenerationParameters params)
Initialise this SecretKeyGenerator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecretKeyGeneratorImpl()
| Method Detail |
|---|
public void init(KeyGenerationParameters params)
SecretKeyGeneratorSecretKeyGenerator. Implementations should
be able to initialise with defaults, if no parameters are given (i.e. params being null).
Usually, defaults mean to generate 256 bit keys.
init in interface SecretKeyGeneratorparams - the parameters or null, if defaults should be used.public KeyParameter generateKey()
SecretKeyGeneratorIllegalStateException, if
SecretKeyGenerator.init(KeyGenerationParameters) was not yet called.
generateKey in interface SecretKeyGeneratornull.
|
Cumulus4j API (1.1.0) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||