public static String map(String authcid) {
        for (AuthorizationMapping am : authorizationMapping) {
            Log.trace("Trying if AuthorizationMapping {} provides an authzid that is different from the provided authcid {}", am.name(), authcid);
            String authzid = am.map(authcid);
            if(!authzid.equals(authcid)) {
                Log.trace("AuthorizationMapping {} provided an authzid {} for the provided authcid {}", am.name(), authzid, authcid);
                return authzid;
            }
        }
        return authcid;
    }
Map the authenticated username (authcid, principal) to the username to act as (authzid).

If the authenticated username did not supply a username to act as, determine the default to use.

@param authcid authentication identity (identity whose password will be used), for which to determine the username to act as (authzid).
@return The username to act as (authzid) for the provided authentication identity.
xmppserver/src/main/java/org/jivesoftware/openfire/auth/AuthorizationManager.java