@NoImplement public interface EncryptionStrategy extends Initialisable, 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.PHASE_NAME
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 |
initialise
getName
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 useddata
CryptoFailureException
- 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 useddata
CryptoFailureException
- if an error occurs while decryptingCopyright © 2018. All rights reserved.