public static void setDefaultSecret(String defaultSecret) throws ModificationNotAllowedException {
        // Alert listeners about this event
        for (ExternalComponentManagerListener listener : listeners) {
            try {
                listener.defaultSecretChanged(defaultSecret);
            } catch (Exception e) {
                Log.warn("An exception occurred while dispatching a 'defaultSecretChanged' event!", e);
            }
        }
        JiveGlobals.setProperty("xmpp.component.defaultSecret", defaultSecret);
    }
Sets the default secret key to use for those external components that don't have an
individual configuration.

@param defaultSecret the default secret key to use for those external components that
        don't have an individual configuration.
@throws ModificationNotAllowedException if the operation was denied.
xmppserver/src/main/java/org/jivesoftware/openfire/component/ExternalComponentManager.java