@ThreadSafe public class DeflateHelper extends Object
| Constructor and Description |
|---|
DeflateHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
applyCompression(JWEHeader jweHeader,
byte[] bytes)
Applies compression to the specified plain text if requested.
|
static byte[] |
applyDecompression(JWEHeader jweHeader,
byte[] bytes)
Applies decompression to the specified plain text if requested.
|
public DeflateHelper()
public static byte[] applyCompression(JWEHeader jweHeader, byte[] bytes) throws JOSEException
jweHeader - The JWE header. Must not be null.bytes - The plain text bytes. Must not be null.JOSEException - If compression failed or the requested
compression algorithm is not supported.public static byte[] applyDecompression(JWEHeader jweHeader, byte[] bytes) throws JOSEException
jweHeader - The JWE header. Must not be null.bytes - The plain text bytes. Must not be null.JOSEException - If decompression failed or the requested
compression algorithm is not supported.Copyright © 2019 Connect2id Ltd.. All rights reserved.