Skip to content

Commit

Permalink
Update ClaimsMutator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pveeckhout authored Sep 11, 2024
1 parent 9cbbbe7 commit a940383
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/src/main/java/io/jsonwebtoken/ClaimsMutator.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import java.time.Instant;
import java.util.Collection;
import java.util.Date;

/**
* Mutation (modifications) to a {@link io.jsonwebtoken.Claims Claims} instance.
Expand Down Expand Up @@ -127,7 +128,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
* {@link #expiration(Instant)}. This method will be removed before the JJWT 1.0 release.
*/
@Deprecated
T setExpiration(Instant exp);
T setExpiration(Date exp);

/**
* Sets the JWT <a href="https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.4">
Expand Down Expand Up @@ -155,7 +156,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
* {@link #notBefore(Instant)}. This method will be removed before the JJWT 1.0 release.
*/
@Deprecated
T setNotBefore(Instant nbf);
T setNotBefore(Date nbf);

/**
* Sets the JWT <a href="https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.5">
Expand Down Expand Up @@ -183,7 +184,7 @@ public interface ClaimsMutator<T extends ClaimsMutator<T>> {
* {@link #issuedAt(Instant)}. This method will be removed before the JJWT 1.0 release.
*/
@Deprecated
T setIssuedAt(Instant iat);
T setIssuedAt(Date iat);

/**
* Sets the JWT <a href="https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.6">
Expand Down

0 comments on commit a940383

Please sign in to comment.