public static final class Jwts.ZIP extends Object
zip header defined in the
JSON Web Encryption Compression Algorithms
Registry. Each algorithm is available as a (public static final) constant for
direct type-safe reference in application code. For example:
Jwts.builder()
// ... etc ...
.compressWith(Jwts.ZIP.DEF)
.build();
They are also available together as a Registry instance via the get() method.
get()| Modifier and Type | Field and Description |
|---|---|
static CompressionAlgorithm |
DEF
|
static CompressionAlgorithm |
GZIP
|
public static final CompressionAlgorithm DEF
public static final CompressionAlgorithm GZIP
zip header value
of "GZIP".
Compatibility Warning
This is not a standard JWE compression algorithm. Be sure to use this only when you are confident that all parties accessing the token support the "GZIP" identifier and associated algorithm.
If you're concerned about compatibility, DEF is the only JWA standards-compliant algorithm.
DEFpublic static Registry<String,CompressionAlgorithm> get()
Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.