Updated example to use parseClaimsJws to reflect most common use case

This commit is contained in:
Les Hazlewood 2015-09-11 11:28:43 -07:00
parent 947bcd5c67
commit 56fb2c6a75
1 changed files with 1 additions and 1 deletions

View File

@ -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