<p dir="ltr">Thank Brent. It is not actually compiling...I have some knowledge on how to use it in v2. But the same thing how can I achieve in v3 is quite confusing to me:)...</p>
<p dir="ltr">I will look at the criterion implementations to add metadata role and metadata prtocol.</p>
<p dir="ltr">Thanks,<br>
Punit</p>
<div class="gmail_quote">On 06-Jul-2016 9:31 pm, "Brent Putman" <<a href="mailto:putmanb@georgetown.edu">putmanb@georgetown.edu</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="quoted-text">
    <p><br>
    </p>
    <br>
    <div>On 7/6/16 5:56 AM, punit ashra wrote:<br>
    </div>
    <blockquote 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></div>
    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><div class="quoted-text">
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>So, is there other implementation of Criteria instead of
          MetadataCriteria?</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br></div>
    Yes, there are many Criterion implementations in v3.   The various
    Resolver and TrustEngine impls usually define in their Javadocs what
    they accept.<br>
    <br>
  </div>

<br>--<br>
To unsubscribe from this list send an email to <a href="mailto:dev-unsubscribe@shibboleth.net">dev-unsubscribe@shibboleth.net</a><br></blockquote></div>