public abstract class CryptorFactoryImpl extends AbstractCryptoAlgorithmWithRandom implements CryptorFactory
CryptorFactory based on Cipher.provider| Constructor and Description |
|---|
CryptorFactoryImpl(SecurityProvider provider,
RandomFactory randomFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
abstract CryptorConfig |
getConfig() |
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). |
createSecureRandom, getRandomFactorygetProvidercreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringpublic CryptorFactoryImpl(SecurityProvider provider, RandomFactory randomFactory)
provider - the security SecurityProvider.randomFactory - the RandomFactory.public abstract CryptorConfig getConfig()
CryptorConfig.public String getAlgorithm()
getAlgorithm in interface CryptoAlgorithmKey.getAlgorithm(),
Signature.getAlgorithm(),
MessageDigest.getAlgorithm(),
SecureRandom.getAlgorithm(),
Cipher.getAlgorithm()public Encryptor newEncryptorUnsafe(Key encryptionKey)
CryptorFactorynewDecryptor method instead to avoid mistakes (passing wrong Key).newEncryptorUnsafe in interface CryptorFactoryencryptionKey - the Key to use for encryption.Encryptor for encryption.public Decryptor newDecryptorUnsafe(Key decryptionKey)
CryptorFactorynewEncryptor method instead to avoid mistakes (passing wrong Key).newDecryptorUnsafe in interface CryptorFactorydecryptionKey - the Key to use for decryption.Decryptor for decryption.Copyright © 2001–2019 mmm-Team. All rights reserved.