public class SymmetricKeyConfigPbe extends SymmetricKeyConfig
SymmetricKeyConfig for PBE (Password Based Encryption).| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
SALT |
algorithmprovider| Constructor and Description |
|---|
SymmetricKeyConfigPbe(String algorithm,
int keyLength)
The constructor.
|
SymmetricKeyConfigPbe(String algorithm,
int keyLength,
int iterationCount)
The constructor.
|
SymmetricKeyConfigPbe(String algorithm,
int keyLength,
int iterationCount,
byte[] salt)
The constructor.
|
SymmetricKeyConfigPbe(String algorithm,
SecurityProvider provider,
int keyLength)
The constructor.
|
SymmetricKeyConfigPbe(String algorithm,
SecurityProvider provider,
int keyLength,
int iterationCount,
byte[] salt)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getKeyLength(SecretKey key,
SecretKeyFactory keyFactory) |
getKeySpecFactorygetKeyLengthgetAlgorithmgetProviderpublic SymmetricKeyConfigPbe(String algorithm, int keyLength)
algorithm - the algorithm.keyLength - the key length in bits.public SymmetricKeyConfigPbe(String algorithm, SecurityProvider provider, int keyLength)
algorithm - the algorithm.provider - the SecurityProvider.keyLength - the key length in bits.public SymmetricKeyConfigPbe(String algorithm, int keyLength, int iterationCount)
algorithm - the algorithm.keyLength - the key length in bits.iterationCount - the iteration count.public SymmetricKeyConfigPbe(String algorithm, int keyLength, int iterationCount, byte[] salt)
algorithm - the algorithm.keyLength - the key length in bits.iterationCount - the iteration count.salt - the salt.public SymmetricKeyConfigPbe(String algorithm, SecurityProvider provider, int keyLength, int iterationCount, byte[] salt)
algorithm - the algorithm.provider - the SecurityProvider.keyLength - the key length in bits.iterationCount - the iteration count.salt - the salt.public int getKeyLength(SecretKey key, SecretKeyFactory keyFactory)
getKeyLength in class SymmetricKeyConfigkey - the SecretKey.keyFactory - the SecretKeyFactory.key length of the given SecretKey.Copyright © 2001–2019 mmm-Team. All rights reserved.