Added option to Simple Attribute Definition PlugIn to force values to lower case...
[java-idp.git] / src / schemas / shibboleth-targetconfig-1.0.xsd
1 <?xml version="1.0" encoding="US-ASCII"?>
2 <schema targetNamespace="urn:mace:shibboleth:target:config:1.0"
3         xmlns="http://www.w3.org/2001/XMLSchema"
4         xmlns:conf="urn:mace:shibboleth:target:config:1.0"
5         xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
6         elementFormDefault="qualified"
7         attributeFormDefault="unqualified"
8         blockDefault="substitution"
9         version="1.0">
10
11         <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
12         <import namespace="urn:oasis:names:tc:SAML:1.0:assertion" schemaLocation="cs-sstc-schema-assertion-1.1.xsd"/>
13
14         <annotation>
15                 <documentation>
16         1.0 schema for XML-based configuration of Shibboleth target libraries and modules.
17         First appearing in Shibboleth 1.2 release.
18         </documentation>
19     </annotation>
20
21         <complexType name="PluggableType">
22                 <complexContent>
23                         <extension base="anyType">
24                                 <attribute name="type" type="string" use="required"/>
25                         </extension>
26                 </complexContent>
27         </complexType>
28
29         <element name="ShibbolethTargetConfig">
30                 <annotation>
31                         <documentation>Outer element of configuration file</documentation>
32                 </annotation>
33                 <complexType>
34                         <sequence>
35                                 <element ref="conf:Extensions" minOccurs="0"/>
36                                 <element ref="conf:SHAR" minOccurs="0"/>
37                                 <element ref="conf:SHIRE" minOccurs="0"/>
38                                 <element ref="conf:Applications"/>
39                                 <element name="CredentialsProvider" type="conf:PluggableType" maxOccurs="unbounded"/>
40                         </sequence>
41                         <attribute name="logger" type="anyURI" use="optional"/>
42                         <attribute name="clockSkew" type="unsignedInt" use="optional"/>
43                         <anyAttribute namespace="##other" processContents="lax"/>
44                 </complexType>
45         </element>
46
47         <element name="Extensions">
48                 <annotation>
49                         <documentation>Container for extension libraries and custom configuration</documentation>
50                 </annotation>
51                 <complexType>
52                         <sequence>
53                                 <element name="Library" minOccurs="0" maxOccurs="unbounded">
54                                         <complexType>
55                                     <complexContent>
56                                         <extension base="anyType">
57                                                 <attribute name="path" type="anyURI" use="required"/>
58                                                                 <attribute name="fatal" type="boolean" use="optional"/>
59                                         </extension>
60                                     </complexContent>
61                                         </complexType>
62                                 </element>
63                                 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
64                         </sequence>
65                 </complexType>
66         </element>
67
68         <element name="SHAR">
69                 <annotation>
70                         <documentation>Container for SHAR configuration</documentation>
71                 </annotation>
72                 <complexType>
73                         <sequence>
74                                 <element ref="conf:Extensions" minOccurs="0"/>
75                                 <choice>
76                                         <element name="UnixListener">
77                                                 <complexType>
78                                                         <complexContent>
79                                                                 <extension base="anyType">
80                                                                         <attribute name="address" type="string" use="required"/>
81                                                                 </extension>
82                                                         </complexContent>
83                                                 </complexType>
84                                         </element>
85                                         <element name="TCPListener">
86                                                 <complexType>
87                                                         <complexContent>
88                                                                 <extension base="anyType">
89                                                                         <attribute name="address" type="string" use="required"/>
90                                                                         <attribute name="port" type="unsignedInt" use="required"/>
91                                                                         <attribute name="acl" use="optional" default="127.0.0.1">
92                                                                                 <simpleType>
93                                                                                         <list itemType="string"/>
94                                                                                 </simpleType>
95                                                                         </attribute>
96                                                                 </extension>
97                                                         </complexContent>
98                                                 </complexType>
99                                         </element>
100                                         <element name="Listener" type="conf:PluggableType"/>
101                                 </choice>
102                                 <choice>
103                                         <element name="MemorySessionCache">
104                                                 <complexType>
105                                                         <complexContent>
106                                                                 <restriction base="anyType">
107                                                                         <sequence/>
108                                                                         <attributeGroup ref="conf:SessionCacheProperties"/>
109                                                                         <anyAttribute namespace="##other" processContents="lax"/>
110                                                                 </restriction>
111                                                         </complexContent>
112                                                 </complexType>
113                                         </element>
114                                         <element name="MySQLSessionCache">
115                                                 <complexType>
116                                                         <complexContent>
117                                                                 <restriction base="anyType">
118                                                                         <sequence>
119                                                                                 <element name="Argument" type="string" minOccurs="0" maxOccurs="unbounded"/>
120                                                                         </sequence>
121                                                                         <attributeGroup ref="conf:SessionCacheProperties"/>
122                                                                         <attribute name="mysqlTimeout" type="unsignedInt" use="optional" default="14400"/>
123                                                                         <anyAttribute namespace="##other" processContents="lax"/>
124                                                                 </restriction>
125                                                         </complexContent>
126                                                 </complexType>
127                                         </element>
128                                         <element name="SessionCache">
129                                                 <complexType>
130                                             <complexContent>
131                                                 <extension base="conf:PluggableType">
132                                                         <attributeGroup ref="conf:SessionCacheProperties"/>
133                                                 </extension>
134                                             </complexContent>
135                                                 </complexType>
136                                         </element>
137                                 </choice>
138                                 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
139                         </sequence>
140                         <attribute name="logger" type="anyURI" use="optional"/>
141                         <anyAttribute namespace="##other" processContents="lax"/>
142                 </complexType>
143         </element>
144
145         <attributeGroup name="SessionCacheProperties">
146         <attribute name="cleanupInterval" type="unsignedInt" use="optional" default="300"/>
147         <attribute name="cacheTimeout" type="unsignedInt" use="optional" default="28800"/>
148                 <attribute name="AAConnectTimeout" type="unsignedInt" use="optional" default="15"/>
149                 <attribute name="AATimeout" type="unsignedInt" use="optional" default="30"/>
150                 <attribute name="defaultLifetime" type="unsignedInt" use="optional" default="1800"/>
151                 <attribute name="retryInterval" type="unsignedInt" use="optional" default="300"/>
152                 <attribute name="strictValidity" type="boolean" use="optional" default="true"/>
153                 <attribute name="propagateErrors" type="boolean" use="optional" default="false"/>
154         </attributeGroup>
155
156         <element name="SHIRE">
157                 <annotation>
158                         <documentation>
159                         Container for configuration glue between target library and the surrounding application environment.
160                         </documentation>
161                 </annotation>
162                 <complexType>
163                         <sequence>
164                                 <element ref="conf:Extensions" minOccurs="0"/>
165                                 <element name="RequestMapProvider" type="conf:PluggableType" minOccurs="0"/>
166                                 <element name="Implementation" minOccurs="0">
167                                         <complexType>
168                                                 <choice maxOccurs="unbounded">
169                                                         <element ref="conf:ISAPI"/>
170                                                         <element ref="conf:NSAPI"/>
171                                                         <element ref="conf:Java"/>
172                                                         <any namespace="##other" processContents="lax"/>
173                                                 </choice>
174                                         </complexType>
175                                 </element>
176                                 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
177                         </sequence>
178                         <attribute name="logger" type="anyURI" use="optional"/>
179                         <anyAttribute namespace="##other" processContents="lax"/>
180                 </complexType>
181         </element>
182         
183         <element name="ISAPI">
184                 <complexType>
185                         <sequence>
186                                 <element name="Site" maxOccurs="unbounded">
187                                         <complexType>
188                                                 <complexContent>
189                                                         <extension base="anyType">
190                                                                 <attribute name="id" type="unsignedInt" use="required"/>
191                                                                 <attribute name="name" type="string" use="required"/>
192                                         <attribute name="port" type="unsignedInt" use="optional"/>
193                                                                 <attribute name="scheme" type="string" use="optional"/>
194                                                         </extension>
195                                                 </complexContent>
196                                         </complexType>
197                                 </element>
198                                 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
199                         </sequence>
200                         <attribute name="normalizeRequest" type="boolean" use="optional"/>
201                         <anyAttribute namespace="##other" processContents="lax"/>
202                 </complexType>
203         </element>
204         <element name="NSAPI" type="anyType"/>
205         <element name="Java" type="anyType"/>
206
207         <element name="htaccess" type="conf:UniOperatorType">
208                 <annotation>
209                         <documentation>
210                         A simple example access policy language extension that supersedes Apache .htaccess
211                         </documentation>
212                 </annotation>
213         </element>
214         <element name="OR" type="conf:MultiOperatorType"/>
215         <element name="AND" type="conf:MultiOperatorType"/>
216         <element name="NOT" type="conf:UniOperatorType"/>
217         <complexType name="UniOperatorType">
218                 <choice>
219                         <element ref="conf:AND"/>
220                         <element ref="conf:OR"/>
221                         <element ref="conf:NOT"/>
222                         <element ref="conf:Rule"/>
223                 </choice>
224         </complexType>
225         <complexType name="MultiOperatorType">
226                 <choice minOccurs="2" maxOccurs="unbounded">
227                         <element ref="conf:AND"/>
228                         <element ref="conf:OR"/>
229                         <element ref="conf:NOT"/>
230                         <element ref="conf:Rule"/>
231                 </choice>
232         </complexType>
233         <element name="Rule">
234                 <complexType>
235                         <simpleContent>
236                                 <extension base="conf:listOfStrings">
237                                         <attribute name="require" type="string" use="required"/>
238                                 </extension>
239                         </simpleContent>
240                 </complexType>
241         </element>
242         <simpleType name="listOfStrings">
243                 <list itemType='string'/>
244         </simpleType>
245         
246         <attributeGroup name="ContentSettings">
247                 <attribute name="requireSession" type="boolean" use="optional"/>
248                 <attribute name="exportAssertion" type="boolean" use="optional"/>
249                 <anyAttribute namespace="##other" processContents="lax"/>
250         </attributeGroup>
251         <element name="AccessControlProvider" type="conf:PluggableType"/>
252
253     <element name="RequestMap">
254                 <annotation>
255                         <documentation>
256                         Built-in request mapping syntax, decomposes URLs into Host/Path/Path/...
257                         </documentation>
258                 </annotation>
259         <complexType>
260             <sequence>
261                 <choice minOccurs="0">
262                         <element ref="conf:htaccess"/>
263                         <element ref="conf:AccessControlProvider"/>
264                     </choice>
265                 <element ref="conf:Host" minOccurs="0" maxOccurs="unbounded"/>
266             </sequence>
267             <attribute name="applicationId" type="string" fixed="default"/>
268                 <attributeGroup ref="conf:ContentSettings"/>
269         </complexType>
270     </element>
271
272     <element name="Host">
273         <complexType>
274                 <sequence>
275                 <choice minOccurs="0">
276                         <element ref="conf:htaccess"/>
277                         <element ref="conf:AccessControlProvider"/>
278                     </choice>
279                         <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
280                 </sequence>
281                 <attribute name="scheme" use="optional" default="http">
282                             <simpleType>
283                                 <restriction base="string">
284                                     <enumeration value="http"/>
285                                     <enumeration value="https"/>
286                                     <enumeration value="ftp"/>
287                                     <enumeration value="ldap"/>
288                                     <enumeration value="ldaps"/>
289                                 </restriction>
290                             </simpleType>
291                 </attribute>
292                 <attribute name="name" type="string" use="required"/>
293                 <attribute name="port" type="unsignedInt" use="optional"/>
294                 <attribute name="applicationId" type="string" use="optional"/>
295                 <attributeGroup ref="conf:ContentSettings"/>
296         </complexType>
297     </element>
298
299     <element name="Path">
300         <complexType>
301                 <sequence>
302                 <choice minOccurs="0">
303                         <element ref="conf:htaccess"/>
304                         <element ref="conf:AccessControlProvider"/>
305                     </choice>
306                         <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
307                 </sequence>
308                 <attribute name="name" type="string" use="required"/>
309                 <attribute name="applicationId" type="string" use="optional"/>
310                 <attributeGroup ref="conf:ContentSettings"/>
311         </complexType>
312     </element>
313
314         <element name="Applications">
315                 <annotation>
316                         <documentation>
317                         Container for global target settings and application-specific overrides
318                         </documentation>
319                 </annotation>
320                 <complexType>
321                         <sequence>
322                                 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
323                                 <element ref="conf:Sessions"/>
324                                 <element ref="conf:Errors"/>
325                                 <element ref="conf:CredentialUse" minOccurs="0"/>
326                                 <choice minOccurs="0" maxOccurs="unbounded">
327                     <element ref="saml:AttributeDesignator"/>
328                     <element ref="saml:Audience"/>
329                     <element name="AAPProvider" type="conf:PluggableType"/>
330                     <element name="FederationProvider" type="conf:PluggableType"/>
331                     <element name="TrustProvider" type="conf:PluggableType"/>
332                     <element name="RevocationProvider" type="conf:PluggableType"/>
333                                 </choice>
334                                 <element ref="conf:Application" minOccurs="0" maxOccurs="unbounded"/>
335                         </sequence>
336                         <attribute name="id" type="string" fixed="default"/>
337                         <attribute name="providerId" type="anyURI" use="required"/>
338                         <attribute name="signRequest" type="boolean" use="optional" default="false"/>
339                         <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
340                         <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
341                 <anyAttribute namespace="##other" processContents="lax"/>
342                 </complexType>
343         </element>
344         
345         <element name="Application">
346                 <annotation>
347                         <documentation>
348                         Container for application-specific overrides
349                         </documentation>
350                 </annotation>
351                 <complexType>
352                         <sequence>
353                                 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
354                                 <element ref="conf:Sessions"/>
355                                 <element ref="conf:Errors" minOccurs="0"/>
356                                 <element ref="conf:CredentialUse" minOccurs="0"/>
357                                 <choice minOccurs="0" maxOccurs="unbounded">
358                     <element ref="saml:AttributeDesignator"/>
359                     <element ref="saml:Audience"/>
360                     <element name="AAPProvider" type="conf:PluggableType"/>
361                     <element name="FederationProvider" type="conf:PluggableType"/>
362                     <element name="TrustProvider" type="conf:PluggableType"/>
363                     <element name="RevocationProvider" type="conf:PluggableType"/>
364                                 </choice>
365                         </sequence>
366                         <attribute name="id" type="string" use="required"/>
367                         <attribute name="providerId" type="anyURI" use="optional"/>
368                         <attribute name="signRequest" type="boolean" use="optional" default="false"/>
369                         <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
370                         <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
371                 <anyAttribute namespace="##other" processContents="lax"/>
372                 </complexType>
373         </element>
374
375         <element name="Sessions">
376                 <annotation>
377                         <documentation>Container for specifying app session establishment and policy</documentation>
378                 </annotation>
379                 <complexType>
380             <complexContent>
381                 <extension base="anyType">
382                                         <attribute name="wayfURL" type="anyURI" use="required"/>
383                                         <attribute name="shireURL" type="anyURI" use="required"/>
384                                         <attribute name="shireSSL" type="boolean" use="optional"/>
385                                         <attribute name="cookieName" type="string" use="optional"/>
386                                         <attribute name="cookieProps" type="string" use="optional"/>
387                                         <attribute name="lifetime" type="unsignedInt" use="optional"/>
388                                         <attribute name="timeout" type="unsignedInt" use="optional"/>
389                                         <attribute name="checkAddress" type="boolean" use="optional"/>
390                                         <attribute name="oldAuthnRequest" type="boolean" use="optional"/>
391                 </extension>
392             </complexContent>
393                 </complexType>
394         </element>
395
396         <element name="Errors">
397                 <annotation>
398                         <documentation>Container for error templates and associated details</documentation>
399                 </annotation>
400                 <complexType>
401             <complexContent>
402                 <extension base="anyType">
403                         <attribute name="shire" type="anyURI" use="required"/>
404                         <attribute name="rm" type="anyURI" use="required"/>
405                         <attribute name="access" type="anyURI" use="required"/>
406                         <attribute name="supportContact" type="string" use="optional"/>
407                         <attribute name="logoLocation" type="anyURI" use="optional"/>
408                         <attribute name="styleSheet" type="anyURI" use="optional"/>
409                 </extension>
410             </complexContent>
411                 </complexType>
412         </element>
413
414         <element name="CredentialUse">
415                 <annotation>
416                         <documentation>Container for specifying credentials to use</documentation>
417                 </annotation>
418                 <complexType>
419                         <sequence>
420                                 <element name="RelyingParty" minOccurs="0" maxOccurs="unbounded">
421                                         <complexType>
422                                                 <complexContent>
423                                                         <extension base="anyType">
424                                                                 <attribute name="Name" type="string" use="required"/>
425                                                                 <attribute name="TLS" type="string" use="required"/>
426                                                                 <attribute name="Signing" type="string" use="required"/>
427                                                         </extension>
428                                                 </complexContent>
429                                         </complexType>
430                                 </element>
431                                 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
432                         </sequence>
433                         <attribute name="TLS" type="string" use="required"/>
434                         <attribute name="Signing" type="string" use="required"/>
435                 <anyAttribute namespace="##other" processContents="lax"/>
436                 </complexType>
437         </element>
438 </schema>
439