- Type Parameters:
T- the generic type of the input to decryptR- the generic type of the result
- All Known Subinterfaces:
ByteArrayDecryptor,FileDecryptor,GenericObjectDecryptor<R>,IntegerDecryptor,StringDecryptor
public interface Decryptor<T,R>
The generic functional interface
Decryptor can decrypt an object of type <T> (that
was previously encrypted) and return the decrypted result as object of type <R>.-
Method Summary
-
Method Details
-
decrypt
Decrypt the given encrypted object.- Parameters:
encrypted- The object to decrypt.- Returns:
- The decrypted object
- Throws:
Exception- is thrown if decryption fails.
-