log.debug("Found principals for RUT user '{}': '{}' from realms '{}'", rutUserId, principals,
principals.getRealmNames());
// make RUT the primary one, but keep all the found ones too
final SimplePrincipalCollection principalCollection = new SimplePrincipalCollection(token.getPrincipal(), getName());
principalCollection.addAll(principals);
return new SimpleAuthenticationInfo(principalCollection, null);
}
log.debug("No found principals for RUT user '{}'", rutUserId);
return null;
}