This discussion is archived
0 Replies Latest reply: Feb 20, 2012 11:39 PM by 918856 RSS

TLS PSK mode ?

918856 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points