|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecretKeyGenerator
Generator for secret keys to be used in symmetric encryption.
Method Summary | |
---|---|
KeyParameter |
generateKey()
Generate random a secret key. |
void |
init(KeyGenerationParameters params)
Initialise this SecretKeyGenerator . |
Method Detail |
---|
void init(KeyGenerationParameters params)
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.
params
- the parameters or null
, if defaults should be used.KeyParameter generateKey()
IllegalStateException
, if
init(KeyGenerationParameters)
was not yet called.
null
.
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |