Provides default implementations of the CompressionCodec interface. @see Jwts.ZIP#DEF @see Jwts.ZIP#GZIP @since 0.7.0 @deprecated in favor of Jwts.ZIP.
| 24 | * @deprecated in favor of {@link Jwts.ZIP}. |
| 25 | */ |
| 26 | @Deprecated //TODO: delete for 1.0 |
| 27 | public final class CompressionCodecs { |
| 28 | |
| 29 | private CompressionCodecs() { |
| 30 | } //prevent external instantiation |
| 31 | |
| 32 | /** |
| 33 | * Codec implementing the <a href="https://tools.ietf.org/html/rfc7518">JWA</a> standard |
| 34 | * <a href="https://en.wikipedia.org/wiki/DEFLATE">deflate</a> compression algorithm |
| 35 | * |
| 36 | * @deprecated in favor of {@link Jwts.ZIP#DEF}. |
| 37 | */ |
| 38 | @Deprecated |
| 39 | public static final CompressionCodec DEFLATE = (CompressionCodec) Jwts.ZIP.DEF; |
| 40 | |
| 41 | /** |
| 42 | * Codec implementing the <a href="https://en.wikipedia.org/wiki/Gzip">gzip</a> compression algorithm. |
| 43 | * |
| 44 | * <p><b>Compatibility Warning</b></p> |
| 45 | * |
| 46 | * <p><b>This is not a standard JWA compression algorithm</b>. Be sure to use this only when you are confident |
| 47 | * that all parties accessing the token support the gzip algorithm.</p> |
| 48 | * |
| 49 | * <p>If you're concerned about compatibility, the {@link Jwts.ZIP#DEF DEF} code is JWA standards-compliant.</p> |
| 50 | * |
| 51 | * @deprecated in favor of {@link Jwts.ZIP#GZIP} |
| 52 | */ |
| 53 | @Deprecated |
| 54 | public static final CompressionCodec GZIP = (CompressionCodec) Jwts.ZIP.GZIP; |
| 55 | |
| 56 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…