Spring / Web services
How do I secure RESTful Web Services (JAX-RS)?
The below ways define how to secure Web services running in a web container that conform to the Representational State Transfer (REST) architectural style using Java API for RESTful Web Services (JAX-RS).
- Updating the
web.xml
deployment descriptor to define security configuration (Basic authentication). - Using the
javax.ws.rs.core.SecurityContext
interface to implement security programmatically. - Applying annotations to your JAX-RS classes.
- Using Jersey OAuth libraries to sign and verify requests.
More Related questions...