void closeNeverEncryptedConnection() {
        // Send a stream error and close the underlying connection.
        connection.close(new StreamError(StreamError.Condition.not_authorized, "TLS is mandatory, but was not established."));
        // Log a warning so that admins can track this case from the server side
        Log.warn("TLS was required by the server and connection was never secured. Closing connection: {}", connection);
    }
Close the connection since TLS was mandatory and the entity never negotiated TLS. Before
closing the connection a stream error will be sent to the entity.
xmppserver/src/main/java/org/jivesoftware/openfire/net/SocketReader.java