aacli Scripted attribute

Cantor, Scott cantor.2 at osu.edu
Fri Oct 30 00:22:05 EDT 2015


On 10/29/15, 6:43 PM, "users on behalf of Athanasios Douitsis" <users-bounces at shibboleth.net on behalf of aduitsis at gmail.com> wrote:



>I was able to make a very rudimentary example work. I used a static connector with e.g. attribute testing=dummy and then used a script connector that just did something to testing, like testing.getValues().add("whatever"). There is also the clear method which
> could eliminate the dummy value. As far as I can tell from the wiki, for V2 and Java8 there is no way around the static connector, i.e. one cannot initialize a new attribute from inside the script. So the attribute must come from outside, hence the static connector.

There is one easy way: use Rhino. I plan to drop Rhino jars into my Java 8 deployment when I do that upgrade, which I'm planning to do fairly soon.

Not really seeing any big win from using Nashorn at this point myself.

-- Scott



More information about the users mailing list