6.1.0 ; was already implemented by both implementations of this
interface, and exposing it here simplifies configuring SSL
regardless of the interface implementation
The SSLContext should be initialized with
KeyManager and TrustManager using a KeyStore.
If we init the sslContext with null TrustManager, it would use the
<java-home>/lib/security/cacerts file for trusted root
certificates, if javax.net.ssl.trustStore system property is not
set and <java-home>/lib/security/jssecacerts is not present.
See
JSSE Reference Guide for more information on SSL and
TrustManagers.
If self signed certificates, signed by CAs created internally are
used, then the internal CA's root certificate should be added to
the keystore. See this link
for adding a root certificate in the keystore.
Parameters:
context - - the SSLContext object required for the
SSL connection
trustManager - - X509TrustManager with which we
initialize the SSLContext