Skip to content

Commit

Permalink
Update JJWT from 0.11.5 to 0.12.3 (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Oct 30, 2023
1 parent d1b728f commit 8d78593
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle/libraries.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
retrofit2 = "2.9.0"
jjwt = "0.11.5"
jjwt = "0.12.3"
jackson = "2.15.3"
assertj = "3.24.2"
junit = "5.10.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ public void gwtTokenIntegrationTest() throws Exception {
PrivateKey privateKey = kf.generatePrivate(new PKCS8EncodedKeySpec(rsaPrivateKey));

String jws = Jwts.builder()
.serializeToJsonWith(new JacksonSerializer<>(new ObjectMapper()))
.setHeader(header)
.setClaims(body)
.signWith(privateKey, SignatureAlgorithm.RS256)
.json(new JacksonSerializer<>(new ObjectMapper()))
.header()
.add(header)
.and()
.claims(body)
.signWith(privateKey, Jwts.SIG.RS256)
.compact();

log.info("{}", jws);
Expand Down

0 comments on commit 8d78593

Please sign in to comment.