How to implement REST token-based authentication with JAX-RS and Jersey How to implement REST token-based authentication with JAX-RS and Jersey java java