Fixed a bug with value type.
[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.shibboleth.common.Constants; 
11 import edu.internet2.middleware.shibboleth.aa.ShibAttribute;
12 import org.opensaml.*;
13
14 public class eduPersonEntitlement implements ShibAttribute{
15     
16
17     public SAMLAttribute toSamlAttribute(String defaultScope, Object[] values)
18         throws SAMLException{
19
20         return new SAMLAttribute("urn:mace:eduPerson:1.0:eduPersonEntitlement",
21                                  Constants.SHIB_ATTRIBUTE_NAMESPACE_URI, 
22                                  new QName(org.opensaml.XML.XSD_NS,"anyURI"),
23                                  10*60,
24                                  values);
25
26     }
27 }
28