Update README.md

This commit is contained in:
Les Hazlewood 2014-09-26 22:20:40 -07:00
parent 5b7cd5e952
commit b8d06862ad
1 changed files with 1 additions and 1 deletions

View File

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