Securing JAX-RS 2.0 client by using SSL
You can secure the communications between your Java™ API for RESTful Web Services (JAX-RS) application and clients that call the application by using Secure Sockets Layer (SSL) transport layer security.
Before you begin
- You defined a cell profile to an application server or to an application server that is federated to a network deployment manager. Read about creating cell profiles to learn how to create cell profiles that contain a federated application server node and a deployment manager.
- You installed your JAX-RS 2.0 application onto the application server.
About this task
If you configured your JAX-RS 2.0 application to use an SSL channel for transport level security, the JAX-RS 2.0 client might use the SSL connection to call the REST resources. For example, if your JAX-RS 2.0 application is configured to use basic authentication, use SSL for the user credentials to be transported over secure connections.
To illustrate this scenario, assume that you have one application server in your cell, and that you deployed JAX-RS 2.0 resources on this server. The JAX-RS 2.0 resources on this server require the use of SSL. You can use the client for JAX-RS 2.0 to call one of these secure resources that requires the use of SSL. JAX-RS 2.0 client is a higher-level API than HttpURLConnection as well as integration with JAX-RS providers, and it is provided by this product.
Proceed with the following steps to configure SSL with the client for JAX-RS.
Procedure
Results
You define a secure connection between the client and the target server that uses SSL to enable integrity and confidentiality of the communication between the JAX-RS application and your client.