MCPcopy Create free account
hub / github.com/jwtk/jjwt / CompressionCodec

Interface CompressionCodec

api/src/main/java/io/jsonwebtoken/CompressionCodec.java:34–70  ·  view source on GitHub ↗

Compresses and decompresses byte arrays according to a compression algorithm. &quot;zip&quot; identifier CompressionCodec extends Identifiable; the value returned from Identifiable#getId() getId() will be used as the JWT <a href="https://tools.ietf.org/html

Source from the content-addressed store, hash-verified

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
35public 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}

Callers 3

compressMethod · 0.65
writeAndCloseMethod · 0.65
decompressMethod · 0.65

Implementers 1

AbstractCompressionAlgorithmimpl/src/main/java/io/jsonwebtoken/imp

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…