Changed version references from 0.5.2 to 0.6.0 (no 0.5.2 release yet).

This commit is contained in:
Les Hazlewood 2015-10-12 16:23:21 -07:00
parent a4f4da767b
commit 98970a7e19
12 changed files with 17 additions and 17 deletions

View File

@ -20,7 +20,7 @@ package io.jsonwebtoken;
* *
* @see io.jsonwebtoken.impl.compression.DeflateCompressionCodec * @see io.jsonwebtoken.impl.compression.DeflateCompressionCodec
* @see io.jsonwebtoken.impl.compression.GzipCompressionCodec * @see io.jsonwebtoken.impl.compression.GzipCompressionCodec
* @since 0.5.2 * @since 0.6.0
*/ */
public interface CompressionCodec { public interface CompressionCodec {

View File

@ -29,7 +29,7 @@ package io.jsonwebtoken;
* {@link io.jsonwebtoken.JwtBuilder#compressWith(CompressionCodec) building} and * {@link io.jsonwebtoken.JwtBuilder#compressWith(CompressionCodec) building} and
* {@link io.jsonwebtoken.JwtParser#setCompressionCodecResolver(CompressionCodecResolver) parsing} JWTs.</p> * {@link io.jsonwebtoken.JwtParser#setCompressionCodecResolver(CompressionCodecResolver) parsing} JWTs.</p>
* *
* @since 0.5.2 * @since 0.6.0
*/ */
public interface CompressionCodecResolver { public interface CompressionCodecResolver {

View File

@ -18,7 +18,7 @@ package io.jsonwebtoken;
/** /**
* Exception indicating that either compressing or decompressing an JWT body failed. * Exception indicating that either compressing or decompressing an JWT body failed.
* *
* @since 0.5.2 * @since 0.6.0
*/ */
public class CompressionException extends JwtException { public class CompressionException extends JwtException {

View File

@ -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. * 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. * @return the {@code calg} header parameter value or {@code null} if not present.
* @since 0.5.2 * @since 0.6.0
*/ */
String getCompressionAlgorithm(); String getCompressionAlgorithm();
@ -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> * 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. * @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); T setCompressionAlgorithm(String calg);

View File

@ -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> * 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 * <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 * (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.5.2 or another library that you know implements * 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> * the same behavior.</p>
* *
* @see io.jsonwebtoken.impl.compression.CompressionCodecs * @see io.jsonwebtoken.impl.compression.CompressionCodecs
* *
* @param codec implementation of the {@link CompressionCodec} to be used. * @param codec implementation of the {@link CompressionCodec} to be used.
* @return the builder for method chaining. * @return the builder for method chaining.
* @since 0.5.2 * @since 0.6.0
*/ */
JwtBuilder compressWith(CompressionCodec codec); JwtBuilder compressWith(CompressionCodec codec);

View File

@ -209,8 +209,8 @@ public interface JwtParser {
* Sets the {@link CompressionCodecResolver} used to acquire the {@link CompressionCodec} that should be used to * 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. * 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 * <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 * (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.5.2 or another library that you know implements * useful if the compact JWT was compressed with JJWT >= 0.6.0 or another library that you know implements
* the same behavior.</p> * the same behavior.</p>
* <h5>Default Support</h5> * <h5>Default Support</h5>
* <p>JJWT's default {@link JwtParser} implementation supports both the * <p>JJWT's default {@link JwtParser} implementation supports both the
@ -223,7 +223,7 @@ public interface JwtParser {
* *
* @param compressionCodecResolver the compression codec resolver used to decompress the JWT body. * @param compressionCodecResolver the compression codec resolver used to decompress the JWT body.
* @return the parser for method chaining. * @return the parser for method chaining.
* @since 0.5.2 * @since 0.6.0
*/ */
JwtParser setCompressionCodecResolver(CompressionCodecResolver compressionCodecResolver); JwtParser setCompressionCodecResolver(CompressionCodecResolver compressionCodecResolver);

View File

@ -24,7 +24,7 @@ import java.io.IOException;
/** /**
* Abstract class that asserts arguments and wraps IOException with CompressionException. * Abstract class that asserts arguments and wraps IOException with CompressionException.
* *
* @since 0.5.2 * @since 0.6.0
*/ */
public abstract class AbstractCompressionCodec implements CompressionCodec { public abstract class AbstractCompressionCodec implements CompressionCodec {

View File

@ -23,7 +23,7 @@ import io.jsonwebtoken.CompressionCodec;
* @see #DEFLATE * @see #DEFLATE
* @see #GZIP * @see #GZIP
* *
* @since 0.5.2 * @since 0.6.0
*/ */
public final class CompressionCodecs { public final class CompressionCodecs {

View File

@ -41,7 +41,7 @@ import io.jsonwebtoken.lang.Strings;
* *
* @see DeflateCompressionCodec * @see DeflateCompressionCodec
* @see GzipCompressionCodec * @see GzipCompressionCodec
* @since 0.5.2 * @since 0.6.0
*/ */
public class DefaultCompressionCodecResolver implements CompressionCodecResolver { public class DefaultCompressionCodecResolver implements CompressionCodecResolver {

View File

@ -26,7 +26,7 @@ import java.util.zip.InflaterOutputStream;
/** /**
* Codec implementing the <a href="https://en.wikipedia.org/wiki/DEFLATE">deflate compression algorithm</a>. * 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 { public class DeflateCompressionCodec extends AbstractCompressionCodec {

View File

@ -27,7 +27,7 @@ import java.util.zip.GZIPOutputStream;
/** /**
* Codec implementing the <a href="https://en.wikipedia.org/wiki/Gzip">gzip compression algorithm</a>. * 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 { public class GzipCompressionCodec extends AbstractCompressionCodec implements CompressionCodec {

View File

@ -20,7 +20,7 @@ import io.jsonwebtoken.CompressionException
import org.junit.Test import org.junit.Test
/** /**
* @since 0.5.2 * @since 0.6.0
*/ */
class AbstractCompressionCodecTest { class AbstractCompressionCodecTest {
static class ExceptionThrowingCodec extends AbstractCompressionCodec { static class ExceptionThrowingCodec extends AbstractCompressionCodec {