소스 검색

Jwt.Builder#notBefore Value Is Instant

Fixes gh-7442
Josh Cummings 6 년 전
부모
커밋
40901fe072
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java

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