Regarding MetadataProvider Interface in OpenSAMLv3
Brent Putman
putmanb at georgetown.edu
Wed Jul 6 12:01:20 EDT 2016
On 7/6/16 5:56 AM, punit ashra wrote:
>
>
>
> I had a query on this when i was trying to add Metadata Role and
> Metadata Protocol, which can be done using MetadataCriteria
>
> net.shibboleth.utilities.java.support.resolver.CriteriaSet
> criteriaSet = new
> net.shibboleth.utilities.java.support.resolver.CriteriaSet();
> criteriaSet.add(new
> MetadataCriteria(IDPSSODescriptor.DEFAULT_ELEMENT_NAME,SAMLConstants.SAML20P_NS));
> criteriaSet.add(new EntityIdCriterion(metaData.getEntityId()));
>
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.
> So, is there other implementation of Criteria instead of
> MetadataCriteria?
>
Yes, there are many Criterion implementations in v3. The various
Resolver and TrustEngine impls usually define in their Javadocs what
they accept.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20160706/c5263fa8/attachment.html>
More information about the dev
mailing list