0 Replies Latest reply: Feb 21, 2012 1:39 AM by 918856 RSS

    TLS PSK mode ?

    918856
      Hi,

      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())
      System.out.println(s);

      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