Package org.keycloak.scripting
Interface ScriptingProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultScriptingProvider
A
Provider
than provides Scripting capabilities.- Author:
- Thomas Darimont
-
Method Summary
Modifier and TypeMethodDescriptioncreateScript
(String realmId, String mimeType, String scriptName, String scriptCode, String scriptDescription) Creates a newScriptModel
instance.prepareEvaluatableScript
(ScriptModel scriptModel) Returns anEvaluatableScriptAdapter
based on the givenScriptModel
.prepareInvocableScript
(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer) Returns anInvocableScriptAdapter
based on the givenScriptModel
.
-
Method Details
-
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
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:
-