generating scoped attributes in ad:Script

Peter Schober peter.schober at univie.ac.at
Thu Feb 21 20:42:52 EST 2013


* Cantor, Scott <cantor.2 at osu.edu> [2013-02-22 02:19]:
> >  java.lang.ClassCastException: java.lang.String cannot be cast to
> >  
> >edu.internet2.middleware.shibboleth.common.attribute.provider.ScopedAttrib
> >uteValue
> 
> The values added to the object would need to be of that type, but I don't
> know the syntax for doing that. Does using "new ScopedAttributeValue()"
> and then adding that to the BasicAttribute values collection work?

I may be doing it wrong:

    var eduPersonPrincipalName = new BasicAttribute("eduPersonPrincipalName");
    var Scope = new ScopedAttributeValue();
    eduPersonPrincipalName.getValues().add(Scope);
    eduPersonPrincipalName.getValues().add(uid.getValues().get(0) + '@' + scope);

Causes:
sun.org.mozilla.javascript.EvaluatorException: Java constructor for
"edu.internet2.middleware.shibboleth.common.attribute.provider.ScopedAttributeValue"
with arguments "" not found.
-peter


More information about the users mailing list