|
2 | 2 |
|
3 | 3 | # Java JWT |
4 | 4 |
|
5 | | -[](https://travis-ci.org/auth0/java-jwt) |
| 5 | +[](https://circleci.com/gh/auth0/java-jwt/tree/master) |
6 | 6 | [](https://codecov.io/github/auth0/java-jwt) |
7 | 7 | [](http://doge.mit-license.org) |
8 | 8 |
|
@@ -216,7 +216,7 @@ Additional Claims defined in the token's Header can be obtained by calling `getH |
216 | 216 | Claim claim = jwt.getHeaderClaim("owner"); |
217 | 217 | ``` |
218 | 218 |
|
219 | | -When creating a Token with the `JWT.create()` you can specify header Claims by calling `withHeader()` and passing both the map of claims. |
| 219 | +When creating a Token with the `JWT.create()` you can specify header Claims by calling `withHeader()` and passing both the map of claims. |
220 | 220 |
|
221 | 221 | ```java |
222 | 222 | Map<String, Object> headerClaims = new HashMap(); |
|
302 | 302 | Claim claim = jwt.getClaim("isAdmin"); |
303 | 303 | ``` |
304 | 304 |
|
305 | | -When creating a Token with the `JWT.create()` you can specify a custom Claim by calling `withClaim()` and passing both the name and the value. |
| 305 | +When creating a Token with the `JWT.create()` you can specify a custom Claim by calling `withClaim()` and passing both the name and the value. |
306 | 306 |
|
307 | 307 | ```java |
308 | 308 | String token = JWT.create() |
@@ -331,6 +331,7 @@ The Claim class is a wrapper for the Claim values. It allows you to get the Clai |
331 | 331 | * **asBoolean()**: Returns the Boolean value or null if it can't be converted. |
332 | 332 | * **asInt()**: Returns the Integer value or null if it can't be converted. |
333 | 333 | * **asDouble()**: Returns the Double value or null if it can't be converted. |
| 334 | +* **asLong()**: Returns the Long value or null if it can't be converted. |
334 | 335 | * **asString()**: Returns the String value or null if it can't be converted. |
335 | 336 | * **asDate()**: Returns the Date value or null if it can't be converted. This must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds. |
336 | 337 |
|
|
0 commit comments