Looking up Entity Category's
Cantor, Scott
cantor.2 at osu.edu
Tue Jul 18 12:04:38 EDT 2017
On 7/18/17, 11:55 AM, "users on behalf of Rhian Resnick" <users-bounces at shibboleth.net on behalf of rresnick at fau.edu> wrote:
> Spinning off my previous conversation is it possible to retrieve the value of an entity category in a scripted attribute? I haven't
> found reference to these in javascript within the documentation.
They're inside the metadata, which is below a complex structure of contexts that's accessible via RelyingPartyContext.getRelyingPartyContextTree. That returns a SAMLPeerEntityContext, below which is normally a SAMLMetadataContext that will contain the metadata for the SP. From there it's a process of navigating the metadata structure to the extension content and the objects implementing that extension.
There are various functions and classes that illustrate some of that, mostly org.opensaml.saml.common.profile.logic.EntityAttributesPredicate for the final "mile".
Realistically if I was doing it, I'd be wiring up Spring objects to actually drive an instance of EntityAttributesPredicate and run it against the EntityDescriptor so I didn't have to reimplement that in a script.
-- Scott
More information about the users
mailing list