Package com.axelor.common.crypto
Interface Encryptor<T,R>
- Type Parameters:
T
- the input typeR
- the return type
- All Known Implementing Classes:
BytesEncryptor
,StringEncryptor
public interface Encryptor<T,R>
The
Encryptor
interface.-
Method Summary
-
Method Details
-
isEncrypted
Check whether the given message is already encrypted or not.- Parameters:
message
- the message to check- Returns:
- true if encrypted
-
encrypt
Encrypt the given message.- Parameters:
message
- the message to encrypt- Returns:
- encrypted message
-
decrypt
Decrypt the given encrypted message.- Parameters:
encryptedMessage
- the encrypted message to decrypt- Returns:
- decrypted message
-