...
The default scripting language is JavaScript (language=”javascript”
). Therefore all of the sample scripts are written in JavaScript, which is based on the ECMAScript standard. The following table illustrates the relationship between JRE version and ECMAScript version:
...
Java Version
...
Default Script Engine
...
ECMAScript Version
...
Java 11+
...
Nashorn
...
ECMAScript 5.1 (plus some features of ECMAScript 2015 aka ECMAScript 6)
...
Java 15+
...
None
...
As the IdP requires Java versions new enough that no scripting engines are provided, it is required to install one of the plugins provided by the project to supply either a Nashorn or Rhino engine to implement the default language (or in theory an entirely different implementation of a different language).
Info |
---|
Nashorn documentation from OracleAn introduction to Nashorn from Oracle: Part 1: Introducing JavaScript, ECMAScript, and Nashorn |
...
Info |
---|
Still using Rhino?Consult the Rhino Migration Guide for helpful advice . Alternatively consider using the Rhino Scripting plugin (IdP Versions 4.1 and later) |
...
if you’d like to move off of it. |
Since Nashorn has largely superseded Rhino due to its earlier inclusion with Java 8, the sample scripts aim to conform to ECMAScript 5.1. In particular, the scripts avoid features introduced in ECMAScript 6 (also known as ECMAScript 2015) for compatibility.
...