REST Jersey2 JSON JWT Authentication Authorization

This tutorial explains how to create a Java REST Web Service with Jersey2, JSON communication, JSON Web Token authentication and role authorization using annotations and request filters. Passwords are hashed with PKDF2 and salted with HMAC SHA1. The provided code is working with two tested databases, OrientDB and SQLite. The data access layer uses the DAO (Data Access Object) pattern, in order to separate business logic from the database layer. This tutorial is a rather long one, since there are a lot of open topics to go into and explain. We hope…

Read More