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.
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.
If provided with one parameter, this is the script to be executed. If two parameters are the provided, then the first is the name of the (installed) JSR-223 lanuage and the second is the script.
|
If provided with one parameter this is the location (usually the file name) of the resource (file) containing the script. If two parameters are provided, the the first is the name of the (installed) JSR-223 lanuage and the second is the location.
|
The following additional bean properties are available:
|
For the Consumer variant, the script environment will have these variables populated:
For the BiConsumer variant, the script environment will have these variables populated:
|