mirror of https://github.com/jwtk/jjwt.git
Updated example to use parseClaimsJws to reflect most common use case
This commit is contained in:
parent
947bcd5c67
commit
56fb2c6a75
|
@ -62,7 +62,7 @@ But what if signature validation failed? You can catch `SignatureException` and
|
||||||
```java
|
```java
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Jwts.parser().setSigningKey(key).parse(compactJwt);
|
Jwts.parser().setSigningKey(key).parseClaimsJws(compactJwt);
|
||||||
|
|
||||||
//OK, we can trust this JWT
|
//OK, we can trust this JWT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue