SSLIOSession is a decorator class intended to transparently extend an {@link IOSession} with transport layer security capabilities based onthe SSL/TLS protocol.
The resultant instance of
SSLIOSession must be added to the original I/O session as an attribute with the {@link #SESSION_KEY} key.
SSLContext sslcontext = SSLContext.getInstance("SSL"); sslcontext.init(null, null, null); SSLIOSession sslsession = new SSLIOSession( iosession, SSLMode.CLIENT, sslcontext, null); iosession.setAttribute(SSLIOSession.SESSION_KEY, sslsession);
@since 4.2