ScriptedFunction
The bean named shibboleth.Functions.Scripted executes a JSR-223 scriptlet to implement an arbitrary Function signature.
The bean named shibboleth.BiFunctions.Scripted executes a JSR-223 scriptlet to implement an arbitrary BiFunction signature.
Configuration
A Scripted Function 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 (ScriptedFunction, ScriptedBiFunction) for complete details.
Reference