Browse Source

Jwt.Builder#notBefore Value Is Instant

Fixes gh-7442
pull/7453/head
Josh Cummings 6 years ago
parent
commit
40901fe072
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
  1. 2
      oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java

2
oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java

@ -234,7 +234,7 @@ public class Jwt extends AbstractOAuth2Token implements JwtClaimAccessor { @@ -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;
}

Loading…
Cancel
Save