--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>Simplest possible ARP.</Description>
+ <Rule>
+ <Target>
+ <AnyTarget/>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <AnyValue release="permit"/>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>Any Target. One attribute any value. Another attribute with one value.</Description>
+ <Rule>
+ <Target>
+ <AnyTarget/>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonPrincipalName">
+ <AnyValue release="permit"/>
+ </Attribute>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="permit">member@example.edu</Value>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>A specific SHAR and resource.</Description>
+ <Rule>
+ <Target>
+ <Requester>shar.example.edu</Requester>
+ <Resource>http://www.example.edu/</Resource>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonPrincipalName">
+ <AnyValue release="permit"/>
+ </Attribute>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="permit">member@example.edu</Value>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>A specific SHAR and resource. A local attribute with one value and a reference to a shared attribute with one value.</Description>
+ <Rule>
+ <Target>
+ <Requester>shar.example.edu</Requester>
+ <Resource>http://www.example.edu/</Resource>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="permit">member@example.edu</Value>
+ </Attribute>
+ <AttributeReference identifier="http://example.edu/attributes/attribute1"/>
+ </Rule>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation" identifier="http://example.edu/attributes/attribute1">
+ <Value release="permit">student@example.edu</Value>
+ </Attribute>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>Any Target. One attribute with one value.</Description>
+ <Rule>
+ <Target>
+ <AnyTarget/>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <AnyValue release="permit"/>
+ <Value release="deny">faculty@example.edu</Value>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>Any Target. One attribute with no values.</Description>
+ <Rule>
+ <Target>
+ <AnyTarget/>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <AnyValue release="deny"/>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>A specific SHAR and a regex resource.</Description>
+ <Rule>
+ <Target>
+ <Requester>shar.example.edu</Requester>
+ <Resource matchFunction="urn:mace:shibboleth:arp:matchFunction:regexMatch">^https?://.+\.example\.edu/.*$</Resource>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonPrincipalName">
+ <AnyValue release="permit"/>
+ </Attribute>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="permit">member@example.edu</Value>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>A regex SHAR and a regex resource.</Description>
+ <Rule>
+ <Target>
+ <Requester matchFunction="urn:mace:shibboleth:arp:matchFunction:regexMatch">shar[1-9]\.example\.edu</Requester>
+ <Resource matchFunction="urn:mace:shibboleth:arp:matchFunction:regexMatch">^https?://.+\.example\.edu/.*$</Resource>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonPrincipalName">
+ <AnyValue release="permit"/>
+ </Attribute>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="permit">member@example.edu</Value>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
+ <Description>Combining a few Rules that might apply to the same target.</Description>
+ <Rule>
+ <Target>
+ <AnyTarget/>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="permit">member@example.edu</Value>
+ </Attribute>
+ </Rule>
+ <Rule>
+ <Target>
+ <Requester matchFunction="urn:mace:shibboleth:arp:matchFunction:regexMatch">shar[1-9]\.example\.edu</Requester>
+ <Resource matchFunction="urn:mace:shibboleth:arp:matchFunction:regexMatch">^https?://.+\.example\.edu/.*$</Resource>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="permit">faculty@example.edu</Value>
+ </Attribute>
+ </Rule>
+ <Rule>
+ <Target>
+ <Requester>shar.example.edu</Requester>
+ <Resource>http://www.example.edu/example1/</Resource>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <Value release="deny">faculty@example.edu</Value>
+ </Attribute>
+ </Rule>
+ <Rule>
+ <Target>
+ <Requester>shar.example.edu</Requester>
+ <Resource>http://www.example.edu/example2/</Resource>
+ </Target>
+ <Attribute name="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+ <AnyValue release="permit"/>
+ </Attribute>
+ </Rule>
+</AttributeReleasePolicy>
parser.setEntityResolver(new EntityResolver() {
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException {
- InputStream stream;
- try {
- stream = new FileInputStream("src/schemas/ARP.xsd");
- if (stream != null) {
- return new InputSource(stream);
+
+ if (systemId.endsWith("shibboleth-arp-1.0.xsd")) {
+ InputStream stream;
+ try {
+ stream = new FileInputStream("src/schemas/shibboleth-arp-1.0.xsd");
+ if (stream != null) {
+ return new InputSource(stream);
+ }
+ throw new SAXException("Could not load entity: Null input stream");
+ } catch (FileNotFoundException e) {
+ throw new SAXException("Could not load entity: " + e);
}
- throw new SAXException("Could not load entity: Null input stream");
- } catch (FileNotFoundException e) {
- throw new SAXException("Could not load entity: " + e);
+ } else {
+ return null;
}
}
});
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <Requester>shar.example.edu</Requester>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <Requester>shar.example.edu</Requester>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <Requester>shar.example.edu</Requester>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <Requester>shar.example.edu</Requester>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <Requester>shar.example.edu</Requester>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget />"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawSiteArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
String rawUserArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
//Gather the Input
String rawSiteArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
String rawUserArp =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"ARP.xsd\">"
+ + "<AttributeReleasePolicy xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mace:shibboleth:arp:1.0\" xsi:schemaLocation=\"urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd\">"
+ " <Rule>"
+ " <Target>"
+ " <AnyTarget/>"
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by Test (Test) -->
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+<xs:schema targetNamespace="urn:mace:shibboleth:arp:1.0" xmlns:arp="urn:mace:shibboleth:arp:1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:simpleType name="RequireType">
<xs:restriction base="xs:string">
<xs:enumeration value="deny"/>
<xs:sequence>
<xs:element name="AnyValue" minOccurs="0">
<xs:complexType>
- <xs:attribute name="release" type="RequireType" use="required"/>
+ <xs:attribute name="release" type="arp:RequireType" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Value" minOccurs="0" maxOccurs="unbounded">
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="matchFunction" type="xs:anyURI" default="urn:mace:shibboleth:arp:matchFunction:stringValue"/>
- <xs:attribute name="release" type="RequireType" use="required"/>
+ <xs:attribute name="release" type="arp:RequireType" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:sequence>
- <xs:element name="Attribute" type="AttributeType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Attribute" type="arp:AttributeType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="AttributeReference" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="identifier" type="xs:anyURI" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
- <xs:element name="Attribute" type="AttributeType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Attribute" type="arp:AttributeType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<?xml version="1.0" encoding="UTF-8"?>
-<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ARP.xsd">
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
<Description>Simplest possible ARP.</Description>
<Rule>
<Description>Example Rule Description.</Description>
<?xml version="1.0" encoding="UTF-8"?>
-<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ARP.xsd">
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
<Rule>
<Target>
<AnyTarget/>
<?xml version="1.0" encoding="UTF-8"?>
-<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ARP.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
<Description>Any Target. One attribute with no values.</Description>
<Rule>
<Target>
<?xml version="1.0" encoding="UTF-8"?>
-<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ARP.xsd">
+<AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
<Description>A specific SHAR and a regex resource.</Description>
<Rule>
<Target>