title: Setting the Roles for @RolesAllowed in JAX-RS using jersey
body: <p>I tried using <code>Basic Authentication</code> by changing the <code>server.xml</code> config of <code>Tomcat 6.0</code> but it did not worked: <a href="https://stackoverflow.com/questions/15158554/basic-authentication-in-jersey-jax-rs-service-and-tomcat-6-0-getting-failed">BASIC authentication in jersey JAX-RS service and Tomcat 6.0 getting failed</a></p>
  
  <p>Hence I am opting a way where no server specific config is needed and I can add up the roles directly in my code (either client or server; not sure about theavailable options).</p>
  
  <p>Please provide me some ideas about the possible options for setting the user roles so that I can authenticate my Web Service methods using the <code>@RolesAllowed</code> annotation.</p>