diff --git a/.gitignore b/.gitignore
index bc177c84..3943b613 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ target/
.classpath
.project
.settings
+.clover
diff --git a/.travis.yml b/.travis.yml
index 0d370bd3..3f4905b9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,7 @@ language: java
jdk:
- openjdk7
- oraclejdk8
+ - oraclejdk9
before_install:
- export BUILD_COVERAGE="$([ $TRAVIS_JDK_VERSION == 'oraclejdk8' ] && echo 'true')"
diff --git a/pom.xml b/pom.xml
index f313eff4..e992d59b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,7 +80,7 @@
It is easiest to create a {@code Claims} instance by calling one of the
* {@link Jwts#claims() JWTs.claims()} factory methods. This is not a standard JWA compression algorithm. Be sure to use this only when you are confident
* that all parties accessing the token support the gzip algorithm. If you're concerned about compatibility, the {@link #DEFLATE DEFLATE} code is JWA standards-compliant. It is easiest to create a {@code Header} instance by calling one of the
* {@link Jwts#header() JWTs.header()} factory methods.
+ * The compression algorithm is NOT part of the JWT specification
+ * and must be used carefully since, is not expected that other libraries (including previous versions of this one)
+ * be able to deserialize a compressed JTW body correctly. Creation
+ * Creation
*
* Compatibility Warning
+ * Compatibility Warning
* Creation
+ * Creation
*
* zip
* (Compression Algorithm) header parameter value. A {@code null} value will remove
* the property from the JSON map.
+ * Compatiblity Note
*
diff --git a/src/main/java/io/jsonwebtoken/JwtBuilder.java b/src/main/java/io/jsonwebtoken/JwtBuilder.java
index 782352f0..13df44fa 100644
--- a/src/main/java/io/jsonwebtoken/JwtBuilder.java
+++ b/src/main/java/io/jsonwebtoken/JwtBuilder.java
@@ -368,7 +368,7 @@ public interface JwtBuilder extends ClaimsMutator
The JWT family of specifications defines compression only for JWE (JSON Web Encryption) * tokens. Even so, JJWT will also support compression for JWS tokens as well if you choose to use it. diff --git a/src/main/java/io/jsonwebtoken/JwtParser.java b/src/main/java/io/jsonwebtoken/JwtParser.java index c0fa1603..1dcdcf58 100644 --- a/src/main/java/io/jsonwebtoken/JwtParser.java +++ b/src/main/java/io/jsonwebtoken/JwtParser.java @@ -228,10 +228,10 @@ public interface JwtParser { * Sets the {@link CompressionCodecResolver} used to acquire the {@link CompressionCodec} that should be used to * decompress the JWT body. If the parsed JWT is not compressed, this resolver is not used. *
NOTE: Compression is not defined by the JWT Specification, and it is not expected that other libraries - * (including JJWT versions < 0.6.0) are able to consume a compressed JWT body correctly. This method is only - * useful if the compact JWT was compressed with JJWT >= 0.6.0 or another library that you know implements + * (including JJWT versions < 0.6.0) are able to consume a compressed JWT body correctly. This method is only + * useful if the compact JWT was compressed with JJWT >= 0.6.0 or another library that you know implements * the same behavior.
- *JJWT's default {@link JwtParser} implementation supports both the * {@link io.jsonwebtoken.impl.compression.DeflateCompressionCodec DEFLATE} * and {@link io.jsonwebtoken.impl.compression.GzipCompressionCodec GZIP} algorithms by default - you do not need to diff --git a/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java b/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java index 33983d05..b55ebc32 100644 --- a/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java +++ b/src/main/java/io/jsonwebtoken/SignatureAlgorithm.java @@ -130,6 +130,7 @@ public enum SignatureAlgorithm { * following table: * *
SignatureAlgorithm | diff --git a/src/main/java/io/jsonwebtoken/SigningKeyResolver.java b/src/main/java/io/jsonwebtoken/SigningKeyResolver.java index b068db9d..fbd9887f 100644 --- a/src/main/java/io/jsonwebtoken/SigningKeyResolver.java +++ b/src/main/java/io/jsonwebtoken/SigningKeyResolver.java @@ -38,7 +38,7 @@ import java.security.Key; * *
---|
Signature Algorithm | Generated Key Size | ||||||
---|---|---|---|---|---|---|---|
Signature Algorithm | Generated Key Size |
---|---|
HS256 | 256 bits (32 bytes) |
HS384 | 384 bits (48 bytes) |
HS512 | 512 bits (64 bytes) |
null if the input was null
+ * or null
if the input was null
*/
public static String quote(String str) {
return (str != null ? "'" + str + "'" : null);
@@ -513,7 +513,7 @@ public final class Strings {
/**
* Extract the filename from the given path,
- * e.g. "mypath/myfile.txt" -> "myfile.txt".
+ * e.g. "mypath/myfile.txt" -> "myfile.txt".
* @param path the file path (may be null
)
* @return the extracted filename, or null
if none
*/
@@ -527,7 +527,7 @@ public final class Strings {
/**
* Extract the filename extension from the given path,
- * e.g. "mypath/myfile.txt" -> "txt".
+ * e.g. "mypath/myfile.txt" -> "txt".
* @param path the file path (may be null
)
* @return the extracted filename extension, or null
if none
*/
@@ -548,7 +548,7 @@ public final class Strings {
/**
* Strip the filename extension from the given path,
- * e.g. "mypath/myfile.txt" -> "mypath/myfile".
+ * e.g. "mypath/myfile.txt" -> "mypath/myfile".
* @param path the file path (may be null
)
* @return the path with stripped filename extension,
* or null
if none