public interface Script extends Scope
CompiledScript
Modifier and Type | Method and Description |
---|---|
Object |
eval()
Executes the program stored in the
Script object. |
Object |
eval(Bindings bindings)
Executes the program stored in the
Script object using the
supplied Bindings of attributes as the ENGINE_SCOPE of the associated
ScriptEngine during script execution. |
void |
putSafe(String key,
Object value)
Sets a key/value pair in the state of the Request that may either create
a Thread-Safe Java Language Binding to be used in the execution of
scripts or be used in some other way, depending on whether the key is
reserved.
|
createBindings, flush, get, getBindings, put, setBindings
void putSafe(String key, Object value)
Scope.put(String, Object)
suppress the
value with the same key.key
- The name of named value to addvalue
- The value of named value to add.NullPointerException
- if key is null.IllegalArgumentException
- if key is empty.Object eval(Bindings bindings) throws ScriptException
Script
object using the
supplied Bindings of attributes as the ENGINE_SCOPE of the associated
ScriptEngine during script execution.bindings
- The bindings of attributes used for the ENGINE_SCOPE.ScriptException
- if an exception occurred during execution of the script.Object eval() throws ScriptException
Script
object.ScriptException
- if an exception occurred during execution of the script.Copyright © 2025 Open Identity Platform Community. All rights reserved.