java.lang.Object
io.inverno.mod.security.jose.internal.jwe.DeflateJWEZip
All Implemented Interfaces:
JWEZip

public class DeflateJWEZip extends Object implements JWEZip

Deflate JWE compression algorithm (DEF) implementation.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • DeflateJWEZip

      public DeflateJWEZip()

      Creates a JWE deflate compression.

  • Method Details

    • supports

      public boolean supports(String zip)
      Description copied from interface: JWEZip

      Determines whether the JWE zip supports the specified compression algorithm.

      Specified by:
      supports in interface JWEZip
      Parameters:
      zip - a compression algorithm
      Returns:
      true if the JWE zip supports the compression algorithm, false otherwise
    • compress

      public byte[] compress(byte[] data) throws JWEZipException
      Description copied from interface: JWEZip

      Compresses the specified data.

      Specified by:
      compress in interface JWEZip
      Parameters:
      data - the data to compress
      Returns:
      compressed data
      Throws:
      JWEZipException - if these was an error compressing the data
    • decompress

      public byte[] decompress(byte[] data) throws JWEZipException
      Description copied from interface: JWEZip

      Decompresses the specified data.

      Specified by:
      decompress in interface JWEZip
      Parameters:
      data - the data to decompress
      Returns:
      decompressed data
      Throws:
      JWEZipException - if these was an error decompressing the data