public abstract class PBEKeyFactory extends CryptoKeyFactory
| Modifier | Constructor and Description |
|---|---|
protected |
PBEKeyFactory(String algorithm,
byte[] keyPassword,
int keyLength,
byte[] keySalt,
int iterationsCount) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getAlgorithmName()
Gets a name of algorithm for which PBE key should be provided.
|
Key |
getKey()
Gets a key for encryption or decryption.
|
protected PBEKeyFactory(String algorithm, byte[] keyPassword, int keyLength, byte[] keySalt, int iterationsCount)
protected abstract String getAlgorithmName()
public Key getKey() throws EncryptionException
KeyFactoryEncryptionException - possible exception if key cannot be constructedCopyright © 2014. All rights reserved.