<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 5/23/17 12:48 PM, Rob Audenaerde
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPz8bx3ehruXVxTr=uoGgiq8ALRQB2QZuxwf3okpO1N-ewk9tg@mail.gmail.com">
      <div dir="ltr">Ah I see. Thanks!
        <div><br>
        </div>
      </div>
    </blockquote>
    Great.<br>
    <br>
    <blockquote type="cite"
cite="mid:CAPz8bx3ehruXVxTr=uoGgiq8ALRQB2QZuxwf3okpO1N-ewk9tg@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>for
            ( EntityDescriptor idpEntityDescriptor : idpMetaDataProvider
            )</div>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>{</div>
                              ...........<br>
          <div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>}</div>
        </div>
      </div>
      <br>
    </blockquote>
    <br>
    Yes, you can do that with a batch metadata resolver, since it
    implements Iterable<EntityDescriptor>.   That might be typical
    for a discovery service, etc.<br>
    <br>
    However, just FYI, that's not how one would typically use a metadata
    resolver in an IdP or SP scenario.  You'd use one of the resolve
    methods + a CriteriaSet to resolve the entity(ies) that you wanted,
    based on the criteria you supply.  Usually that's just entityID, so
    that case is pretty simple.<br>
    <br>
    What you are *usually* interested in for SSO though is actually
    finding the right RoleDescriptor for the peer with which you are
    communicating. There is a similar RoleDescriptorResolver abstraction
    for that.  The impl that we have of that simply wraps a
    MetadataResolver, passing the supplied criteria through.<br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>