<div dir="ltr">Attempting to continue the thread re:
[DEPRECATED:135] - Java class 'com.google.common.base.Predicate'<br><br>First - thank you very much Scott for your time and attention to this issue. Your various points made me realize I should challenge the assumption that the following documented example would throw the DEPRECATED warning:<br><br><a href="https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199506470/CasProtocolConfiguration#:~:text=Relying%20Party%20Override.-,In%20this%20example%2C,-3%20services%20will" target="_blank">https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199506470/CasProtocolConfiguration#:~:text=Relying%20Party%20Override.-,In%20this%20example%2C,-3%20services%20will</a><div><br></div><div>When I placed this example into our relying-party.xml file it did NOT throw the warning. Since the example code is fulfilling the same need that we have, I simply plugged in our relying party domains and everything is now working fine. No deprecation warnings and the services continue to authenticate.</div><div><br></div><div>For those curious here is the old xml and new xml. Likely line 6 of the old code is at the root of the issue but unsure why...<br><br> <!-- This way throws a DEPRECATED WARNING --><br> <!--<br> <bean id="shibboleth.regexRelyingParty" parent="RelyingParty" ><br> <property name="activationCondition" ><br> <bean class="net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate" ><br> <constructor-arg name="pred" ><br> <bean class="com.google.common.base.Predicates" factory-method="or" ><br> <constructor-arg><br> <util:list><br> <bean class="com.google.common.base.Predicates" factory-method="containsPattern" c:_0="https:\/\/(.+\.)?redacted\.com\/.*" /><br> <bean class="com.google.common.base.Predicates" factory-method="containsPattern" c:_0="https:\/\/redacted\.redacted\.edu\/.*" /><br> </util:list><br> </constructor-arg><br> </bean><br> </constructor-arg><br> </bean><br> </property><br> <property name="profileConfigurations"><br> <list><br> <ref bean="CAS.LoginConfiguration" /><br> <ref bean="CAS.ProxyConfiguration" /><br> <bean parent="CAS.ValidateConfiguration" p:userAttribute="email" /><br> </list><br> </property><br> </bean><br> --><br><br> <!-- This way does not throw a DEPRECATED warning and closely matches the documented example --><br> <bean id="shibboleth.regexRelyingParty" parent="RelyingParty"><br> <property name="activationCondition" ><br> <bean parent="shibboleth.Conditions.RelyingPartyId"><br> <constructor-arg name="pred" ><br> <bean parent="shibboleth.Conditions.OR"><br> <constructor-arg><br> <list><br> <bean class="com.google.common.base.Predicates" factory-method="containsPattern"<br> c:_0="https:\/\/(.+\.)?redacted\.com\/.*" /><br> <bean class="com.google.common.base.Predicates" factory-method="containsPattern"<br> c:_0="https:\/\/redacted\.redacted\.edu\/.*" /><br> </list><br> </constructor-arg><br> </bean><br> </constructor-arg><br> </bean><br> </property><br> <property name="profileConfigurations"><br> <list><br> <ref bean="CAS.LoginConfiguration" /><br> <ref bean="CAS.ProxyConfiguration" /><br> <bean parent="CAS.ValidateConfiguration" p:userAttribute="email" /><br> </list><br> </property><br> </bean></div><div><br></div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Feb 9, 2026 at 2:27 PM John Porter <<a href="mailto:jporter2@swarthmore.edu">jporter2@swarthmore.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Greetings all and thanks for any information you can provide. I'm having the toughest time finding a viable alternative to address the following warning:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">WARN [DEPRECATED:135] - Java class 'com.google.common.base.Predicate': This will be removed in the next major version of this software; replacement is java.util.function.Predicate</blockquote><div><br></div><div>We utilize this class just as it is described in the idp 5 documentation here:</div><div><br></div><div><a href="https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199506470/CasProtocolConfiguration#:~:text=Relying%20Party%20Override.-,In%20this%20example%2C,-3%20services%20will" target="_blank">https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199506470/CasProtocolConfiguration#:~:text=Relying%20Party%20Override.-,In%20this%20example%2C,-3%20services%20will</a></div><div><br></div><div>I've attempted switching from this regex method to the Spring Expression method discussed here, but that doesn't seem to play nicely with CAS:<br><br><a href="https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199509766/ActivationConditions#SpecificRelyingParties:~:text=you%20can%20write-,Spring%20Expressions,-%2C%20sort%20of%20a" target="_blank">https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199509766/ActivationConditions#SpecificRelyingParties:~:text=you%20can%20write-,Spring%20Expressions,-%2C%20sort%20of%20a</a></div><div><br></div><div>Hoping someone out there has figured out a simpler way to update the class with minimal changes.</div><div><br></div><div>Thanks for any help you can provide.</div><font color="#888888"><div><br></div><span class="gmail_signature_prefix">--</span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">John Porter<div>Systems Administrator</div><div>Swarthmore College</div><div><a href="mailto:jporter2@swarthmore.edu" target="_blank">jporter2@swarthmore.edu</a></div></div></div></font></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">John Porter<div>Systems Administrator</div><div>Swarthmore College</div><div><a href="mailto:jporter2@swarthmore.edu" target="_blank">jporter2@swarthmore.edu</a></div><div>(610) 690-3878</div></div></div>