Module 
Package org.xnio.ssl

Class SslConnection

    • Constructor Detail

      • SslConnection

        protected SslConnection​(XnioIoThread thread)
        Construct a new instance.
        Parameters:
        thread - the I/O thread of this connection
    • Method Detail

      • startHandshake

        public abstract void startHandshake()
                                     throws java.io.IOException
        Start or restart the SSL/TLS handshake. To force a complete SSL/TLS session renegotiation, the current session should be invalidated prior to calling this method. This method is not needed for the initial handshake unless the Options.SSL_STARTTLS option is set as sending or receiving over the channel will automatically initiate it. This method must not be called while a read or write operation is taking place.
        Specified by:
        startHandshake in interface SslChannel
        Throws:
        java.io.IOException - if an I/O error occurs
      • getSslSession

        public abstract javax.net.ssl.SSLSession getSslSession()
        Get the current SSLSession for this channel.
        Specified by:
        getSslSession in interface SslChannel
        Returns:
        the current SSLSession