public static String getSecretForComponent(String subdomain) {
        // By default there is no shared secret defined for the XMPP entity
        String secret = null;

        ExternalComponentConfiguration config = getConfiguration(subdomain, true);
        if (config != null) {
            secret = config.getSecret();
        }

        secret = (secret == null ? getDefaultSecret() : secret);
        if (secret == null) {
            Log.error("Setup for external components is incomplete. Property " +
                    "xmpp.component.defaultSecret does not exist.");
        }
        return secret;
    }
Returns the shared secret with the specified external component. If no shared secret was
defined then use the default shared secret.

@param subdomain the subdomain of the external component to get his shared secret.
       (e.g. conference)
@return the shared secret with the specified external component or the default shared secret.
xmppserver/src/main/java/org/jivesoftware/openfire/component/ExternalComponentManager.java