code: public SSLTransportParameters getTLSParams() {
          if (tls && sslParams == null) { 
              sslParams = new SSLTransportParameters();
              sslParams.setKeyStore(keystore, keystorepassword);
              sslParams.setTrustStore(truststore, truststorepassword);        
          }
          return sslParams;
      }
docs: If the 'tls' option is true, return the TLS parameters packaged in an
  {@link SSLTransportParameters} object.