Initial Version
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / aaLocal / attributes / eduPersonPrincipalName.java
1 import edu.internet2.middleware.eduPerson.*;
2 import edu.internet2.middleware.shibboleth.Constants; 
3 import org.opensaml.*;
4
5 public class eduPersonPrincipalName extends ScopedAttribute{
6     
7
8     public eduPersonPrincipalName(String[] scopes, Object[] values)
9         throws SAMLException{
10
11         this.super("urn:mace:eduPerson:1.0:eduPersonPrincipalName",
12                    Constants.SHIB_ATTRIBUTE_NAMESPACE_URI, 
13                    new QName("urn:mace:eduPerson:1.0",
14                              "eduPersonPrincipalNameType"),
15                    10*60,
16                    values,
17                    scopes[0],
18                    scopes);
19
20         if(((String)values[0]).indexOf("@") < 0)
21             super.values[0] = (String)values[0]+"@"+scopes[0];
22     }
23 }
24