<div dir="ltr"><div><div><div><div>Peter, hello and thank you very much for taking the time to respond!,<br><br></div>Unfortunately you are referring to V3 and I'm still using V2. So, IdPV2 and Java8, the tag team from hell :)<br><br></div>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. <br><br></div><div>Any comments welcome of course.<br></div><div><br></div>Best regards,<br></div>Athanasios<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 29, 2015 at 7:26 PM, Peter Schober <span dir="ltr"><<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Peter Schober <<a href="mailto:peter.schober@univie.ac.at">peter.schober@univie.ac.at</a>> [2015-10-29 18:21]:<br>
<span class="">> * Peter Schober <<a href="mailto:peter.schober@univie.ac.at">peter.schober@univie.ac.at</a>> [2015-10-29 18:19]:<br>
> > That doesn't do anything other than (for an attribute definition with<br>
> > id="Foo") Foo.addValue() either and worked fine for me.<br>
><br>
> The difference is I call addValue() whereas you are calling<br>
> getValues() when there can't be any yet as per your code, AFAIU.<br>
<br>
</span>Hm, in your case getValues() should return an empty collection, to<br>
which you should be able to add string values per the docs?<br>
Either way, I think your testing.getValues().add("whatever") should<br>
just be testing.addValue("whatever") and that should work.<br>
<div class="HOEnZb"><div class="h5">-peter<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Athanasios Douitsis<br><br><br></div>
</div>