Package org.keycloak.scripting
Class DefaultScriptingProvider
- java.lang.Object
-
- org.keycloak.scripting.DefaultScriptingProvider
-
- All Implemented Interfaces:
Provider
,ScriptingProvider
public class DefaultScriptingProvider extends Object implements ScriptingProvider
- Author:
- Thomas Darimont
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ScriptModel
createScript(String realmId, String mimeType, String scriptName, String scriptCode, String scriptDescription)
Creates a newScriptModel
instance.org.keycloak.scripting.AbstractEvaluatableScriptAdapter
prepareEvaluatableScript(ScriptModel scriptModel)
Wraps the providedScriptModel
in aInvocable
instance with bindings configured through theScriptBindingsConfigurer
.InvocableScriptAdapter
prepareInvocableScript(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer)
Wraps the providedScriptModel
in aInvocable
instance with bindings configured through theScriptBindingsConfigurer
.
-
-
-
Method Detail
-
prepareInvocableScript
public InvocableScriptAdapter prepareInvocableScript(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer)
Wraps the providedScriptModel
in aInvocable
instance with bindings configured through theScriptBindingsConfigurer
.- Specified by:
prepareInvocableScript
in interfaceScriptingProvider
- Parameters:
scriptModel
- must not be nullbindingsConfigurer
- must not be null- Returns:
-
prepareEvaluatableScript
public org.keycloak.scripting.AbstractEvaluatableScriptAdapter prepareEvaluatableScript(ScriptModel scriptModel)
Wraps the providedScriptModel
in aInvocable
instance with bindings configured through theScriptBindingsConfigurer
.- Specified by:
prepareEvaluatableScript
in interfaceScriptingProvider
- Parameters:
scriptModel
- must not be null
-
createScript
public ScriptModel createScript(String realmId, String mimeType, String scriptName, String scriptCode, String scriptDescription)
Description copied from interface:ScriptingProvider
Creates a newScriptModel
instance.- Specified by:
createScript
in interfaceScriptingProvider
- Returns:
-
-