I've been testing around okhttp3 for making http2 requests, my criteria is to achieve http2 connection using jdk8 itself. I knew this can be easily achieved by upgrading to jdk 9 or using conscrypt as default provider like,
Security.insertProviderAt(Conscrypt.newProvider(), 1);
But inserting the provider like this will affect at the application level, I just want to restrict this only to the sslSocket which uses http2 connection, all the other sockets should use default provider, I knew apache-httpclient-5 beta provide such option called custom TLSstrategy which helps to assign conscrypt as default provider only for the specific SSLSocketFactory
Kindly help
TIA