Package org.keycloak.scripting
Interface ScriptingProvider
-
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultScriptingProvider
public interface ScriptingProvider extends Provider
AProvider
than provides Scripting capabilities.- Author:
- Thomas Darimont
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScriptModel
createScript(String realmId, String mimeType, String scriptName, String scriptCode, String scriptDescription)
Creates a newScriptModel
instance.EvaluatableScriptAdapter
prepareEvaluatableScript(ScriptModel scriptModel)
Returns anEvaluatableScriptAdapter
based on the givenScriptModel
.InvocableScriptAdapter
prepareInvocableScript(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer)
Returns anInvocableScriptAdapter
based on the givenScriptModel
.
-
-
-
Method Detail
-
prepareInvocableScript
InvocableScriptAdapter prepareInvocableScript(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer)
Returns anInvocableScriptAdapter
based on the givenScriptModel
.The
InvocableScriptAdapter
wraps a dedicatedScriptEngine
that was populated with the providedScriptBindingsConfigurer
- Parameters:
scriptModel
- the scriptModel to wrapbindingsConfigurer
- populates theBindings
- Returns:
-
prepareEvaluatableScript
EvaluatableScriptAdapter prepareEvaluatableScript(ScriptModel scriptModel)
Returns anEvaluatableScriptAdapter
based on the givenScriptModel
.The
EvaluatableScriptAdapter
wraps a dedicatedScriptEngine
that was populated with empty bindings.- Parameters:
scriptModel
- the scriptModel to wrap
-
createScript
ScriptModel createScript(String realmId, String mimeType, String scriptName, String scriptCode, String scriptDescription)
Creates a newScriptModel
instance.- Parameters:
realmId
-scriptName
-scriptCode
-scriptDescription
-- Returns:
-
-