public abstract class KeyConfig extends CryptoAlgorithmConfig implements AbstractGetKeyLength
algorithm configuration for dealing with
Keys.KeyCreatorFactory,
KeyCreator| Modifier and Type | Field and Description |
|---|---|
private int |
keyLength |
algorithmprovider| Constructor and Description |
|---|
KeyConfig(String algorithm,
SecurityProvider provider,
int keyLength)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getKeyLength() |
getAlgorithmgetProviderpublic KeyConfig(String algorithm, SecurityProvider provider, int keyLength)
algorithm - the algorithm.provider - the SecurityProvider.keyLength - the key length in bits.public int getKeyLength()
getKeyLength in interface AbstractGetKeyLengthalgorithm: A recent value for
RSA is 4096 bits while for PBKDF2 256 is sufficient. However, recommended and secure values change over
time as computing power is increasing. Therefore you should research the web to find an accurate value.Copyright © 2001–2019 mmm-Team. All rights reserved.