You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 532437a
Browse filesBrowse the repository at this point in the historyBrowse files
This tutorial walks you through the various features supported by the [JJWT](https://github.com/jwtk/jjwt) library - a fluent interface Java JWT building and parsing library.
4
+
5
+
### Build and Run
6
+
7
+
It's super easy to build and exercise this tutorial.
8
+
9
+
```
10
+
mvn clean install
11
+
java -jar target/*.jar
12
+
```
13
+
14
+
That's it!
15
+
16
+
You can hit the home endpoint with your favorite command-line http client. My favorite is: [httpie](https://github.com/jkbrzt/httpie)
17
+
18
+
`http localhost:8080`
19
+
20
+
```
21
+
Available commands (assumes httpie - https://github.com/jkbrzt/httpie):
22
+
23
+
http http://localhost:8080/
24
+
This usage message
25
+
26
+
http http://localhost:8080/static-builder
27
+
build JWT from hardcoded claims
28
+
29
+
http POST http://localhost:8080/dynamic-builder-general claim-1=value-1 ... [claim-n=value-n]
30
+
build JWT from passed in claims (using general claims map)
31
+
32
+
http POST http://localhost:8080/dynamic-builder-specific claim-1=value-1 ... [claim-n=value-n]
33
+
build JWT from passed in claims (using specific claims methods)
34
+
35
+
http POST http://localhost:8080/dynamic-builder-compress claim-1=value-1 ... [claim-n=value-n]
36
+
build DEFLATE compressed JWT from passed in claims
" http " + requestUrl + "/parser-enforce?jwt=<jwt>\n\tParse passed in JWT enforcing the 'iss' registered claim and the 'hasMotorcycle' custom claim\n";
0 commit comments