use of org.forgerock.openam.scripting.StandardScriptEvaluator in project OpenAM by OpenRock.
the class OidcClaimsExtensionTest method setupScript.
@BeforeClass
public void setupScript() throws Exception {
String rawScript = IOUtils.readStream(this.getClass().getClassLoader().getResourceAsStream("oidc-claims-extension.groovy"));
SupportedScriptingLanguage scriptType = SupportedScriptingLanguage.GROOVY;
this.script = new ScriptObject("oidc-claims-script", rawScript, scriptType, null);
StandardScriptEngineManager scriptEngineManager = new StandardScriptEngineManager();
scriptEngineManager.registerEngineName(SupportedScriptingLanguage.GROOVY_ENGINE_NAME, new GroovyScriptEngineFactory());
scriptEvaluator = new StandardScriptEvaluator(scriptEngineManager);
}
Aggregations