Create parser pool interface and move current pool to an implementation of this inter...
[java-idp.git] / tests / data / attr-mapped.resolver.2.xml
1 <AttributeResolver xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:resolver:1.0" xsi:schemaLocation="urn:mace:shibboleth:resolver:1.0 shibboleth-resolver-1.0.xsd">
2   
3   <!-- A static way to assign entitlements by role -->
4   <MappedAttributeDefinition id="eduPersonEntitlement" sourceName="role"
5     ignoreCase="true"
6     regex="true"
7     defaultValue="urn:edu:utah:wasatch:common">
8
9     <DataConnectorDependency requires="file"/>
10     <ValueMap keyset="guest, prospect[a-z ]*, friends"                  value="urn:edu:utah:wasatch:public"/>
11     <ValueMap keyset="alum, alumni"                                     value="urn:edu:utah:wasatch:attic"/>
12     <ValueMap keyset="employee"                                         value="urn:edu:utah:wasatch:payroll"/>
13     <ValueMap keyset="faculty"                                          value="urn:edu:utah:wasatch:elearning"/>
14     <ValueMap keyset="admin[a-z ]*, [a-z ]*admin"                       value="urn:edu:utah:wasatch:imanage"/>
15     <ValueMap keyset="student"                                          value="urn:edu:utah:wasatch:library"/>
16   </MappedAttributeDefinition>
17
18   <CustomDataConnector id="file"
19     class="edu.internet2.middleware.shibboleth.aa.attrresolv.FileConnector"
20     datafile="data/attr-mapped.datafile.2"/>
21
22 </AttributeResolver>