Skip to content

Commit

Permalink
Changed version references from 0.5.2 to 0.6.0 (no 0.5.2 release yet).
Browse files Browse the repository at this point in the history
  • Loading branch information
lhazlewood committed Oct 12, 2015
1 parent a4f4da7 commit 98970a7
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/jsonwebtoken/CompressionCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @see io.jsonwebtoken.impl.compression.DeflateCompressionCodec
* @see io.jsonwebtoken.impl.compression.GzipCompressionCodec
* @since 0.5.2
* @since 0.6.0
*/
public interface CompressionCodec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* {@link io.jsonwebtoken.JwtBuilder#compressWith(CompressionCodec) building} and
* {@link io.jsonwebtoken.JwtParser#setCompressionCodecResolver(CompressionCodecResolver) parsing} JWTs.</p>
*
* @since 0.5.2
* @since 0.6.0
*/
public interface CompressionCodecResolver {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jsonwebtoken/CompressionException.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* Exception indicating that either compressing or decompressing an JWT body failed.
*
* @since 0.5.2
* @since 0.6.0
*/
public class CompressionException extends JwtException {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/jsonwebtoken/Header.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public interface Header<T extends Header<T>> extends Map<String,Object> {
* Returns the JWT <code>calg</code> (Compression Algorithm) header value or {@code null} if not present.
*
* @return the {@code calg} header parameter value or {@code null} if not present.
* @since 0.5.2
* @since 0.6.0
*/
String getCompressionAlgorithm();

Expand All @@ -120,7 +120,7 @@ public interface Header<T extends Header<T>> extends Map<String,Object> {
* be able to deserialize a compressed JTW body correctly. </p>
*
* @param calg the JWT compression algorithm {@code calg} value or {@code null} to remove the property from the JSON map.
* @since 0.5.2
* @since 0.6.0
*/
T setCompressionAlgorithm(String calg);

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/io/jsonwebtoken/JwtBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,15 +357,15 @@ public interface JwtBuilder extends ClaimsMutator<JwtBuilder> {
* certain length. Using compression can help ensure the compact JWT fits within that length. However, NOTE:</p>
*
* <p><b>WARNING:</b> Compression is not defined by the JWT Specification, and it is not expected that other libraries
* (including JJWT versions < 0.5.2) are able to consume a compressed JWT body correctly. Only use this method
* if you are sure that you will consume the JWT with JJWT >= 0.5.2 or another library that you know implements
* (including JJWT versions < 0.6.0) are able to consume a compressed JWT body correctly. Only use this method
* if you are sure that you will consume the JWT with JJWT >= 0.6.0 or another library that you know implements
* the same behavior.</p>
*
* @see io.jsonwebtoken.impl.compression.CompressionCodecs
*
* @param codec implementation of the {@link CompressionCodec} to be used.
* @return the builder for method chaining.
* @since 0.5.2
* @since 0.6.0
*/
JwtBuilder compressWith(CompressionCodec codec);

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/io/jsonwebtoken/JwtParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ 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.
* <p><b>NOTE:</b> Compression is not defined by the JWT Specification, and it is not expected that other libraries
* (including JJWT versions < 0.5.2) are able to consume a compressed JWT body correctly. This method is only
* useful if the compact JWT was compressed with JJWT >= 0.5.2 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.</p>
* <h5>Default Support</h5>
* <p>JJWT's default {@link JwtParser} implementation supports both the
Expand All @@ -223,7 +223,7 @@ public interface JwtParser {
*
* @param compressionCodecResolver the compression codec resolver used to decompress the JWT body.
* @return the parser for method chaining.
* @since 0.5.2
* @since 0.6.0
*/
JwtParser setCompressionCodecResolver(CompressionCodecResolver compressionCodecResolver);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Abstract class that asserts arguments and wraps IOException with CompressionException.
*
* @since 0.5.2
* @since 0.6.0
*/
public abstract class AbstractCompressionCodec implements CompressionCodec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @see #DEFLATE
* @see #GZIP
*
* @since 0.5.2
* @since 0.6.0
*/
public final class CompressionCodecs {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*
* @see DeflateCompressionCodec
* @see GzipCompressionCodec
* @since 0.5.2
* @since 0.6.0
*/
public class DefaultCompressionCodecResolver implements CompressionCodecResolver {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Codec implementing the <a href="https://en.wikipedia.org/wiki/DEFLATE">deflate compression algorithm</a>.
*
* @since 0.5.2
* @since 0.6.0
*/
public class DeflateCompressionCodec extends AbstractCompressionCodec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* Codec implementing the <a href="https://en.wikipedia.org/wiki/Gzip">gzip compression algorithm</a>.
*
* @since 0.5.2
* @since 0.6.0
*/
public class GzipCompressionCodec extends AbstractCompressionCodec implements CompressionCodec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import io.jsonwebtoken.CompressionException
import org.junit.Test

/**
* @since 0.5.2
* @since 0.6.0
*/
class AbstractCompressionCodecTest {
static class ExceptionThrowingCodec extends AbstractCompressionCodec {
Expand Down

0 comments on commit 98970a7

Please sign in to comment.