I am trying to do SSL Session resumption in
Java. But instead of doing handshake for the first time, I need to load the stored sessions (stored by a C++ application) and then use those sessions as if that session is cached.
The same process has to be done at the server side.
has anyone done this before in java ?
JSSE doesn't expose an aPI for me to Create SSLSessions on my own. EVen If I creat an SSLSession, there is no API for me to set the sessions in the client side cache.
I looked at the classes under
http://java.sun.com/javase/6/docs/api/javax/net/ssl/package-summary.html.
I could not figure out a way. I use iBM java runtime.
Another approach i tried was to write my own SSLCOntextSpi but call IBM SSLCOntextSpi for everything except session management. But SSLContextspi's meth
ods are all protected, so I couldn't do this either.
Other than doing a full JSSE implementation based on some open source library, is there a way to achieve my goal ?