0 Replies Latest reply on Feb 21, 2012 7:39 AM by 918856

    TLS PSK mode ?


      i have read that the last release of jdk 7 will support the TLS PSK mode. But when i create a sample program to enumerate the supported cipher algorithm using this sample program :

      SSLContext ctx = SSLContext.getInstance("TLSv1.2");
      ctx.init(null,null, new SecureRandom());
      SSLParameters parameters = ctx.getDefaultSSLParameters();
      for(String s : parameters.getCipherSuites())

      I don't see the TLS_PSK cipher algorithm.

      So can i use the TLS-PSK mode ? and how (or where) must i put the shared key to use to establish the connection ?

      Notice that i use the jdk 7_02 version.

      Thank you