injecting a custom bean into a metadata filter
Tom Scavo
trscavo at gmail.com
Tue Jul 3 13:35:45 EDT 2018
For Rod mainly---
I have two questions about the regex example you added to the
Predicate [1] metadata filter topic:
<bean id="the.Metadata.regexp.Pred"
class="net.shibboleth.utilities.java.support.logic.RegexPredicate"
c:_0="^.*sp1.*" />
<bean id="the.Metadata.Pred"
class="net.shibboleth.ext.spring.util.SpringExpressionPredicate"
p:customObject-ref="the.Metadata.regexp.Pred"
c:expression="#custom.apply(#input.getEntityID())" />
1. Where should I put the beans? Inside a metadata provider like any
other metadata filter?
2. Assuming the answer to the previous question is yes, why not
replace the second bean with
<MetadataFilter xsi:type="Predicate" direction="include"
removeEmptyEntitiesDescriptors="true">
<ConditionScript customObjectRef="the.Metadata.regexp.Pred">
<Script>
<![CDATA[
custom.apply(input.getEntityID());
]]>
</Script>
</ConditionScript>
</MetadataFilter>
Thanks,
Tom
[1] Predicate https://wiki.shibboleth.net/confluence/x/aAAzAQ
More information about the dev
mailing list