T - the input typeR - the return typepublic interface Encryptor<T,R>
Encryptor interface.| Modifier and Type | Method and Description |
|---|---|
T |
decrypt(R encryptedMessage)
Decrypt the given encrypted message.
|
R |
encrypt(T message)
Encrypt the given message.
|
boolean |
isEncrypted(T message)
Check whether the given message is already encrypted or not.
|
boolean isEncrypted(T message)
message - the message to checkR encrypt(T message)
message - the message to encrypt