/** * Get the list of resolver role descriptors which match the given entityID, role and protocol. * * @param criteriaSet the criteria set being processed * @param entityID entity ID of the resolver entity descriptor to resolve * @param role role in which the entity is operating * @param protocol protocol over which the entity is operating (may be null) * @return a list of role descriptors matching the given parameters, or null * @throws ResolverException thrown if there is an error retrieving role descriptors from the resolver provider */ protected Iterable<RoleDescriptor> getRoleDescriptors(final CriteriaSet criteriaSet, final String entityID, final QName role, final String protocol) throws ResolverException { try { if (log.isDebugEnabled()) { log.debug("Retrieving role descriptor metadata for entity '{}' in role '{}' for protocol '{}'", new Object[] {entityID, role, protocol}); } return getRoleDescriptorResolver().resolve(criteriaSet); } catch (final ResolverException e) { log.error("Unable to resolve information from metadata", e); throw new ResolverException("Unable to resolve unformation from metadata", e); } }
return getRoleDescriptorResolver().resolve(criteria);