tls session resumption

http://stackoverflow.com/questions/12318325/resume-tls-connection-in-java

As long as you use the same SSLSocketFactory to create the sockets, the JSSE implementation in Java will automatically resume an existing session, if the session is still valid.

You can verify this by invoking SSLSocket.getSession().getId() and check if two different sockets are using the same session.

原文地址:https://www.cnblogs.com/jvava/p/4113165.html