K - type of SecretKey.public class SymmetricCryptorFactoryImpl<K extends SecretKey> extends CryptorFactoryImpl implements SymmetricCryptorFactory<K>
SymmetricCryptorFactory.| Modifier and Type | Field and Description |
|---|---|
private SymmetricCryptorConfig |
config |
provider| Constructor and Description |
|---|
SymmetricCryptorFactoryImpl(SymmetricCryptorConfig config,
RandomFactory randomFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SymmetricCryptorConfig |
getConfig() |
private static String |
getKeyAlgorithm(CryptorConfig config) |
Decryptor |
newDecryptorUnsafe(Key decryptionKey)
Please use typesafe
newEncryptor method instead to avoid mistakes (passing wrong Key). |
Encryptor |
newEncryptorUnsafe(Key encryptionKey)
Please use typesafe
newDecryptor method instead to avoid mistakes (passing wrong Key). |
private Key |
transformKey(Key encryptionKey) |
getAlgorithmcreateSecureRandom, getRandomFactorygetProvidercreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewDecryptor, newEncryptorprivate final SymmetricCryptorConfig config
public SymmetricCryptorFactoryImpl(SymmetricCryptorConfig config, RandomFactory randomFactory)
config - the SymmetricCryptorConfig.randomFactory - the RandomFactory.public Decryptor newDecryptorUnsafe(Key decryptionKey)
CryptorFactorynewEncryptor method instead to avoid mistakes (passing wrong Key).newDecryptorUnsafe in interface CryptorFactorynewDecryptorUnsafe in class CryptorFactoryImpldecryptionKey - the Key to use for decryption.Decryptor for decryption.public Encryptor newEncryptorUnsafe(Key encryptionKey)
CryptorFactorynewDecryptor method instead to avoid mistakes (passing wrong Key).newEncryptorUnsafe in interface CryptorFactorynewEncryptorUnsafe in class CryptorFactoryImplencryptionKey - the Key to use for encryption.Encryptor for encryption.public SymmetricCryptorConfig getConfig()
getConfig in class CryptorFactoryImplCryptorConfig.private static String getKeyAlgorithm(CryptorConfig config)
Copyright © 2001–2019 mmm-Team. All rights reserved.