mirror of https://github.com/jwtk/jjwt.git
Readme and JavaDoc updates for the upcoming 0.5 release
This commit is contained in:
parent
04865163c9
commit
754b87a8a4
|
@ -51,7 +51,7 @@ How easy was that!?
|
|||
Now let's verify the JWT (you should always discard JWTs that don't match an expected signature):
|
||||
|
||||
```java
|
||||
assert Jwts.parser().setSigningKey(key).parseClaimsJws(compact).getBody().getSubject().equals("Joe");
|
||||
assert Jwts.parser().setSigningKey(key).parseClaimsJws(s).getBody().getSubject().equals("Joe");
|
||||
```
|
||||
|
||||
You have to love one-line code snippets!
|
||||
|
|
Loading…
Reference in New Issue