We are securing or application - currently we have a REST Service which we are calling from our REST program which is using jersy api like below
Client client = Client.create(config);
client.setFollowRedirects(true);
WebResource resource = client.resource("http://myserver/myws");
resource.accept(MediaType.APPLICATION_JSON_TYPE);
String result = resource.post(String.class);
but now we have https service like this
and the other application interface has shared with us the SSL Certificates.
What changes i now need to do in the code to make this communication secure using jersy api ?