<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 7/6/16 5:56 AM, punit ashra wrote:<br>
    </div>
    <blockquote
cite="mid:CAGxGTNdaas6zARWFKrW7Zr7Lwa+A1yhG6QqP2sj3+fkgMubXvA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <br>
        <div><br>
        </div>
        <div>
          <div>I had a query on this when i was trying to add Metadata
            Role and Metadata Protocol, which can be done using
            MetadataCriteria </div>
          <div><br>
          </div>
          <div>net.shibboleth.utilities.java.support.resolver.CriteriaSet
            criteriaSet = new
            net.shibboleth.utilities.java.support.resolver.CriteriaSet();</div>
          <div>criteriaSet.add(new
MetadataCriteria(IDPSSODescriptor.DEFAULT_ELEMENT_NAME,SAMLConstants.SAML20P_NS));</div>
          <div>criteriaSet.add(new
            EntityIdCriterion(metaData.getEntityId()));</div>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    That isn't going to work, the v3 resolvers don't "understand"
    MetadataCriteria.  In fact, I'm not sure how you're even achieving
    compilable code that way, since MetadataCriteria doesn't exist in
    v3.  I think you must be mixing up v2 and v3 dependencies or
    something like that.  <br>
    <br>
    <blockquote
cite="mid:CAGxGTNdaas6zARWFKrW7Zr7Lwa+A1yhG6QqP2sj3+fkgMubXvA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>So, is there other implementation of Criteria instead of
          MetadataCriteria?</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    Yes, there are many Criterion implementations in v3.   The various
    Resolver and TrustEngine impls usually define in their Javadocs what
    they accept.<br>
    <br>
  </body>
</html>