mirror of https://github.com/jwtk/jjwt.git
Update README.md
This commit is contained in:
parent
5b7cd5e952
commit
b8d06862ad
|
@ -116,7 +116,7 @@ The following < 0.2 code produced a JWT as expected:
|
||||||
Jwt jwt = Jwts.parser().setSigningKey(key).parse(compact);
|
Jwt jwt = Jwts.parser().setSigningKey(key).parse(compact);
|
||||||
```
|
```
|
||||||
|
|
||||||
But you couldn't easily determine if the `jwt` was a `JWT` or `JWS` instance or if the body was a `Claims` instance or a plaintext `String` without resorting to yucky `instanceof` checks. In 0.2, we introduce the `JwtHandler` when you don't know the exact format of the compact JWT string ahead of time, and parsing convenience methods when you do.
|
But you couldn't easily determine if the `jwt` was a `JWT` or `JWS` instance or if the body was a `Claims` instance or a plaintext `String` without resorting to a bunch of yucky `instanceof` checks. In 0.2, we introduce the `JwtHandler` when you don't know the exact format of the compact JWT string ahead of time, and parsing convenience methods when you do.
|
||||||
|
|
||||||
##### JwtHandler
|
##### JwtHandler
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue