Simplifying configuration of TLSProtocolSocketFactory