Interface Encrypter<T>
- Type Parameters:
T- the type of the object to encrypt/decrypt
- All Known Implementing Classes:
StringEncrypter
public interface Encrypter<T>
- Author:
- Luca Frosini (ISTI - CNR)
-
Method Summary
-
Method Details
-
encrypt
Encrypts the object using the context key- Parameters:
t- the object to encrypt- Returns:
- the encrypted object
- Throws:
Exception- if encryption fails
-
encrypt
Encrypts the object using the provided key- Parameters:
t- the object to encryptkey- the key to use for encryption- Returns:
- the encrypted object
- Throws:
Exception- if encryption fails
-
decrypt
Decrypts the object using the context key- Parameters:
t- the object to decrypt- Returns:
- the decrypted object
- Throws:
Exception- if decryption fails
-
decrypt
Decrypts the object using the provided key- Parameters:
t- the object to decryptkey- the key to use for decryption- Returns:
- the decrypted object
- Throws:
Exception- if decryption fails
-