Regarding MetadataProvider Interface in OpenSAMLv3

punit ashra punitashra at gmail.com
Wed Jul 6 12:06:30 EDT 2016


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:)...

I will look at the criterion implementations to add metadata role and
metadata prtocol.

Thanks,
Punit
On 06-Jul-2016 9:31 pm, "Brent Putman" <putmanb at georgetown.edu> wrote:



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.


--
To unsubscribe from this list send an email to
dev-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20160706/0e0e83b6/attachment.html>


More information about the dev mailing list