protected Connection.ClientAuth getDefaultClientAuth()
    {
        // While SASL EXTERNAL is rarely used for clients, it is commonly used in S2S. It should be enabled by default for S2S, but not for C2S. (OF-2521)
        if ( Arrays.asList( ConnectionType.SOCKET_S2S ).contains( getType() ) ) {
            return Connection.ClientAuth.wanted;
        } else {
            return Connection.ClientAuth.disabled;
        }
    }
Changes the TCP port on which connections are accepted, This configuration change is persisted.

If the listener is currently enabled, this configuration change will be applied immediately (which will cause a
restart of the underlying connection acceptor).

An invocation of this method has no effect if the new port value is equal to the existing value.

@param port A port number.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/ConnectionListener.java