Package org.keycloak.scripting
Class DefaultScriptingProvider
java.lang.Object
org.keycloak.scripting.DefaultScriptingProvider
- All Implemented Interfaces:
Provider
,ScriptingProvider
- Author:
- Thomas Darimont
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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
.prepareInvocableScript
(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer) Wraps the providedScriptModel
in aInvocable
instance with bindings configured through theScriptBindingsConfigurer
.
-
Method Details
-
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:
-
close
public void close()
-