PDA

View Full Version : Hessian and HTTPS


blue_francis14
03-30-2012, 08:18 AM
Hello,

Is it possible to use java's implementation of Hessian and connect it from a server hosting a web service using hessian protocol? But the client needs be authenticated using a certificate?

Much like this

SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
URL url = new URL("https://myserver/inquiry_api");
HttpsURLConnection conn = (HttpsURLConnection)url.openConnection();
conn.setSSLSocketFactory(sslsocketfactory);


And then make hessian create the a connection using the variable conn?
I am trying to understand the source if this possible but is a bit woozy from reading the codes and it's time I really need to ask someone about this.

Thanks in advance!