The Shibboleth IdP V4 software will leave support on September 1, 2024.
ScriptedConsumer
The bean named shibboleth.Consumers.Scripted 4.1 executes a JSR-223 scriptlet to implement an arbitrary Consumer signature.
The bean named shibboleth.BiConsumers.Scripted 4.1 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 (Consumer, BiConsumer) for complete details.
Reference