users@jersey.java.net

[Jersey] Re: SSL Client authentication

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 30 Aug 2011 11:55:53 +0200

Hello Stefan,

yes, you can, see jerey-apache-client4 module;
http://jersey.java.net/nonav/apidocs/latest/contribs/jersey-apache-client4/index.html

or you can take a look at https-clientserver-grizzly sample, which most
likely does what you need:
https://maven.java.net/content/repositories/releases/com/sun/jersey/samples/https-clientserver-grizzly/1.9-ea06/https-clientserver-grizzly-1.9-ea06-project.zip

hope it helps,
Pavel

On 8/30/11 11:15 AM, Stefan Magnus Landrø wrote:
> Hi there,
>
> I'm trying to access a service that is using certificate based CLIENT
> authentication. How can it be done using the jersey client?
>
> Could I for instance use the SSLSocketFactory in HttpClient 4.0 and
> make jersey use http client?
>
> http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/ssl/SSLSocketFactory.html
>
> Cheers,
>
> Stefan
>