- private Multimap<OwnIdentity, Identity> loadTrustedIdentitiesForOwnIdentities(Collection<OwnIdentity> ownIdentities) throws PluginException {
- Multimap<OwnIdentity, Identity> currentIdentities = create();
-
- for (OwnIdentity ownIdentity : ownIdentities) {
- if ((context != null) && !ownIdentity.hasContext(context)) {
- continue;
- }
-
- logger.finer(String.format("Getting trusted identities for %s...", ownIdentity.getId()));
- Set<Identity> trustedIdentities = webOfTrustConnector.loadTrustedIdentities(ownIdentity, context);
- logger.finest(String.format("Got %d trusted identities.", trustedIdentities.size()));
- currentIdentities.putAll(ownIdentity, trustedIdentities);
- }
-
- return currentIdentities;
- }
-