ScriptedBiPredicate
The predicate bean named shibboleth.BiConditions.Scripted executes a JSR-223 scriptlet against 2 arbitrary inputs to produce a true/false result.
Configuration
A Scripted BiPredicate is instantiated using one of two static factory methods (rather than created directly by invoking a Java constructor), so they have a different syntax in Spring. You can refer to the javadoc for complete details.
Reference