io.jsonwebtoken.CompressionCodecResolverpublic class DefaultCompressionCodecResolver extends Object implements io.jsonwebtoken.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 | Description |
|---|---|
DefaultCompressionCodecResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
io.jsonwebtoken.CompressionCodec |
resolveCompressionCodec(io.jsonwebtoken.Header header) |
Copyright © 2019. All rights reserved.