code: public void setSSLParameters(SSLParameters params) {
          String[] s;
          s = params.getCipherSuites();
          if (s != null) {
              setEnabledCipherSuites(s);
          }
  
          s = params.getProtocols();
          if (s != null) {
              setEnabledProtocols(s);
          }
  
          if (params.getNeedClientAuth()) {
              setNeedClientAuth(true);
          } else if (params.getWantClientAuth()) {
              setWantClientAuth(true);
          } else {
              setWantClientAuth(false);
          }
      }
docs: Applies SSLParameters to newly accepted connections.
  
  <p>This means:
  <ul>
  <li>If {@code params.getCipherSuites()} is non-null,
  {@code setEnabledCipherSuites()} is called with that value.</li>
  <li>If {@code params.getProtocols()} is non-null,
  {@code setEnabledProtocols()} is called with that value.</li>
  <li>If {@code params.getNeedClientAuth()} or
  {@code params.getWantClientAuth()} return {@code true},
  {@code setNeedClientAuth(true)} and
  {@code setWantClientAuth(true)} are called, respectively;
  otherwise {@code setWantClientAuth(false)} is called.</li>
  <li>If {@code params.getServerNames()} is non-null, the socket will
  configure its server names with that value.</li>
  <li>If {@code params.getSNIMatchers()} is non-null, the socket will
  configure its SNI matchers with that value.</li>
  </ul>
  
  @param params the parameters
  @throws IllegalArgumentException if the setEnabledCipherSuites() or
  the setEnabledProtocols() call fails
  
  @see #getSSLParameters()
  
  @since 1.7