Added origin site elements.
[java-idp.git] / src / schemas / shibboleth.xsd
1 <?xml version="1.0" encoding="US-ASCII"?>
2 <schema targetNamespace="urn:mace:shibboleth:1.0" xmlns:shib="urn:mace:shibboleth:1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3     <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/>
4     <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
5     
6     <!-- Used by AA in samlp:StatusDetail to signal user wants real-time attribute release. -->
7     <element name="RealTimeReleaseURL" type="anyURI"/>
8     
9     <!--
10     The following SAML sub-status codes are defined in this namespace:
11     
12         "RealTimeRelease"
13             Used with samlp:Responder, signals user wants real-time attribute release
14         
15         "InvalidHandle"
16             Used with samlp:Requester, signals AA did not recognize handle as valid
17     -->
18     
19     <!--
20     Identifies a Shibboleth origin site's name, handle service (w/ optional key),
21     authorized domains it may assert attributes for besides itself, and any WAYF aliases preferred.
22     -->
23     <element name="OriginSite">
24         <complexType>
25             <sequence>
26                 <element name="HandleService" maxOccurs="unbounded">
27                     <complexType>
28                         <sequence>
29                             <element ref="ds:KeyInfo" minOccurs="0"/>
30                         </sequence>
31                         <attribute name="Name" type="string" use="required"/>
32                     </complexType>
33                 </element>
34                 <element name="Domains" type="string" minOccurs="0" maxOccurs="unbounded"/>
35                 <element name="Alias" minOccurs="0" maxOccurs="unbounded">
36                     <complexType>
37                         <simpleContent>
38                             <extension base="string">
39                                 <attribute ref="xml:lang"/>
40                             </extension>
41                         </simpleContent>
42                     </complexType>
43                 </element>
44             </sequence>
45             <attribute name="Name" type="string" use="required"/>
46         </complexType>
47     </element>
48     
49     <!-- The registry of origin sites plus an optional signature. -->
50     <element name="OriginSites">
51         <complexType>
52             <sequence>
53                 <element ref="shib:OriginSite" maxOccurs="unbounded"/>
54                 <element ref="ds:Signature" minOccurs="0"/>
55             </sequence>
56         </complexType>
57     </element>
58 </schema>