ScriptedConsumer
The bean named shibboleth.Consumers.Scripted executes a JSR-223 scriptlet to implement an arbitrary Consumer signature.
The bean named shibboleth.BiConsumers.Scripted executes a JSR-223 scriptlet to implement an arbitrary BiConsumer signature.
Configuration
A Scripted Consumer 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 (ScriptedConsumer, ScriptedBiConsumer) for complete details.
Reference