Class DeflateCompressionHandler

java.lang.Object
org.forgerock.json.jose.jwe.handlers.compression.DeflateCompressionHandler
All Implemented Interfaces:
CompressionHandler

public class DeflateCompressionHandler extends Object implements CompressionHandler
An implementation of the CompressionHandler for DEFLATE Compressed Data Format Specification.

See Also:
  • Constructor Details

    • DeflateCompressionHandler

      public DeflateCompressionHandler()
  • Method Details

    • compress

      public byte[] compress(byte[] bytes)
      Applies the compression algorithm to compress the given array of bytes.
      Specified by:
      compress in interface CompressionHandler
      Parameters:
      bytes - The array of bytes to compress.
      Returns:
      The compressed representation of the byte array.
    • decompress

      public byte[] decompress(byte[] bytes)
      Applies the compression algorithm to decompress the given array of bytes.
      Specified by:
      decompress in interface CompressionHandler
      Parameters:
      bytes - The array of bytes to decompress.
      Returns:
      The decompressed representation of the byte array.