Class ConnectionContext

    • Constructor Detail

      • ConnectionContext

        public ConnectionContext​(Socket socket,
                                 Address address,
                                 boolean ssl,
                                 SSLSession sslSession)
    • Method Detail

      • getSocket

        public Socket getSocket()
        The network socket. Can be an SSLSocket.
        Returns:
      • getAddress

        public Address getAddress()
        The address (hostname and port) used for connecting.
        Returns:
      • isSsl

        public boolean isSsl()
        Whether this is a SSL/TLS connection.
        Returns:
      • getSslSession

        public SSLSession getSslSession()
        The SSLSession for a TLS connection, null otherwise.
        Returns: