JSON Web Signature (JWS) Hello App
Learn about the JSON Web Signature with a code example.
We'll cover the following...
In this lesson, we will be using JWT to play around with JSON Web Signature. Our goal is to get a feel for what it is and what its internal structure looks like.
Create the project
We start from the project template we defined earlier. Although we will not create a web application, we could use the template for one.
If you want to work within the Educative platform, simply use the project we’ve created at the end of this lesson. If you choose to work locally, you will need to create a Maven project
jwtHelloas described in "Introduction to Window Shopping."
Add dependency
Add the following JWT dependency to the pom.xml file:
Explanation
Lines 24–28: We add the JWT dependence, which contains all the utility classes and methods to work with JWT and similar concepts.
Class JWSHello
Let's go ahead and create the new class file JWSHello.java in the Maven jwt directory src/main/java/be/rubus/workshop/security/workshop/jwt:
Explanation
Line 14: We create a new class called
JWSHello...