Update ClaimsMutator.java

This commit is contained in:
Pieter Van Eeckhout 2024-09-11 21:28:12 +02:00 committed by GitHub
parent 9cbbbe7335
commit a940383960
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,7 @@ import io.jsonwebtoken.lang.NestedCollection;
import java.time.Instant;
import java.util.Collection;
import java.util.Date;
/**
* Mutation (modifications) to a {@link io.jsonwebtoken.Claims Claims} instance.
@ -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">
@ -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">
@ -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">