Restlet Client class with custom SSLSocket/SSLContext

2010-02-04 Thread webpost
Hi There, How do I make Client class in Restlet use my own custome SSLSocket/SSLContext? I already have an application that is using Restlet Client to talk to a Web Service and I've create my own X509KeyManager and X509TrustManager which I would like to use when Client sets up the SSL link to

Re: Restlet Client class with custom SSLSocket/SSLContext

2010-02-04 Thread Bruno Harbulot
Hi Adrian, In Restlet 2, you can pass SslContextFactories to the client context. import org.restlet.engine.security.SslContextFactory; import org.restlet.engine.security.DefaultSslContextFactory; ... // Example with the default SslContextFactory SslContextFactory sslContextFactory = new

RE: Re: Restlet Client class with custom SSLSocket/SSLContext

2010-02-04 Thread webpost
Hi, Bruno. Thank you for your quick reply. I prefer my own implementation if it's just extending the SslContextFactory so I'll give that a try first if that works. But I'll take a look at jsslutils as well. Best regards, Adrian --