|
Cumulus4j API (1.0.1) |
|||||||||
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)
SecretKeyGenerator
SecretKeyGenerator
. 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 SecretKeyGenerator
params
- the parameters or null
, if defaults should be used.public KeyParameter generateKey()
SecretKeyGenerator
IllegalStateException
, if
SecretKeyGenerator.init(KeyGenerationParameters)
was not yet called.
generateKey
in interface SecretKeyGenerator
null
.
|
Cumulus4j API (1.0.1) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |