Module io.inverno.mod.security.jose
Class DeflateJWEZip
java.lang.Object
io.inverno.mod.security.jose.internal.jwe.DeflateJWEZip
- All Implemented Interfaces:
JWEZip
Deflate JWE compression algorithm (DEF) implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from interface io.inverno.mod.security.jose.jwe.JWEZip
ZIP_DEFLATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]compress(byte[] data) Compresses the specified data.byte[]decompress(byte[] data) Decompresses the specified data.booleanDetermines whether the JWE zip supports the specified compression algorithm.
-
Constructor Details
-
DeflateJWEZip
public DeflateJWEZip()Creates a JWE deflate compression.
-
-
Method Details
-
supports
Description copied from interface:JWEZipDetermines whether the JWE zip supports the specified compression algorithm.
-
compress
Description copied from interface:JWEZipCompresses the specified data.
- Specified by:
compressin interfaceJWEZip- Parameters:
data- the data to compress- Returns:
- compressed data
- Throws:
JWEZipException- if these was an error compressing the data
-
decompress
Description copied from interface:JWEZipDecompresses the specified data.
- Specified by:
decompressin interfaceJWEZip- Parameters:
data- the data to decompress- Returns:
- decompressed data
- Throws:
JWEZipException- if these was an error decompressing the data
-