Skip to content

Commit 5c9bcc5

Browse files
authored
Merge pull request auth0#154 from auth0/remove-travis
Remove Travis CI. Add Circle CI badge
2 parents 199aca8 + 5130ec9 commit 5c9bcc5

2 files changed

Lines changed: 4 additions & 25 deletions

File tree

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Java JWT
44

5-
[![Build Status](https://travis-ci.org/auth0/java-jwt.svg?branch=v3)](https://travis-ci.org/auth0/java-jwt)
5+
[![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
66
[![Coverage Status](https://img.shields.io/codecov/c/github/auth0/java-jwt/v3.svg?style=flat-square)](https://codecov.io/github/auth0/java-jwt)
77
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat)](http://doge.mit-license.org)
88

@@ -216,7 +216,7 @@ Additional Claims defined in the token's Header can be obtained by calling `getH
216216
Claim claim = jwt.getHeaderClaim("owner");
217217
```
218218

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.
220220

221221
```java
222222
Map<String, Object> headerClaims = new HashMap();
@@ -302,7 +302,7 @@ or
302302
Claim claim = jwt.getClaim("isAdmin");
303303
```
304304

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.
306306

307307
```java
308308
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
331331
* **asBoolean()**: Returns the Boolean value or null if it can't be converted.
332332
* **asInt()**: Returns the Integer value or null if it can't be converted.
333333
* **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.
334335
* **asString()**: Returns the String value or null if it can't be converted.
335336
* **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.
336337

0 commit comments

Comments
 (0)