Class ConnectionSSLSessionInfo

  • All Implemented Interfaces:
    SSLSessionInfo

    public class ConnectionSSLSessionInfo
    extends java.lang.Object
    implements SSLSessionInfo
    SSL session information that is read directly from the SSL session of the XNIO connection
    Author:
    Stuart Douglas
    • Constructor Detail

      • ConnectionSSLSessionInfo

        public ConnectionSSLSessionInfo​(org.xnio.channels.SslChannel channel,
                                        HttpServerConnection serverConnection)
    • Method Detail

      • getSessionId

        public byte[] getSessionId()
        Specified by:
        getSessionId in interface SSLSessionInfo
        Returns:
        The SSL session ID, or null if this could not be determined.
      • renegotiate

        public void renegotiate​(HttpServerExchange exchange,
                                org.xnio.SslClientAuthMode sslClientAuthMode)
                         throws java.io.IOException
        Description copied from interface: SSLSessionInfo
        Renegotiate in a blocking manner. This will set the client aut TODO: we also need a non-blocking version
        Specified by:
        renegotiate in interface SSLSessionInfo
        Parameters:
        exchange - The exchange
        sslClientAuthMode - The client cert mode to use when renegotiating
        Throws:
        java.io.IOException
      • getSSLSession

        public javax.net.ssl.SSLSession getSSLSession()
        Specified by:
        getSSLSession in interface SSLSessionInfo
        Returns:
        The SSL session, or null if it is not applicable
      • renegotiateBufferRequest

        public void renegotiateBufferRequest​(HttpServerExchange exchange,
                                             org.xnio.SslClientAuthMode newAuthMode)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • renegotiateNoRequest

        public void renegotiateNoRequest​(HttpServerExchange exchange,
                                         org.xnio.SslClientAuthMode newAuthMode)
                                  throws java.io.IOException
        Throws:
        java.io.IOException