public class AesContentEncoder extends AesEncrypter implements ContentEncoder
ContentEncoder
using AES as the cryptographic algorithm.Constructor and Description |
---|
AesContentEncoder() |
AesContentEncoder(SecretKey secretKey) |
Modifier and Type | Method and Description |
---|---|
Object |
decode(byte[] bytes)
Decode the byte array returning a decrypted object.
|
byte[] |
encode(Object obj)
Encode the object returning an encrypted byte array.
|
public AesContentEncoder()
public AesContentEncoder(SecretKey secretKey)
public Object decode(byte[] bytes) throws EncodingException
ContentEncoder
decode
in interface ContentEncoder
bytes
- a byte array representing the encoded object.EncodingException
- if failed to decode the object.public byte[] encode(Object obj) throws EncodingException
ContentEncoder
encode
in interface ContentEncoder
obj
- Object to encode.EncodingException
- if failed to encode the object.Copyright © GigaSpaces.