About this task
Step 5 towards the goal:
Implementing secure JAX-RS applications
Procedure
You can secure JAX-RS resources by using annotations
that specify security settings. You can use @PermitAll, @DenyAll and
@RolesAllowed annotations to override the configuration of security
constraints defined in the web.xml file.