mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
update dependency
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
<Automatic-Module-Name>cn.hutool.jwt</Automatic-Module-Name>
|
||||
|
||||
<!-- versions -->
|
||||
<bouncycastle.version>1.75</bouncycastle.version>
|
||||
<bouncycastle.version>1.76</bouncycastle.version>
|
||||
<jjwt.version>0.12.3</jjwt.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -44,13 +45,13 @@
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-impl</artifactId>
|
||||
<version>0.11.5</version>
|
||||
<version>${jjwt.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-gson</artifactId>
|
||||
<version>0.11.5</version>
|
||||
<version>${jjwt.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@@ -30,7 +30,7 @@ public class Issue3205Test {
|
||||
|
||||
final String token = jwt.sign();
|
||||
|
||||
final boolean signed = Jwts.parserBuilder().setSigningKey(keyPair.getPublic()).build().isSigned(token);
|
||||
final boolean signed = Jwts.parser().verifyWith(keyPair.getPublic()).build().isSigned(token);
|
||||
|
||||
Assert.assertTrue(signed);
|
||||
}
|
||||
|
Reference in New Issue
Block a user