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 newScriptModelinstance.prepareEvaluatableScript(ScriptModel scriptModel) Returns anEvaluatableScriptAdapterbased on the givenScriptModel.prepareInvocableScript(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer) Returns anInvocableScriptAdapterbased on the givenScriptModel.
-
Method Details
-
prepareInvocableScript
InvocableScriptAdapter prepareInvocableScript(ScriptModel scriptModel, ScriptBindingsConfigurer bindingsConfigurer) Returns anInvocableScriptAdapterbased on the givenScriptModel.The
InvocableScriptAdapterwraps a dedicatedScriptEnginethat was populated with the providedScriptBindingsConfigurer- Parameters:
scriptModel- the scriptModel to wrapbindingsConfigurer- populates theBindings- Returns:
-
prepareEvaluatableScript
Returns anEvaluatableScriptAdapterbased on the givenScriptModel.The
EvaluatableScriptAdapterwraps a dedicatedScriptEnginethat 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 newScriptModelinstance.- Parameters:
realmId-scriptName-scriptCode-scriptDescription-- Returns:
-