Skip to content

Commit 0ef343e

Browse files
committed
replaced JJWT_RELEASE_VERSION with 0.12.0
1 parent b411b19 commit 0ef343e

File tree

198 files changed

+385
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+385
-385
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Release Notes
22

3-
### JJWT_RELEASE_VERSION
3+
### 0.12.0
44

55
This is a big release! JJWT now fully supports Encrypted JSON Web Tokens (JWE), JSON Web Keys (JWK) and more! See the
66
sections below enumerating all new features as well as important notes on breaking changes or backwards-incompatible

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -540,18 +540,18 @@ If you're building a (non-Android) JDK project, you will want to define the foll
540540
<dependency>
541541
<groupId>io.jsonwebtoken</groupId>
542542
<artifactId>jjwt-api</artifactId>
543-
<version>JJWT_RELEASE_VERSION</version>
543+
<version>0.12.0</version>
544544
</dependency>
545545
<dependency>
546546
<groupId>io.jsonwebtoken</groupId>
547547
<artifactId>jjwt-impl</artifactId>
548-
<version>JJWT_RELEASE_VERSION</version>
548+
<version>0.12.0</version>
549549
<scope>runtime</scope>
550550
</dependency>
551551
<dependency>
552552
<groupId>io.jsonwebtoken</groupId>
553553
<artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred -->
554-
<version>JJWT_RELEASE_VERSION</version>
554+
<version>0.12.0</version>
555555
<scope>runtime</scope>
556556
</dependency>
557557
<!-- Uncomment this next dependency if you are using:
@@ -574,9 +574,9 @@ If you're building a (non-Android) JDK project, you will want to define the foll
574574

