On 11 Nov 2013, at 9:29 PM, Oleg Kalnichevski <[email protected]> wrote:
> ---
> SSLContext sslcontext = SSLContexts.custom()
> .loadTrustMaterial(null, new TrustSelfSignedStrategy()).build();
> CloseableHttpClient client = HttpClients.custom()
> .setSslcontext(sslcontext)
> .build();
> ---
I know this is not tecnically an HTTP Client question, but can SSLContext
objects be shared between HTTP clients? TrustSelfSignedStrategy is stateless,
so it can be shared, but it is really not clear from Java's documentation
whether the SSLContext object is stateless.
Ciao,
seba
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]