File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ An implementation of [JSON Web Tokens](http://self-issued.info/docs/draft-ietf-o
55### Usage
66
77``` java
8- public class Application {
9- public static void main (String [] args ) {
10- try {
11- Map<String ,Object > decodedPayload =
12- new JWTVerifier (" secret" , " audience" ). verify(" my-token" );
8+ public class Application {
9+ public static void main (String [] args ) {
10+ try {
11+ Map<String ,Object > decodedPayload =
12+ new JWTVerifier (" secret" , " audience" ). verify(" my-token" );
1313
14- // Get custom fields from decoded Payload
15- System . out. println(decodedPayload. get(" name" ));
16- } catch (SignatureException signatureException) {
17- System . err. println(" Invalid signature!" );
18- } catch (IllegalStateException illegalStateException) {
19- System . err. println(" Invalid Token! " + illegalStateException);
20- }
14+ // Get custom fields from decoded Payload
15+ System . out. println(decodedPayload. get(" name" ));
16+ } catch (SignatureException signatureException) {
17+ System . err. println(" Invalid signature!" );
18+ } catch (IllegalStateException illegalStateException) {
19+ System . err. println(" Invalid Token! " + illegalStateException);
2120 }
2221 }
22+ }
2323```
2424
2525#### Maven coordinates?
You can’t perform that action at this time.
0 commit comments