How to perform authentication with tokens in JAX-RS applications.