@Override
    public void storeContentChanged( CertificateStore store )
    {
        // Note that all non-SSL listeners can be using TLS - these also need to be restarted.
        for ( final ConnectionListener listener : getListeners() )
        {
            if ( listener.getIdentityStoreConfiguration().equals( store.getConfiguration() ) || listener.getTrustStoreConfiguration().equals( store.getConfiguration() ) )
            {
                try
                {
                    listener.reloadConfiguration();
                }
                catch ( RuntimeException ex )
                {
                    Log.error( "An exception occurred while reloading listener " + listener + ". The reason for the reload was a certificate store change.", ex );
                }
            }
        }
    }
Sets the TCP port on which a listener accepts connections.

@param type The connection type for which a listener is to be configured.
@param startInDirectTlsMode true when the listener to be configured is in Direct TLS mode, otherwise false.
@param port a port number.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/ConnectionManagerImpl.java