- Type Parameters:
T
- the generic type of the input to encryptR
- the generic type of the result
- All Known Subinterfaces:
ByteArrayEncryptor
,FileEncryptor
,GenericObjectEncryptor<T>
,IntegerEncryptor
,StringEncryptor
public interface Encryptor<T,R>
The generic functional interface
Encryptor
can encrypt an object of type <T> and
return the encrypted result as object of type <R>.-
Method Summary
-
Method Details
-
encrypt
Encrypt the given object.- Parameters:
toEncrypt
- The object to encrypt.- Returns:
- The encrypted object.
- Throws:
Exception
- is thrown if encryption fails.
-