Securing JAX-RS Endpoints with JWT
See the original posting on DZone Python
In this blog post, Ill show you how to use the JJWT library to issue and verify JSON Web Tokens with JAX-RS endpoints. The idea is to allow an invocation when no token is needed, but also, be able to reject an invocation when a JWT token is explicitly needed.