title: How to show protocols and cipher suites available to Jetty HTTPS clients?
body: <p>I have configured Jetty embedded server to include/exclude some protocols and cipher suites. Is there way to report those on working service? I think about something like <code>getSupportedCipherSuites()</code> and <code>getSupportedProtocols()</code> of <code>javax.net.ssl.SSLServerSocket</code> but for Jetty server objects. My code already shows things from configration:</p>
  
  <pre><code>HTTPSPDYServerConnector SSLconnector = new HTTPSPDYServerConnector(server, sslContextFactory);
  SSLconnector.setPort(PortHTTPS);
  ...
  server.setConnectors(new Connector[] { SSLconnector });
  ...
  showInfo(sslContextFactory.getIncludeCipherSuites());
  showInfo(sslContextFactory.getExcludeCipherSuites());
  showInfo(sslContextFactory.getIncludeProtocols());
  showInfo(sslContextFactory.getExcludeProtocols());
  ...
  server.start();
  </code></pre>
  
  <p>Now I want to see what protocols and cipher suites are available for clients.</p>
  
  <p><strong>EDIT (more info):</strong></p>
  
  <p>My environment can work with those protocols:</p>
  
  <pre><code>SSLv2Hello
  SSLv3
  TLSv1
  TLSv1.1
  TLSv1.2
  </code></pre>
  
  <p>This is result of <code>SSLServerSocket.getSupportedProtocols()</code> that is reported by <a href="http://www.java2s.com/Code/JavaAPI/javax.net.ssl/SSLServerSocketgetSupportedProtocols.htm" rel="nofollow noreferrer">http://www.java2s.com/Code/JavaAPI/javax.net.ssl/SSLServerSocketgetSupportedProtocols.htm</a></p>
  
  <p>But with Jetty environment I do not know how to get such list. I excluded some protocols by calling
      <code>sslContextFactory.addExcludeProtocols()</code> (I disabled <code>TLSv1.2</code> because of Chrome bug <a href="https://stackoverflow.com/questions/18373699/err-ssl-client-auth-signature-failed-in-google-chrome">ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome</a>)</p>
  
  <p>How can I get list of protocols available (not excluded) for Jetty server?</p>
  
  <p>I suppose that for my environment such result will be:</p>
  
  <pre><code>SSLv2Hello
  SSLv3
  TLSv1
  TLSv1.1
  </code></pre>
  
  <p>(TLSv1.2 was disabled)</p>