public class DeflateCompressionCodec extends AbstractCompressionCodec
构造器和说明 |
---|
DeflateCompressionCodec() |
限定符和类型 | 方法和说明 |
---|---|
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.
|
java.lang.String |
getAlgorithmName()
The algorithm name to use as the JWT's
calg header value. |
compress, decompress
public java.lang.String getAlgorithmName()
CompressionCodec
calg
header value.calg
header value.public byte[] doCompress(byte[] payload) throws java.io.IOException
AbstractCompressionCodec
doCompress
在类中 AbstractCompressionCodec
payload
- the bytes to compressjava.io.IOException
- if the compression causes an IOExceptionpublic byte[] doDecompress(byte[] compressed) throws java.io.IOException
AbstractCompressionCodec
doDecompress
在类中 AbstractCompressionCodec
compressed
- compressed bytesjava.io.IOException
- if the decompression runs into an IO problem