<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 10/17/13 6:47 PM, Tom Zeller wrote:<br>
    </div>
    <blockquote
cite="mid:CAMNmQDQUD1-tavkTBmSRTRyfTXivoCQx2O7EGSKjvYX6aeQx4Q@mail.gmail.com"
      type="cite">
      <pre wrap="">Brent,

When you have time could you clue me on to a test or something that
will help me convert

 metadataProvider.getEntityDescriptor(relyingPartyId);

to the new MetadataResolver, please ?</pre>
    </blockquote>
    <br>
    <br>
    Sure, a basic conversion to the new MetadataResolver API that mimics
    the above is easy.&nbsp; The entityID on which to query becomes an
    EntityIdCriterion, passed in a CriteriaSet to either the resolve or
    resolveSingle methods of a MetadataResolver.<br>
    <br>
    For example:<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    CriteriaSet criteriaSet =
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    new CriteriaSet(new EntityIdCriterion(entityID));<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    EntityDescriptor descriptor =
    metadataResolver.resolveSingle(criteriaSet);<br>
    <br>
    There's plenty of examples in the metadata resolver unit tests, for
    example:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FilesystemMetadataResolverTest.java?revision=3450&amp;view=markup">http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FilesystemMetadataResolverTest.java?revision=3450&amp;view=markup</a><br>
    <br>
    <br>
    <blockquote
cite="mid:CAMNmQDQUD1-tavkTBmSRTRyfTXivoCQx2O7EGSKjvYX6aeQx4Q@mail.gmail.com"
      type="cite">
      <pre wrap="">

I assume a MetadataFilter is needed ...
</pre>
    </blockquote>
    <br>
    No, not for just doing a simple entity query like that.&nbsp; If you want
    to transform or otherwise process the metadata on which the metadata
    resolver is operating, then you'd use MetadataFilter(s).<br>
    <br>
    <br>
  </body>
</html>