public class DeflateCompressionCodec extends AbstractCompressionCodec
| Constructor and Description |
|---|
DeflateCompressionCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doCompress(byte[] payload)
Implement this method to do the actual work of compressing the payload
|
byte[] |
doDecompress(byte[] compressed)
Implement this method to do the actual work of decompressing the compressed bytes.
|
String |
getAlgorithmName()
The algorithm name to use as the JWT's
calg header value. |
compress, decompresspublic String getAlgorithmName()
CompressionCodeccalg header value.calg header value.public byte[] doCompress(byte[] payload)
throws IOException
AbstractCompressionCodecdoCompress in class AbstractCompressionCodecpayload - the bytes to compressIOException - if the compression causes an IOExceptionpublic byte[] doDecompress(byte[] compressed)
throws IOException
AbstractCompressionCodecdoDecompress in class AbstractCompressionCodeccompressed - compressed bytesIOException - if the decompression runs into an IO problemCopyright © 2016. All rights reserved.