public void setClientAuth( Connection.ClientAuth clientAuth )
    {
        final Connection.ClientAuth oldValue = getClientAuth();
        if ( oldValue.equals( clientAuth ) )
        {
            Log.debug( "Ignoring client auth configuration change request (to '{}'): listener already in this state.", clientAuth );
            return;
        }
        Log.debug( "Changing client auth configuration from '{}' to '{}'.", oldValue, clientAuth );
        JiveGlobals.setProperty( clientAuthPolicyPropertyName, clientAuth.toString() );
        restart();
    }
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