Compresses and decompresses byte arrays according to a compression algorithm. "zip" identifier CompressionCodec extends Identifiable; the value returned from Identifiable#getId() getId() will be used as the JWT <a href="https://tools.ietf.org/html
| 32 | * @deprecated since 0.12.0 in favor of {@link io.jsonwebtoken.io.CompressionAlgorithm} to equal the RFC name for this concept. |
| 33 | */ |
| 34 | @Deprecated |
| 35 | public interface CompressionCodec extends CompressionAlgorithm { |
| 36 | |
| 37 | /** |
| 38 | * The algorithm name to use as the JWT |
| 39 | * <a href="https://tools.ietf.org/html/rfc7516#section-4.1.3"><code>zip</code></a> header value. |
| 40 | * |
| 41 | * @return the algorithm name to use as the JWT |
| 42 | * <a href="https://tools.ietf.org/html/rfc7516#section-4.1.3"><code>zip</code></a> header value. |
| 43 | * @deprecated since 0.12.0 in favor of {@link #getId()} to ensure congruence with |
| 44 | * all other identifiable algorithms. |
| 45 | */ |
| 46 | @SuppressWarnings("DeprecatedIsStillUsed") |
| 47 | @Deprecated |
| 48 | String getAlgorithmName(); |
| 49 | |
| 50 | /** |
| 51 | * Compresses the specified byte array, returning the compressed byte array result. |
| 52 | * |
| 53 | * @param content bytes to compress |
| 54 | * @return compressed bytes |
| 55 | * @throws CompressionException if the specified byte array cannot be compressed. |
| 56 | */ |
| 57 | @Deprecated |
| 58 | byte[] compress(byte[] content) throws CompressionException; |
| 59 | |
| 60 | /** |
| 61 | * Decompresses the specified compressed byte array, returning the decompressed byte array result. The |
| 62 | * specified byte array must already be in compressed form. |
| 63 | * |
| 64 | * @param compressed compressed bytes |
| 65 | * @return decompressed bytes |
| 66 | * @throws CompressionException if the specified byte array cannot be decompressed. |
| 67 | */ |
| 68 | @Deprecated |
| 69 | byte[] decompress(byte[] compressed) throws CompressionException; |
| 70 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…