Help with MetadataProvider -> MetadataResolver ?
Brent Putman
putmanb at georgetown.edu
Thu Oct 17 19:30:46 EDT 2013
On 10/17/13 6:47 PM, Tom Zeller wrote:
> 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 ?
Sure, a basic conversion to the new MetadataResolver API that mimics the
above is easy. The entityID on which to query becomes an
EntityIdCriterion, passed in a CriteriaSet to either the resolve or
resolveSingle methods of a MetadataResolver.
For example:
CriteriaSet criteriaSet = new CriteriaSet(new EntityIdCriterion(entityID));
EntityDescriptor descriptor = metadataResolver.resolveSingle(criteriaSet);
There's plenty of examples in the metadata resolver unit tests, for example:
http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/metadata/resolver/impl/FilesystemMetadataResolverTest.java?revision=3450&view=markup
>
> I assume a MetadataFilter is needed ...
No, not for just doing a simple entity query like that. If you want to
transform or otherwise process the metadata on which the metadata
resolver is operating, then you'd use MetadataFilter(s).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20131017/a426f421/attachment.html
More information about the dev
mailing list