> Hi folks - long time no post.
>
[quoted text clipped - 12 lines]
>
> Jon Skeet
> Maybe you could search for the apache tomcat implementation :
>
> org.apache.catalina.net.SSLServerSocketFactory
>
> This one seems to have methods to specify KeyStore stuff.
It's more a case of working where to plug things in. However, I believe
I'm now making progress. I'm using this within the context of Hessian,
and I *think* I've just got to create an SSLContext (which is what I'm
working on now) and then after URL.openConnection has been called, set
the SSLServerSocketFactory on the HttpsURLConnection to be one returned
by the context. I'll have a look at the Tomcat implementation if I run
into trouble though, thanks.
Jon
Jon Skeet - 26 Jan 2006 14:35 GMT
> It's more a case of working where to plug things in. However, I believe
> I'm now making progress. I'm using this within the context of Hessian,
> and I *think* I've just got to create an SSLContext (which is what I'm
> working on now) and then after URL.openConnection has been called, set
> the SSLServerSocketFactory on the HttpsURLConnection to be one returned
> by the context.
Just to confirm - I've now done this, and it works fine. You can set up
the context once, cache the SSLSocketFactory returned by
getSocketFactory, set that as the socket factory for an
HttpsURLConnection, and everything is fine.
Jon