public interface EncryptionStrategy
extends org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.meta.NamedObject
EncryptionStrategy can be used to provide different types of Encryption strategy objects.
These can be configured with different information relevant with the encryption method being used,
for example for Password Based Encryption (PBE) a password, salt, iteration count and algorithm
may be set on the strategy.| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] data,
Object info)
Decrypts the given
data using this encryption strategy |
InputStream |
decrypt(InputStream data,
Object info)
Decrypts the given
data using this encryption strategy |
byte[] |
encrypt(byte[] data,
Object info)
Encrypts the given
data using this encryption strategy |
InputStream |
encrypt(InputStream data,
Object info)
Encrypts the given
data using this encryption strategy |
InputStream encrypt(InputStream data, Object info) throws CryptoFailureException
data using this encryption strategydata - an InputStream providing the data to encryptinfo - information relevant with the encryption method being usedInputStream with the data encryptedCryptoFailureException - if an error occurs while encryptingInputStream decrypt(InputStream data, Object info) throws CryptoFailureException
data using this encryption strategydata - an InputStream providing the data to decryptinfo - information relevant with the encryption method usedInputStream with the data decryptedCryptoFailureException - if an error occurs while decryptingbyte[] encrypt(byte[] data,
Object info)
throws CryptoFailureException
data using this encryption strategydata - the data to encryptinfo - information relevant with the encryption method being useddataCryptoFailureException - if an error occurs while encryptingbyte[] decrypt(byte[] data,
Object info)
throws CryptoFailureException
data using this encryption strategydata - the data to decryptinfo - information relevant with the encryption method useddataCryptoFailureException - if an error occurs while decryptingCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.