public class DefaultCompressionCodecResolver extends Object implements CompressionCodecResolver
CompressionCodecResolver that supports the following:
Header does not have a zip header, this implementation does
nothing and returns null to the caller, indicating no compression was used.zip value of DEF, a DeflateCompressionCodec will be returned.zip value of GZIP, a GzipCompressionCodec will be returned.zip value, a CompressionException is thrown to reflect an
unrecognized algorithm.If you want to use a compression algorithm other than DEF or GZIP, you must implement your own
CompressionCodecResolver and specify that when
building and
parsing JWTs.
DeflateCompressionCodec,
GzipCompressionCodec| Constructor and Description |
|---|
DefaultCompressionCodecResolver() |
public CompressionCodec resolveCompressionCodec(Header header)
resolveCompressionCodec in interface CompressionCodecResolverCopyright © 2018. All rights reserved.