Class AesContentEncoder

java.lang.Object
com.gigaspaces.security.encoding.aes.AesEncrypter
com.gigaspaces.security.encoding.aes.AesContentEncoder
All Implemented Interfaces:
ContentEncoder

public class AesContentEncoder extends AesEncrypter implements ContentEncoder
A ContentEncoder using AES as the cryptographic algorithm.
Since:
7.0.1
Author:
Moran Avigdor
  • Constructor Details

    • AesContentEncoder

      public AesContentEncoder()
    • AesContentEncoder

      public AesContentEncoder(SecretKey secretKey)
  • Method Details

    • decode

      public Object decode(byte[] bytes) throws EncodingException
      Description copied from interface: ContentEncoder
      Decode the byte array returning a decrypted object.
      Specified by:
      decode in interface ContentEncoder
      Parameters:
      bytes - a byte array representing the encoded object.
      Returns:
      the decoded object.
      Throws:
      EncodingException - if failed to decode the object.
    • encode

      public byte[] encode(Object obj) throws EncodingException
      Description copied from interface: ContentEncoder
      Encode the object returning an encrypted byte array.
      Specified by:
      encode in interface ContentEncoder
      Parameters:
      obj - Object to encode.
      Returns:
      a byte array representing the encoded object.
      Throws:
      EncodingException - if failed to encode the object.