GigaSpaces XAP 9.5 API

com.gigaspaces.security.encoding
Interface ContentEncoder


public interface ContentEncoder

Interface for performing two-way encryption and decryption on objects.

Since:
7.0.1
Author:
Moran Avigdor

Method Summary
 Object decode(byte[] bytes)
          Decode the byte array returning a decrypted object.
 byte[] encode(Object obj)
          Encode the object returning an encrypted byte array.
 

Method Detail

encode

byte[] encode(Object obj)
              throws EncodingException
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

Object decode(byte[] bytes)
              throws EncodingException
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.

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.