Package com.gigaspaces.security.encoding
Interface ContentEncoder
- All Known Implementing Classes:
AesContentEncoder
public interface ContentEncoder
Interface for performing two-way encryption and decryption on objects.
- Since:
- 7.0.1
- Author:
- Moran Avigdor
-
Method Summary
-
Method Details
-
encode
Encode the object returning an encrypted byte array.- Parameters:
obj- Object to encode.- Returns:
- a byte array representing the encoded object.
- Throws:
EncodingException- if failed to encode the object.
-
decode
Decode the byte array returning a decrypted object.- Parameters:
bytes- a byte array representing the encoded object.- Returns:
- the decoded object.
- Throws:
EncodingException- if failed to decode the object.
-