Package io.github.astrapi69.crypto.api
Interface Encryptor<T,R>
-
- 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 interfaceEncryptor
can encrypt an object of type <T> and return the encrypted result as object of type <R>.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
encrypt(T toEncrypt)
Encrypt the given object.
-