AttributePredicate Syntax
Cantor, Scott
cantor.2 at osu.edu
Tue Feb 9 20:38:22 EST 2016
> Yes, I meant within SWF and associated beans. I had seen the constructor
> you referred to in the previous email, but wasn’t sure how to inject that sort
> of thing into the Predicate.
You wire up a composition of functions using Google's Functions class and the compose factory-method.
There are two beans already defined that do child lookup of AuthenticationContext and AttributeContext (see utilities.xml):
shibboleth.ChildLookup.AuthenticationContext
shibboleth.ChildLookup.AttributeContext
You wrap those as the two constructor arguments to the compose method.
Totally untested, but I think you could do:
<bean class="com.google.common.base.Functions" factory-method="compose"
c:g-ref="shibboleth.ChildLookup.AttributeContext"
c:f-ref=" shibboleth.ChildLookup.AuthenticationContext" />
The best examples of this wiring are in audit-system.xml.
-- Scott
More information about the users
mailing list