title: Define cipher suite for TLS in JCA
body: <p>I want the support of the following cipher suites in TLS using JCA:</p>
  
  <ul>
  <li>TLS_PSK_WITH_3DES_EDE_CBC_SHA</li>
  <li>TLS_PSK_WITH_AES_128_CBC_SHA</li>
  <li>TLS_PSK_WITH_NULL_SHA</li>
  <li>TLS_PSK_WITH_AES_128_CBC_SHA256</li>
  <li>TLS_PSK_WITH_NULL_SHA256</li>
  </ul>
  
  <p>They are available in <a href="http://download.java.net/jdk7/docs/technotes/guides/security/StandardNames.html" rel="noreferrer">JDK7</a> but not <a href="http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html" rel="noreferrer">JDK6</a>, neither BouncyCastle.</p>
  
  <p>If I want the support in JDK6, could I extends JCA to implement the support of these PSK extensions, using SPI, providers and callback methods of JSSE. I can already redefine or add new cipher implementations on runtime, but I'm not sure JCA offers enough granularity to add new cipher suites in TLS.</p>