784744e0deb32cff7d2a7a183bee640306f57f3c
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / aaLocal / attributes / eduPersonEntitlement.java
1
2 /**
3  *  Attribute Authority & Release Policy
4  *  A specific class for eduPersonEntitlement attribute
5  *
6  * @author     Parviz Dousti (dousti@cmu.edu)
7  * @created    June, 2002
8  */
9
10 import edu.internet2.middleware.eduPerson.*;
11 import edu.internet2.middleware.shibboleth.common.Constants; 
12 import edu.internet2.middleware.shibboleth.aa.ShibAttribute;
13 import org.opensaml.*;
14
15 public class eduPersonEntitlement implements ShibAttribute{
16     
17
18     public SAMLAttribute toSamlAttribute(String defaultScope, Object[] values)
19         throws SAMLException{
20
21         return new SAMLAttribute("urn:mace:eduPerson:1.0:eduPersonEntitlement",
22                    Constants.SHIB_ATTRIBUTE_NAMESPACE_URI, 
23                    new QName("urn:mace:eduPerson:1.0",
24                              "xsd:anyURI"),
25                                  10*60,
26                                  values);
27
28     }
29 }
30