Przeglądaj źródła

Jwt.Builder#notBefore Value Is Instant

Fixes gh-7442
Josh Cummings 6 lat temu
rodzic
commit
40901fe072

+ 1 - 1
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;
 		}