From 40901fe072218819580da09b21400bc5352b546a Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Mon, 16 Sep 2019 08:58:25 -0600 Subject: [PATCH] Jwt.Builder#notBefore Value Is Instant Fixes gh-7442 --- .../main/java/org/springframework/security/oauth2/jwt/Jwt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java b/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java index 8a6a5454a8..ab35ed8d65 100644 --- a/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java +++ b/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java @@ -234,7 +234,7 @@ public class Jwt extends AbstractOAuth2Token implements JwtClaimAccessor { * @return the {@link Builder} for further configurations */ public Builder notBefore(Instant notBefore) { - this.claim(NBF, notBefore.getEpochSecond()); + this.claim(NBF, notBefore); return this; }