generating scoped attributes in ad:Script

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

* Cantor, Scott <cantor.2 at> [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(uid.getValues().get(0) + '@' + scope);

Causes: Java constructor for
with arguments "" not found.

More information about the users mailing list