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
ContentEncoderdecode in interface ContentEncoderbytes - a byte array representing the encoded object.EncodingException - if failed to decode the object.public byte[] encode(Object obj) throws EncodingException
ContentEncoderencode in interface ContentEncoderobj - Object to encode.EncodingException - if failed to encode the object.Copyright © GigaSpaces.