575575
```groovy
576576
dependencies {
577-
implementation 'io.jsonwebtoken:jjwt-api:JJWT_RELEASE_VERSION'
578-
runtimeOnly 'io.jsonwebtoken:jjwt-impl:JJWT_RELEASE_VERSION'
579-
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:JJWT_RELEASE_VERSION' // or 'io.jsonwebtoken:jjwt-gson:JJWT_RELEASE_VERSION' for gson
577+
implementation 'io.jsonwebtoken:jjwt-api:0.12.0'
578+
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.0'
579+
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.0' // or 'io.jsonwebtoken:jjwt-gson:0.12.0' for gson
580580
/*
581581
Uncomment this next dependency if you are using:
582582
- JDK 10 or earlier, and you want to use RSASSA-PSS (PS256, PS384, PS512) signature algorithms.
@@ -601,9 +601,9 @@ Add the dependencies to your project:
601601

602602
```groovy
603603
dependencies {
604-
api('io.jsonwebtoken:jjwt-api:JJWT_RELEASE_VERSION')
605-
runtimeOnly('io.jsonwebtoken:jjwt-impl:JJWT_RELEASE_VERSION')
606-
runtimeOnly('io.jsonwebtoken:jjwt-orgjson:JJWT_RELEASE_VERSION') {
604+
api('io.jsonwebtoken:jjwt-api:0.12.0')
605+
runtimeOnly('io.jsonwebtoken:jjwt-impl:0.12.0')
606+
runtimeOnly('io.jsonwebtoken:jjwt-orgjson:0.12.0') {
607607
exclude(group: 'org.json', module: 'json') //provided by Android natively
608608
}
609609
/*
@@ -2952,7 +2952,7 @@ scope which is the typical JJWT default). That is:
29522952
<dependency>
29532953
<groupId>io.jsonwebtoken</groupId>
29542954
<artifactId>jjwt-jackson</artifactId>
2955-
<version>JJWT_RELEASE_VERSION</version>
2955+
<version>0.12.0</version>
29562956
<scope>compile</scope> <!-- Not runtime -->
29572957
</dependency>
29582958
```
@@ -2961,7 +2961,7 @@ scope which is the typical JJWT default). That is:
29612961

29622962
```groovy
29632963
dependencies {
2964-
implementation 'io.jsonwebtoken:jjwt-jackson:JJWT_RELEASE_VERSION'
2964+
implementation 'io.jsonwebtoken:jjwt-jackson:0.12.0'
29652965
}
29662966
```
29672967

@@ -3069,7 +3069,7 @@ scope which is the typical JJWT default). That is:
30693069
<dependency>
30703070
<groupId>io.jsonwebtoken</groupId>
30713071
<artifactId>jjwt-gson</artifactId>
3072-
<version>JJWT_RELEASE_VERSION</version>
3072+
<version>0.12.0</version>
30733073
<scope>compile</scope> <!-- Not runtime -->
30743074
</dependency>
30753075
```
@@ -3078,7 +3078,7 @@ scope which is the typical JJWT default). That is:
30783078
30793079
```groovy
30803080
dependencies {
3081-
implementation 'io.jsonwebtoken:jjwt-gson:JJWT_RELEASE_VERSION'
3081+
implementation 'io.jsonwebtoken:jjwt-gson:0.12.0'
30823082
}
30833083
```
30843084

api/src/main/java/io/jsonwebtoken/ClaimsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @see JwtBuilder
2525
* @see Claims
26-
* @since JJWT_RELEASE_VERSION
26+
* @since 0.12.0
2727
*/
2828
public interface ClaimsBuilder extends MapMutator<String, Object, ClaimsBuilder>, ClaimsMutator<ClaimsBuilder>, Builder<Claims> {
2929
}

api/src/main/java/io/jsonwebtoken/ClaimsMutator.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
3636
*
3737
* @param iss the JWT {@code iss} value or {@code null} to remove the property from the JSON map.
3838
* @return the {@code Claims} instance for method chaining.
39-
* @deprecated since JJWT_RELEASE_VERSION in favor of the shorter and more modern builder-style named
39+
* @deprecated since 0.12.0 in favor of the shorter and more modern builder-style named
4040
* {@link #issuer(String)}. This method will be removed before the JJWT 1.0 release.
4141
*/
4242
@Deprecated
@@ -48,7 +48,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
4848
*
4949
* @param iss the JWT {@code iss} value or {@code null} to remove the property from the JSON map.
5050
* @return the {@code Claims} instance for method chaining.
51-
* @since JJWT_RELEASE_VERSION
51+
* @since 0.12.0
5252
*/
5353
T issuer(String iss);
5454

@@ -58,7 +58,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
5858
*
5959
* @param sub the JWT {@code sub} value or {@code null} to remove the property from the JSON map.
6060
* @return the {@code Claims} instance for method chaining.
61-
* @deprecated since JJWT_RELEASE_VERSION in favor of the shorter and more modern builder-style named
61+
* @deprecated since 0.12.0 in favor of the shorter and more modern builder-style named
6262
* {@link #subject(String)}. This method will be removed before the JJWT 1.0 release.
6363
*/
6464
@Deprecated
@@ -70,7 +70,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
7070
*
7171
* @param sub the JWT {@code sub} value or {@code null} to remove the property from the JSON map.
7272
* @return the {@code Claims} instance for method chaining.
73-
* @since JJWT_RELEASE_VERSION
73+
* @since 0.12.0
7474
*/
7575
T subject(String sub);
7676

@@ -85,7 +85,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
8585
*
8686
* @param aud the JWT {@code aud} value or {@code null} to remove the property from the JSON map.
8787
* @return the {@code Claims} instance for method chaining.
88-
* @deprecated since JJWT_RELEASE_VERSION in favor of {@link #audience()}. This method will be removed before
88+
* @deprecated since 0.12.0 in favor of {@link #audience()}. This method will be removed before
8989
* the JJWT 1.0 release.
9090
*/
9191
@Deprecated
@@ -99,7 +99,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
9999
* @return the {@link AudienceCollection AudienceCollection} to use for {@code aud} configuration.
100100
* @see AudienceCollection AudienceCollection
101101
* @see AudienceCollection#single(String) AudienceCollection.single(String)
102-
* @since JJWT_RELEASE_VERSION
102+
* @since 0.12.0
103103
*/
104104
AudienceCollection<T> audience();
105105

@@ -112,7 +112,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
112112
*
113113
* @param exp the JWT {@code exp} value or {@code null} to remove the property from the JSON map.
114114
* @return the {@code Claims} instance for method chaining.
115-
* @deprecated since JJWT_RELEASE_VERSION in favor of the shorter and more modern builder-style named
115+
* @deprecated since 0.12.0 in favor of the shorter and more modern builder-style named
116116
* {@link #expiration(Date)}. This method will be removed before the JJWT 1.0 release.
117117
*/
118118
@Deprecated
@@ -127,7 +127,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
127127
*
128128
* @param exp the JWT {@code exp} value or {@code null} to remove the property from the JSON map.
129129
* @return the {@code Claims} instance for method chaining.
130-
* @since JJWT_RELEASE_VERSION
130+
* @since 0.12.0
131131
*/
132132
T expiration(Date exp);
133133

@@ -140,7 +140,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
140140
*
141141
* @param nbf the JWT {@code nbf} value or {@code null} to remove the property from the JSON map.
142142
* @return the {@code Claims} instance for method chaining.
143-
* @deprecated since JJWT_RELEASE_VERSION in favor of the shorter and more modern builder-style named
143+
* @deprecated since 0.12.0 in favor of the shorter and more modern builder-style named
144144
* {@link #notBefore(Date)}. This method will be removed before the JJWT 1.0 release.
145145
*/
146146
@Deprecated
@@ -155,7 +155,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
155155
*
156156
* @param nbf the JWT {@code nbf} value or {@code null} to remove the property from the JSON map.
157157
* @return the {@code Claims} instance for method chaining.
158-
* @since JJWT_RELEASE_VERSION
158+
* @since 0.12.0
159159
*/
160160
T notBefore(Date nbf);
161161

@@ -168,7 +168,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
168168
*
169169
* @param iat the JWT {@code iat} value or {@code null} to remove the property from the JSON map.
170170
* @return the {@code Claims} instance for method chaining.
171-
* @deprecated since JJWT_RELEASE_VERSION in favor of the shorter and more modern builder-style named
171+
* @deprecated since 0.12.0 in favor of the shorter and more modern builder-style named
172172
* {@link #issuedAt(Date)}. This method will be removed before the JJWT 1.0 release.
173173
*/
174174
@Deprecated
@@ -183,7 +183,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
183183
*
184184
* @param iat the JWT {@code iat} value or {@code null} to remove the property from the JSON map.
185185
* @return the {@code Claims} instance for method chaining.
186-
* @since JJWT_RELEASE_VERSION
186+
* @since 0.12.0
187187
*/
188188
T issuedAt(Date iat);
189189

@@ -197,7 +197,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
197197
*
198198
* @param jti the JWT {@code jti} value or {@code null} to remove the property from the JSON map.
199199
* @return the {@code Claims} instance for method chaining.
200-
* @deprecated since JJWT_RELEASE_VERSION in favor of the shorter and more modern builder-style named
200+
* @deprecated since 0.12.0 in favor of the shorter and more modern builder-style named
201201
* {@link #id(String)}. This method will be removed before the JJWT 1.0 release.
202202
*/
203203
@Deprecated
@@ -213,7 +213,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
213213
*
214214
* @param jti the JWT {@code jti} value or {@code null} to remove the property from the JSON map.
215215
* @return the {@code Claims} instance for method chaining.
216-
* @since JJWT_RELEASE_VERSION
216+
* @since 0.12.0
217217
*/
218218
T id(String jti);
219219

@@ -223,7 +223,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
223223
*
224224
* @param <P> the type of ClaimsMutator to return for method chaining.
225225
* @see #single(String)
226-
* @since JJWT_RELEASE_VERSION
226+
* @since 0.12.0
227227
*/
228228
interface AudienceCollection<P> extends NestedCollection<String, P> {
229229

@@ -238,7 +238,7 @@ interface AudienceCollection<P> extends NestedCollection<String, P> {
238238
* @param aud the value to use as the {@code aud} Claim single-String value (and not an array of Strings), or
239239
* {@code null}, empty or whitespace to remove the property from the JSON map.
240240
* @return the instance for method chaining
241-
* @since JJWT_RELEASE_VERSION
241+
* @since 0.12.0
242242
* @deprecated This is technically not deprecated because the JWT RFC mandates support for single string values,
243243
* but it is marked as deprecated to discourage its use when possible.
244244
*/

api/src/main/java/io/jsonwebtoken/CompressionCodec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @see Jwts.ZIP#DEF
3030
* @see Jwts.ZIP#GZIP
3131
* @since 0.6.0
32-
* @deprecated since JJWT_RELEASE_VERSION in favor of {@link io.jsonwebtoken.io.CompressionAlgorithm} to equal the RFC name for this concept.
32+
* @deprecated since 0.12.0 in favor of {@link io.jsonwebtoken.io.CompressionAlgorithm} to equal the RFC name for this concept.
3333
*/
3434
@Deprecated
3535
public interface CompressionCodec extends CompressionAlgorithm {
@@ -40,7 +40,7 @@ public interface CompressionCodec extends CompressionAlgorithm {
4040
*
4141
* @return the algorithm name to use as the JWT
4242
* <a href="https://tools.ietf.org/html/rfc7516#section-4.1.3"><code>zip</code></a> header value.
43-
* @deprecated since JJWT_RELEASE_VERSION in favor of {@link #getId()} to ensure congruence with
43+
* @deprecated since 0.12.0 in favor of {@link #getId()} to ensure congruence with
4444
* all other identifiable algorithms.
4545
*/
4646
@SuppressWarnings("DeprecatedIsStillUsed")

api/src/main/java/io/jsonwebtoken/Header.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@ public interface Header extends Map<String, Object> {
4747
/**
4848
* JWT {@code Type} (typ) value: <code>"JWT"</code>
4949
*
50-
* @deprecated since JJWT_RELEASE_VERSION - this constant is never used within the JJWT codebase.
50+
* @deprecated since 0.12.0 - this constant is never used within the JJWT codebase.
5151
*/
5252
@Deprecated
5353
String JWT_TYPE = "JWT";
5454

5555
/**
5656
* JWT {@code Type} header parameter name: <code>"typ"</code>
57-
* @deprecated since JJWT_RELEASE_VERSION in favor of {@link #getType()}.
57+
* @deprecated since 0.12.0 in favor of {@link #getType()}.
5858
*/
5959
@Deprecated
6060
String TYPE = "typ";
6161

6262
/**
6363
* JWT {@code Content Type} header parameter name: <code>"cty"</code>
64-
* @deprecated since JJWT_RELEASE_VERSION in favor of {@link #getContentType()}.
64+
* @deprecated since 0.12.0 in favor of {@link #getContentType()}.
6565
*/
6666
@Deprecated
6767
String CONTENT_TYPE = "cty";
@@ -71,14 +71,14 @@ public interface Header extends Map<String, Object> {
7171
*
7272
* @see <a href="https://tools.ietf.org/html/rfc7515#section-4.1.1">JWS Algorithm Header</a>
7373
* @see <a href="https://tools.ietf.org/html/rfc7516#section-4.1.1">JWE Algorithm Header</a>
74-
* @deprecated since JJWT_RELEASE_VERSION in favor of {@link #getAlgorithm()}.
74+
* @deprecated since 0.12.0 in favor of {@link #getAlgorithm()}.
7575
*/
7676
@Deprecated
7777
String ALGORITHM = "alg";
7878

7979
/**
8080
* JWT {@code Compression Algorithm} header parameter name: <code>"zip"</code>
81-
* @deprecated since JJWT_RELEASE_VERSION in favor of {@link #getCompressionAlgorithm()}
81+
* @deprecated since 0.12.0 in favor of {@link #getCompressionAlgorithm()}
8282
*/
8383
@Deprecated
8484
String COMPRESSION_ALGORITHM = "zip";
@@ -143,7 +143,7 @@ public interface Header extends Map<String, Object> {
143143
*
144144
* @return the {@code alg} header value or {@code null} if not present. This will always be
145145
* {@code non-null} on validly constructed JWT instances, but could be {@code null} during construction.
146-
* @since JJWT_RELEASE_VERSION
146+
* @since 0.12.0
147147
*/
148148
String getAlgorithm();
149149

api/src/main/java/io/jsonwebtoken/HeaderMutator.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Mutation (modifications) to a {@link Header Header} instance.
2222
*
2323
* @param <T> the mutator subtype, for method chaining
24-
* @since JJWT_RELEASE_VERSION
24+
* @since 0.12.0
2525
*/
2626
public interface HeaderMutator<T extends HeaderMutator<T>> extends MapMutator<String, Object, T> {
2727

@@ -47,7 +47,7 @@ public interface HeaderMutator<T extends HeaderMutator<T>> extends MapMutator<St
4747
*
4848
* @param alg the {@code alg} header value
4949
* @return this header for method chaining
50-
* @since JJWT_RELEASE_VERSION
50+
* @since 0.12.0
5151
*
5252
T algorithm(String alg);
5353
*/
@@ -95,36 +95,36 @@ public interface HeaderMutator<T extends HeaderMutator<T>> extends MapMutator<St
9595
T contentType(String cty);
9696

9797
/**
98-
* Deprecated since of JJWT_RELEASE_VERSION, delegates to {@link #type(String)}.
98+
* Deprecated since of 0.12.0, delegates to {@link #type(String)}.
9999
*
100100
* @param typ the JWT JOSE {@code typ} header value or {@code null} to remove the property from the JSON map.
101101
* @return the instance for method chaining.
102102
* @see #type(String)
103-
* @deprecated since JJWT_RELEASE_VERSION in favor of the more modern builder-style {@link #type(String)} method.
103+
* @deprecated since 0.12.0 in favor of the more modern builder-style {@link #type(String)} method.
104104
* This method will be removed before the 1.0 release.
105105
*/
106106
@Deprecated
107107
T setType(String typ);
108108

109109
/**
110-
* Deprecated as of JJWT_RELEASE_VERSION, delegates to {@link #contentType(String)}.
110+
* Deprecated as of 0.12.0, delegates to {@link #contentType(String)}.
111111
*
112112
* @param cty the JWT JOSE {@code cty} header value or {@code null} to remove the property from the JSON map.
113113
* @return the instance for method chaining.
114114
* @see #contentType(String)
115-
* @deprecated since JJWT_RELEASE_VERSION in favor of the more modern builder-style {@link #contentType(String)}.
115+
* @deprecated since 0.12.0 in favor of the more modern builder-style {@link #contentType(String)}.
116116
*/
117117
@Deprecated
118118
T setContentType(String cty);
119119

120120
/**
121-
* Deprecated as of JJWT_RELEASE_VERSION, there is no need to set this any longer as the {@code JwtBuilder} will
121+
* Deprecated as of 0.12.0, there is no need to set this any longer as the {@code JwtBuilder} will
122122
* always set the {@code zip} header as necessary.
123123
*
124124
* @param zip the JWT compression algorithm {@code zip} value or {@code null} to remove the property from the JSON map.
125125
* @return the instance for method chaining.
126126
* @since 0.6.0
127-
* @deprecated since JJWT_RELEASE_VERSION and will be removed before the 1.0 release.
127+
* @deprecated since 0.12.0 and will be removed before the 1.0 release.
128128
*/
129129
@Deprecated
130130
T setCompressionAlgorithm(String zip);

api/src/main/java/io/jsonwebtoken/Identifiable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
* </tbody>
8080
* </table>
8181
*
82-
* @since JJWT_RELEASE_VERSION
82+
* @since 0.12.0
8383
*/
8484
public interface Identifiable {
8585

0 commit comments

Comments
 (0)