https://issues.shibboleth.net/jira/browse/SSPCPP-332
[shibboleth/cpp-sp.git] / schemas / shibboleth-2.0-native-sp-config.xsd
1 <?xml version="1.0" encoding="US-ASCII"?>
2 <schema targetNamespace="urn:mace:shibboleth:2.0:native:sp:config"
3         xmlns="http://www.w3.org/2001/XMLSchema"
4         xmlns:conf="urn:mace:shibboleth:2.0:native:sp:config"
5   xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
6         xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
7         xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
8         xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
9         elementFormDefault="qualified"
10         attributeFormDefault="unqualified"
11         blockDefault="substitution"
12         version="2.5">
13
14   <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd" />
15   <import namespace="urn:oasis:names:tc:SAML:2.0:assertion" schemaLocation="saml-schema-assertion-2.0.xsd"/>
16   <import namespace="urn:oasis:names:tc:SAML:2.0:protocol" schemaLocation="saml-schema-protocol-2.0.xsd"/>
17   <import namespace="urn:oasis:names:tc:SAML:2.0:metadata" schemaLocation="saml-schema-metadata-2.0.xsd"/>
18
19   <annotation>
20     <documentation>
21       2.0 schema for XML-based configuration of Shibboleth Native SP instances.
22       First appearing in Shibboleth 2.0 release.
23     </documentation>
24   </annotation>
25
26   <simpleType name="string">
27     <restriction base="string">
28       <minLength value="1"/>
29     </restriction>
30   </simpleType>
31
32   <simpleType name="listOfStrings">
33     <list itemType="conf:string"/>
34   </simpleType>
35
36   <simpleType name="listOfURIs">
37     <list itemType="anyURI"/>
38   </simpleType>
39
40   <simpleType name="bindingBoolean">
41     <restriction base="string">
42       <enumeration value="true"/>
43       <enumeration value="false"/>
44       <enumeration value="front"/>
45       <enumeration value="back"/>
46     </restriction>
47   </simpleType>
48
49   <simpleType name="redirectLimitType">
50     <restriction base="string">
51       <enumeration value="none"/>
52       <enumeration value="exact"/>
53       <enumeration value="host"/>
54       <enumeration value="whitelist"/>
55       <enumeration value="exact+whitelist"/>
56       <enumeration value="host+whitelist"/>
57     </restriction>
58   </simpleType>
59
60   <complexType name="PluggableType">
61     <sequence>
62       <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
63     </sequence>
64     <attribute name="type" type="conf:string" use="required"/>
65     <anyAttribute namespace="##any" processContents="lax"/>
66   </complexType>
67
68   <complexType name="ExtensionsType">
69     <annotation>
70       <documentation>Container for extension libraries and custom configuration</documentation>
71     </annotation>
72     <sequence>
73       <element name="Library" minOccurs="0" maxOccurs="unbounded">
74         <complexType>
75           <sequence>
76             <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
77           </sequence>
78           <attribute name="path" type="anyURI" use="required"/>
79           <attribute name="fatal" type="boolean"/>
80           <anyAttribute namespace="##any" processContents="lax"/>
81         </complexType>
82       </element>
83       <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
84     </sequence>
85   </complexType>
86
87   <complexType name="StorageServiceType">
88     <annotation>
89       <documentation>References StorageService plugins</documentation>
90     </annotation>
91     <complexContent>
92       <restriction base="conf:PluggableType">
93         <sequence>
94           <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
95         </sequence>
96         <attribute name="id" type="ID" use="required"/>
97         <attribute name="cleanupInterval" type="unsignedInt"/>
98         <anyAttribute namespace="##any" processContents="lax"/>
99       </restriction>
100     </complexContent>
101   </complexType>
102
103   <complexType name="SessionCacheType">
104     <annotation>
105       <documentation>References SessionCache plugins</documentation>
106     </annotation>
107     <complexContent>
108       <restriction base="conf:PluggableType">
109         <sequence>
110           <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
111         </sequence>
112         <attribute name="StorageService" type="IDREF"/>
113         <attribute name="cacheAllowance" type="unsignedInt"/>
114         <attribute name="cacheTimeout" type="unsignedInt"/> <!-- deprecated -->
115         <attribute name="maintainReverseIndex" type="boolean"/>
116         <attribute name="excludeReverseIndex" type="conf:listOfStrings"/>
117         <anyAttribute namespace="##any" processContents="lax"/>
118       </restriction>
119     </complexContent>
120   </complexType>
121
122   <complexType name="ReplayCacheType">
123     <annotation>
124       <documentation>Ties ReplayCache to a custom StorageService</documentation>
125     </annotation>
126     <sequence/>
127     <attribute name="StorageService" type="IDREF"/>
128   </complexType>
129
130   <complexType name="ArtifactMapType">
131     <annotation>
132       <documentation>Customizes an ArtifactMap</documentation>
133     </annotation>
134     <sequence/>
135     <attribute name="StorageService" type="IDREF"/>
136     <attribute name="context" type="conf:string"/>
137     <attribute name="artifactTTL" type="unsignedInt"/>
138   </complexType>
139
140   <complexType name="OutOfProcessType">
141     <annotation>
142       <documentation>Container for out-of-process (shibd) configuration</documentation>
143     </annotation>
144     <sequence>
145       <element name="Extensions" type="conf:ExtensionsType" minOccurs="0"/>
146       <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
147     </sequence>
148     <attribute name="logger" type="anyURI"/>
149     <attribute name="tranLogFormat" type="conf:string"/>
150     <attribute name="tranLogFiller" type="conf:string"/>
151     <attribute name="catchAll" type="boolean"/>
152     <anyAttribute namespace="##other" processContents="lax"/>
153   </complexType>
154
155   <complexType name="InProcessType">
156     <annotation>
157       <documentation>
158         Container for configuration of locally integrated or platform-specific
159         features (e.g. web server filters)
160       </documentation>
161     </annotation>
162     <sequence>
163       <element name="Extensions" type="conf:ExtensionsType" minOccurs="0"/>
164       <element name="ISAPI" minOccurs="0">
165         <complexType>
166           <sequence>
167             <element name="Site" maxOccurs="unbounded">
168               <complexType>
169                 <sequence>
170                   <element name="Alias" type="conf:string" minOccurs="0" maxOccurs="unbounded"/>
171                 </sequence>
172                 <attribute name="id" type="unsignedInt" use="required"/>
173                 <attribute name="name" type="conf:string" use="required"/>
174                 <attribute name="port" type="unsignedInt"/>
175                 <attribute name="sslport" type="unsignedInt"/>
176                 <attribute name="scheme" type="conf:string"/>
177               </complexType>
178             </element>
179             <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
180           </sequence>
181           <attribute name="normalizeRequest" type="boolean"/>
182           <attribute name="safeHeaderNames" type="boolean"/>
183           <anyAttribute namespace="##other" processContents="lax"/>
184         </complexType>
185       </element>
186       <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
187     </sequence>
188     <attribute name="logger" type="anyURI"/>
189     <attribute name="unsetHeaderValue" type="conf:string"/>
190     <attribute name="checkSpoofing" type="boolean"/>
191     <attribute name="spoofKey" type="conf:string"/>
192     <attribute name="catchAll" type="boolean"/>
193     <attribute name="extraAuthTypes" type="conf:listOfStrings"/>
194     <anyAttribute namespace="##other" processContents="lax"/>
195   </complexType>
196
197   <element name="AccessControl" type="conf:UniOperatorType">
198     <annotation>
199       <documentation>
200         A simple example access policy language extension that supersedes Apache .htaccess
201       </documentation>
202     </annotation>
203   </element>
204   <complexType name="UniOperatorType">
205     <choice>
206       <element name="AND" type="conf:MultiOperatorType"/>
207       <element name="OR" type="conf:MultiOperatorType"/>
208       <element name="NOT" type="conf:UniOperatorType"/>
209       <element name="Rule" type="conf:RuleType"/>
210       <element name="RuleRegex" type="conf:RuleRegexType"/>
211     </choice>
212   </complexType>
213   <complexType name="MultiOperatorType">
214     <choice minOccurs="2" maxOccurs="unbounded">
215       <element name="AND" type="conf:MultiOperatorType"/>
216       <element name="OR" type="conf:MultiOperatorType"/>
217       <element name="NOT" type="conf:UniOperatorType"/>
218       <element name="Rule" type="conf:RuleType"/>
219       <element name="RuleRegex" type="conf:RuleRegexType"/>
220     </choice>
221   </complexType>
222   <complexType name="RuleType">
223     <simpleContent>
224       <extension base="conf:listOfStrings">
225         <attribute name="require" type="conf:string" use="required"/>
226         <attribute name="list" type="boolean"/>
227       </extension>
228     </simpleContent>
229   </complexType>
230   <complexType name="RuleRegexType">
231     <simpleContent>
232       <extension base="conf:string">
233         <attribute name="require" type="conf:string" use="required"/>
234         <attribute name="ignoreCase" type="boolean"/>
235       </extension>
236     </simpleContent>
237   </complexType>
238
239   <attributeGroup name="ContentSettings">
240     <attribute name="applicationId" type="conf:string"/>
241     <attribute name="authType" type="conf:string"/>
242     <attribute name="requireSession" type="boolean"/>
243     <attribute name="requireSessionWith" type="conf:string"/>
244     <attribute name="requireLogoutWith" type="anyURI"/>
245     <attribute name="exportAssertion" type="boolean"/>
246     <attribute name="exportStdVars" type="boolean"/>
247     <attribute name="exportCookie" type="boolean"/>
248     <attribute name="redirectToSSL" type="unsignedInt"/>
249     <attribute name="entityID" type="anyURI"/>
250     <attribute name="discoveryURL" type="anyURI"/>
251     <attribute name="discoveryPolicy" type="conf:string"/>
252     <attribute name="isPassive" type="boolean"/>
253     <attribute name="returnOnError" type="boolean"/>
254     <attribute name="forceAuthn" type="boolean"/>
255     <attribute name="authnContextClassRef" type="conf:listOfURIs"/>
256     <attribute name="authnContextComparison" type="samlp:AuthnContextComparisonType"/>
257     <attribute name="NameIDFormat" type="anyURI"/>
258     <attribute name="SPNameQualifier" type="conf:string"/>
259     <attribute name="redirectErrors" type="anyURI"/>
260     <attribute name="sessionError" type="anyURI"/>
261     <attribute name="metadataError" type="anyURI"/>
262     <attribute name="accessError" type="anyURI"/>
263     <attribute name="sslError" type="anyURI"/>
264     <attribute name="target" type="anyURI"/>
265     <attribute name="acsIndex" type="unsignedShort"/>
266     <attribute name="REMOTE_ADDR" type="conf:string"/>
267     <attribute name="encoding" type="conf:string"/>
268     <anyAttribute namespace="##other" processContents="lax"/>
269   </attributeGroup>
270
271   <element name="RequestMap">
272     <annotation>
273       <documentation>
274         Built-in request mapping syntax, decomposes URLs into Host/Path/Path/...
275       </documentation>
276     </annotation>
277     <complexType>
278       <sequence>
279         <choice minOccurs="0">
280           <element name="htaccess" type="conf:PluggableType"/>
281           <element ref="conf:AccessControl"/>
282           <element name="AccessControlProvider" type="conf:PluggableType"/>
283         </choice>
284         <choice minOccurs="0" maxOccurs="unbounded">
285           <element name="Host" type="conf:HostType"/>
286           <element name="HostRegex" type="conf:HostRegexType"/>
287         </choice>
288         <element ref="ds:Signature" minOccurs="0"/>
289       </sequence>
290       <attribute name="unicodeAware" type="boolean"/>
291       <attributeGroup ref="conf:ContentSettings"/>
292     </complexType>
293   </element>
294
295   <complexType name="HostType">
296     <sequence>
297       <choice minOccurs="0">
298         <element name="htaccess" type="conf:PluggableType"/>
299         <element ref="conf:AccessControl"/>
300         <element name="AccessControlProvider" type="conf:PluggableType"/>
301       </choice>
302       <choice minOccurs="0" maxOccurs="unbounded">
303         <element name="Path" type="conf:PathType"/>
304         <element name="PathRegex" type="conf:PathRegexType"/>
305         <element name="Query" type="conf:QueryType"/>
306       </choice>
307     </sequence>
308     <attribute name="scheme">
309       <simpleType>
310         <restriction base="conf:string">
311           <enumeration value="http"/>
312           <enumeration value="https"/>
313           <enumeration value="ftp"/>
314           <enumeration value="ldap"/>
315           <enumeration value="ldaps"/>
316         </restriction>
317       </simpleType>
318     </attribute>
319     <attribute name="name" type="conf:string" use="required"/>
320     <attribute name="port" type="unsignedInt"/>
321     <attributeGroup ref="conf:ContentSettings"/>
322   </complexType>
323
324   <complexType name="HostRegexType">
325     <sequence>
326       <choice minOccurs="0">
327         <element name="htaccess" type="conf:PluggableType"/>
328         <element ref="conf:AccessControl"/>
329         <element name="AccessControlProvider" type="conf:PluggableType"/>
330       </choice>
331       <choice minOccurs="0" maxOccurs="unbounded">
332         <element name="Path" type="conf:PathType"/>
333         <element name="PathRegex" type="conf:PathRegexType"/>
334         <element name="Query" type="conf:QueryType"/>
335       </choice>
336     </sequence>
337     <attribute name="regex" type="conf:string" use="required"/>
338     <attribute name="ignoreCase" type="boolean"/>
339     <attributeGroup ref="conf:ContentSettings"/>
340   </complexType>
341
342   <complexType name="PathType">
343     <sequence>
344       <choice minOccurs="0">
345         <element name="htaccess" type="conf:PluggableType"/>
346         <element ref="conf:AccessControl"/>
347         <element name="AccessControlProvider" type="conf:PluggableType"/>
348       </choice>
349       <choice minOccurs="0" maxOccurs="unbounded">
350         <element name="Path" type="conf:PathType"/>
351         <element name="PathRegex" type="conf:PathRegexType"/>
352         <element name="Query" type="conf:QueryType"/>
353       </choice>
354     </sequence>
355     <attribute name="name" type="conf:string" use="required"/>
356     <attributeGroup ref="conf:ContentSettings"/>
357   </complexType>
358
359   <complexType name="PathRegexType">
360     <sequence>
361       <choice minOccurs="0">
362         <element name="htaccess" type="conf:PluggableType"/>
363         <element ref="conf:AccessControl"/>
364         <element name="AccessControlProvider" type="conf:PluggableType"/>
365       </choice>
366       <element name="Query" type="conf:QueryType" minOccurs="0" maxOccurs="unbounded"/>
367     </sequence>
368     <attribute name="regex" type="conf:string" use="required"/>
369     <attribute name="ignoreCase" type="boolean"/>
370     <attributeGroup ref="conf:ContentSettings"/>
371   </complexType>
372
373   <complexType name="QueryType">
374     <sequence>
375       <choice minOccurs="0">
376         <element name="htaccess" type="conf:PluggableType"/>
377         <element ref="conf:AccessControl"/>
378         <element name="AccessControlProvider" type="conf:PluggableType"/>
379       </choice>
380       <element name="Query" type="conf:QueryType" minOccurs="0" maxOccurs="unbounded"/>
381     </sequence>
382     <attribute name="name" type="conf:string" use="required"/>
383     <attribute name="regex" type="conf:string"/>
384     <attributeGroup ref="conf:ContentSettings"/>
385   </complexType>
386
387   <complexType name="ApplicationDefaultsType">
388     <annotation>
389       <documentation>Container for default settings and application-specific overrides</documentation>
390     </annotation>
391     <sequence>
392       <element name="Sessions" type="conf:SessionsType"/>
393       <element name="Errors" type="conf:ErrorsType" minOccurs="0"/>
394       <choice minOccurs="0" maxOccurs="unbounded">
395         <element name="RelyingParty" type="conf:RelyingPartyType"/>
396         <element name="Notify" type="conf:NotifyType"/>
397         <element ref="saml:Audience"/>
398         <element name="MetadataProvider" type="conf:PluggableType"/>
399         <element name="TrustEngine" type="conf:PluggableType"/>
400         <element name="AttributeExtractor" type="conf:PluggableType"/>
401         <element name="AttributeResolver" type="conf:PluggableType"/>
402         <element name="AttributeFilter" type="conf:PluggableType"/>
403         <element name="CredentialResolver" type="conf:PluggableType"/>
404         <element name="ApplicationOverride" type="conf:ApplicationOverrideType"/>
405       </choice>
406     </sequence>
407     <attribute name="id" type="conf:string" fixed="default"/>
408     <attribute name="entityID" type="anyURI" use="required"/>
409     <attributeGroup ref="conf:ApplicationGroup"/>
410     <attributeGroup ref="conf:RelyingPartyGroup"/>
411     <anyAttribute namespace="##other" processContents="lax"/>
412   </complexType>
413
414   <complexType name="ApplicationOverrideType">
415     <annotation>
416       <documentation>Container for application-specific overrides</documentation>
417     </annotation>
418     <sequence>
419       <element name="Sessions" type="conf:SessionsType" minOccurs="0"/>
420       <element name="Errors" type="conf:ErrorsType" minOccurs="0"/>
421       <choice minOccurs="0" maxOccurs="unbounded">
422         <element name="RelyingParty" type="conf:RelyingPartyType"/>
423         <element name="Notify" type="conf:NotifyType"/>
424         <element ref="saml:Audience"/>
425         <element name="MetadataProvider" type="conf:PluggableType"/>
426         <element name="TrustEngine" type="conf:PluggableType"/>
427         <element name="AttributeExtractor" type="conf:PluggableType"/>
428         <element name="AttributeResolver" type="conf:PluggableType"/>
429         <element name="AttributeFilter" type="conf:PluggableType"/>
430         <element name="CredentialResolver" type="conf:PluggableType"/>
431       </choice>
432     </sequence>
433     <attribute name="id" type="conf:string" use="required"/>
434     <attribute name="entityID" type="anyURI"/>
435     <attributeGroup ref="conf:ApplicationGroup"/>
436     <attributeGroup ref="conf:RelyingPartyGroup"/>
437     <anyAttribute namespace="##other" processContents="lax"/>
438   </complexType>
439
440   <attributeGroup name="ApplicationGroup">
441     <attribute name="homeURL" type="anyURI"/>
442     <attribute name="policyId" type="conf:string"/>
443     <attribute name="REMOTE_USER" type="conf:listOfStrings"/>
444     <attribute name="unsetHeaders" type="conf:listOfStrings"/>
445     <attribute name="metadataAttributePrefix" type="conf:string"/>
446     <attribute name="attributePrefix" type="conf:string"/>
447     <attribute name="requireAuthenticatedCipher" type="boolean"/>
448   </attributeGroup>
449
450   <attributeGroup name="RelyingPartyGroup">
451     <attribute name="authType" type="conf:string"/>
452     <attribute name="authUsername" type="conf:string"/>
453     <attribute name="authPassword" type="conf:string"/>
454     <attribute name="signing" type="conf:bindingBoolean"/>
455     <attribute name="signingAlg" type="anyURI"/>
456     <attribute name="digestAlg" type="anyURI"/>
457     <attribute name="encryption" type="conf:bindingBoolean"/>
458     <attribute name="encryptionAlg" type="anyURI"/>
459     <attribute name="keyName" type="conf:string"/>
460     <attribute name="artifactEndpointIndex" type="unsignedShort"/>
461     <attribute name="chunkedEncoding" type="boolean"/>
462     <attribute name="connectTimeout" type="unsignedShort"/>
463     <attribute name="timeout" type="unsignedShort"/>
464     <attribute name="requireConfidentiality" type="boolean"/>
465     <attribute name="requireTransportAuth" type="boolean"/>
466     <attribute name="requireSignedAssertions" type="boolean"/>
467     <attribute name="sessionHook" type="anyURI"/>
468   </attributeGroup>
469     
470   <complexType name="SessionsType">
471     <annotation>
472       <documentation>Container for specifying protocol handlers and session policy</documentation>
473     </annotation>
474     <sequence>
475       <element name="SSO" minOccurs="0">
476         <complexType>
477           <annotation>
478             <documentation>Implicitly configures SessionInitiator and AssertionConsumerService handlers</documentation>
479           </annotation>
480           <simpleContent>
481             <extension base="conf:listOfStrings">
482               <attribute name="discoveryProtocol" type="conf:string"/>
483               <attribute name="discoveryURL" type="anyURI"/>
484               <attributeGroup ref="conf:SessionInitiatorGroup"/>
485             </extension>
486           </simpleContent>
487         </complexType>
488       </element>
489       <element name="Logout" minOccurs="0">
490         <complexType>
491           <annotation>
492             <documentation>Implicitly configures LogoutInitiator and SingleLogoutService handlers</documentation>
493           </annotation>
494           <simpleContent>
495             <extension base="conf:listOfStrings">
496               <attributeGroup ref="conf:LogoutInitiatorGroup"/>
497             </extension>
498           </simpleContent>
499         </complexType>
500       </element>
501       <element name="NameIDMgmt" type="conf:listOfStrings" minOccurs="0">
502         <annotation>
503           <documentation>Implicitly configures ManageNameIDService handlers</documentation>
504         </annotation>
505       </element>
506       <choice minOccurs="0" maxOccurs="unbounded">
507         <element ref="conf:SessionInitiator"/>
508         <element ref="conf:LogoutInitiator"/>
509         <element ref="md:AssertionConsumerService"/>
510         <element ref="md:ArtifactResolutionService"/>
511         <element ref="md:SingleLogoutService"/>
512         <element ref="md:ManageNameIDService"/>
513         <element ref="conf:Handler"/>
514       </choice>
515     </sequence>
516     <attribute name="handlerURL" type="anyURI"/>
517     <attribute name="handlerSSL" type="boolean"/>
518     <attribute name="exportLocation" type="conf:string"/>
519     <attribute name="exportACL" type="conf:listOfStrings"/>
520     <attribute name="cookieName" type="conf:string"/>
521     <attribute name="cookieProps" type="conf:string"/>
522     <attribute name="cookieLifetime" type="unsignedInt"/>
523     <attribute name="idpHistory" type="boolean"/>
524     <attribute name="idpHistoryDays" type="unsignedInt"/>
525     <attribute name="lifetime" type="unsignedInt"/>
526     <attribute name="timeout" type="unsignedInt"/>
527     <attribute name="maxTimeSinceAuthn" type="unsignedInt"/>
528     <attribute name="checkAddress" type="boolean"/>
529     <attribute name="consistentAddress" type="boolean"/>
530     <attribute name="postData" type="conf:string"/>
531     <attribute name="postLimit" type="positiveInteger"/>
532     <attribute name="postTemplate" type="conf:string"/>
533     <attribute name="postExpire" type="boolean"/>
534     <attribute name="relayState" type="conf:string"/>
535     <attribute name="relayStateLimit" type="conf:redirectLimitType"/>
536     <attribute name="relayStateWhitelist" type="conf:listOfURIs"/>
537     <attribute name="redirectLimit" type="conf:redirectLimitType"/>
538     <attribute name="redirectWhitelist" type="conf:listOfURIs"/>
539     <anyAttribute namespace="##other" processContents="lax"/>
540   </complexType>
541
542   <attribute name="policyId" type="conf:string">
543     <annotation>
544       <documentation>Used to override Policy from profile endpoints</documentation>
545     </annotation>
546   </attribute>
547
548   <attributeGroup name="SessionInitiatorGroup">
549     <annotation>
550       <documentation>Options common to explicit and implicit SessionInitiators</documentation>
551     </annotation>
552     <attribute name="relayState" type="conf:string"/>
553     <attribute name="entityIDParam" type="conf:string"/>
554     <attribute name="entityID" type="anyURI"/>
555     <attribute name="outgoingBindings" type="conf:listOfURIs"/>
556     <attribute name="preservedOptions" type="conf:listOfStrings"/>
557     <attribute name="template" type="anyURI"/>
558     <attribute name="postArtifact" type="boolean"/>
559     <attribute name="acsByIndex" type="boolean"/>
560     <attribute name="isPassive" type="boolean"/>
561     <attribute name="returnOnError" type="boolean"/>
562     <attribute name="forceAuthn" type="boolean"/>
563     <attribute name="authnContextClassRef" type="anyURI"/>
564     <attribute name="authnContextComparison" type="samlp:AuthnContextComparisonType"/>
565     <attribute name="NameIDFormat" type="anyURI"/>
566     <attribute name="SPNameQualifier" type="conf:string"/>
567     <attribute name="requestDelegation" type="boolean"/>
568     <attribute name="target" type="anyURI"/>
569     <attribute name="discoveryPolicy" type="conf:string"/>
570     <anyAttribute namespace="##any" processContents="lax"/>
571   </attributeGroup>
572
573   <element name="SessionInitiator">
574     <annotation>
575       <documentation>Used to specify handlers that can issue AuthnRequests or perform discovery</documentation>
576     </annotation>
577     <complexType>
578       <complexContent>
579         <restriction base="conf:PluggableType">
580           <sequence>
581             <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
582           </sequence>
583           <attribute name="Location" type="anyURI"/>
584           <attribute name="id" type="conf:string"/>
585           <attribute name="isDefault" type="boolean"/>
586           <attribute name="URL" type="anyURI"/>
587           <attribute name="acsIndex" type="unsignedShort"/>
588           <attribute name="defaultACSIndex" type="unsignedShort"/>  <!-- deprecated -->
589           <attributeGroup ref="conf:SessionInitiatorGroup"/>
590         </restriction>
591       </complexContent>
592     </complexType>
593   </element>
594
595   <attributeGroup name="LogoutInitiatorGroup">
596     <annotation>
597       <documentation>Options common to explicit and implicit LogoutInitiators</documentation>
598     </annotation>
599     <attribute name="relayState" type="conf:string"/>
600     <attribute name="outgoingBindings" type="conf:listOfURIs"/>
601     <attribute name="template" type="anyURI"/>
602     <attribute name="postArtifact" type="boolean"/>
603     <anyAttribute namespace="##any" processContents="lax"/>
604   </attributeGroup>
605
606   <element name="LogoutInitiator">
607     <annotation>
608       <documentation>Used to specify handlers that can issue LogoutRequests</documentation>
609     </annotation>
610     <complexType>
611       <complexContent>
612         <restriction base="conf:PluggableType">
613           <sequence>
614             <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
615           </sequence>
616           <attribute name="Location" type="anyURI"/>
617           <attributeGroup ref="conf:LogoutInitiatorGroup"/>
618         </restriction>
619       </complexContent>
620     </complexType>
621   </element>
622
623   <element name="Handler">
624     <annotation>
625       <documentation>Used to specify custom handlers</documentation>
626     </annotation>
627     <complexType>
628       <complexContent>
629         <restriction base="conf:PluggableType">
630           <sequence>
631             <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
632           </sequence>
633           <attribute name="Location" type="anyURI" use="required"/>
634           <attribute name="acl" type="conf:listOfStrings"/>
635           <anyAttribute namespace="##any" processContents="lax"/>
636         </restriction>
637       </complexContent>
638     </complexType>
639   </element>
640
641   <complexType name="ErrorsType">
642     <annotation>
643       <documentation>Container for error templates and associated details</documentation>
644     </annotation>
645     <sequence>
646       <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
647     </sequence>
648     <attribute name="redirectErrors" type="anyURI"/>
649     <attribute name="session" type="anyURI"/>
650     <attribute name="metadata" type="anyURI"/>
651     <attribute name="access" type="anyURI"/>
652     <attribute name="ssl" type="anyURI"/>
653     <attribute name="localLogout" type="anyURI"/>
654     <attribute name="globalLogout" type="anyURI"/>
655     <attribute name="partialLogout" type="anyURI"/>
656     <attribute name="supportContact" type="conf:string"/>
657     <attribute name="logoLocation" type="anyURI"/>
658     <attribute name="helpLocation" type="anyURI"/>
659     <attribute name="styleSheet" type="anyURI"/>
660     <anyAttribute namespace="##any" processContents="lax"/>
661   </complexType>
662
663   <complexType name="RelyingPartyType">
664     <annotation>
665       <documentation>Container for specifying settings to use with particular peers</documentation>
666     </annotation>
667     <sequence>
668       <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
669     </sequence>
670     <attribute name="Name" type="conf:string"/>
671     <attribute name="type" type="conf:string"/>
672     <attributeGroup ref="conf:RelyingPartyGroup"/>
673     <attribute name="entityID" type="anyURI"/>
674     <anyAttribute namespace="##any" processContents="lax"/>
675   </complexType>
676
677   <complexType name="NotifyType">
678     <annotation>
679       <documentation>Used to specify locations to receive application notifications</documentation>
680     </annotation>
681     <sequence/>
682     <attribute name="Channel" use="required">
683       <simpleType>
684         <restriction base="string">
685           <enumeration value="front"/>
686           <enumeration value="back"/>
687         </restriction>
688       </simpleType>
689     </attribute>
690     <attribute name="Location" type="anyURI" use="required"/>
691     <anyAttribute namespace="##any" processContents="lax"/>
692   </complexType>
693
694   <element name="SecurityPolicies">
695     <complexType>
696       <annotation>
697         <documentation>Container for specifying sets of policy rules to apply to incoming messages</documentation>
698       </annotation>
699       <sequence>
700         <element name="Policy" minOccurs="1" maxOccurs="unbounded">
701           <annotation>
702             <documentation>Specifies a set of SecurityPolicyRule plugins</documentation>
703           </annotation>
704           <complexType>
705             <choice>
706               <element name="Rule" type="conf:PluggableType" minOccurs="1" maxOccurs="unbounded"/>
707               <element name="PolicyRule" type="conf:PluggableType" minOccurs="1" maxOccurs="unbounded"/>
708             </choice>
709             <attribute name="id" type="conf:string" use="required"/>
710             <attribute name="validate" type="boolean"/>
711             <anyAttribute namespace="##any" processContents="lax"/>
712           </complexType>
713         </element>
714         <choice minOccurs="0">
715           <element name="AlgorithmWhitelist" type="conf:listOfURIs"/>
716           <element name="AlgorithmBlacklist" type="conf:listOfURIs"/>
717         </choice>
718       </sequence>
719     </complexType>
720   </element>
721
722   <element name="TransportOption">
723     <annotation>
724       <documentation>Implementation-specific option to pass to SOAPTransport provider.</documentation>
725     </annotation>
726     <complexType>
727       <simpleContent>
728         <extension base="anySimpleType">
729           <attribute name="provider" type="conf:string" use="required"/>
730           <attribute name="option" type="conf:string" use="required"/>
731         </extension>
732       </simpleContent>
733     </complexType>
734   </element>
735
736   <element name="SPConfig">
737     <complexType>
738       <annotation>
739         <documentation>Root of configuration</documentation>
740       </annotation>
741       <sequence>
742         <element name="Extensions" type="conf:ExtensionsType" minOccurs="0"/>
743         <element name="OutOfProcess" type="conf:OutOfProcessType" minOccurs="0"/>
744         <element name="InProcess" type="conf:InProcessType" minOccurs="0"/>
745         <choice minOccurs="0">
746           <element name="UnixListener">
747             <complexType>
748               <attribute name="address" type="conf:string" use="required"/>
749               <attribute name="stackSize" type="unsignedInt"/>
750             </complexType>
751           </element>
752           <element name="TCPListener">
753             <complexType>
754               <attribute name="address" type="conf:string" use="required"/>
755               <attribute name="port" type="unsignedInt" use="required"/>
756               <attribute name="acl" type="conf:listOfStrings"/>
757               <attribute name="stackSize" type="unsignedInt"/>
758             </complexType>
759           </element>
760           <element name="Listener" type="conf:PluggableType"/>
761         </choice>
762         <element name="StorageService" type="conf:StorageServiceType" minOccurs="0" maxOccurs="unbounded"/>
763         <element name="SessionCache" type="conf:SessionCacheType" minOccurs="0"/>
764         <element name="ReplayCache" type="conf:ReplayCacheType" minOccurs="0"/>
765         <element name="ArtifactMap" type="conf:ArtifactMapType" minOccurs="0"/>
766         <element name="RequestMapper" type="conf:PluggableType" minOccurs="0"/>
767         <element name="ApplicationDefaults" type="conf:ApplicationDefaultsType"/>
768         <choice>
769           <element name="SecurityPolicyProvider" type="conf:PluggableType"/>
770           <element ref="conf:SecurityPolicies"/> <!-- deprecated -->
771         </choice>
772         <element name="ProtocolProvider" type="conf:PluggableType" minOccurs="0"/>
773         <element ref="conf:TransportOption" minOccurs="0" maxOccurs="unbounded"/>
774         <element ref="ds:Signature" minOccurs="0"/>
775       </sequence>
776       <attribute name="logger" type="anyURI"/>
777       <attribute name="clockSkew" type="unsignedInt"/>
778       <attribute name="unsafeChars" type="conf:string"/>
779       <attribute name="allowedSchemes" type="conf:listOfStrings"/>
780       <attribute name="langFromClient" type="boolean"/>
781       <attribute name="langPriority" type="conf:listOfStrings"/>
782       <attribute name="contactPriority" type="conf:listOfStrings"/>
783       <anyAttribute namespace="##other" processContents="lax"/>
784     </complexType>
785   </element>
786
787 </schema>