Fixed an IdP configuration schema bug.
[java-idp.git] / src / schemas / shibboleth-idpconfig-1.0.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema 
3         targetNamespace="urn:mace:shibboleth:idp:config:1.0" 
4         xmlns:xs="http://www.w3.org/2001/XMLSchema" 
5         xmlns:credentials="urn:mace:shibboleth:credentials:1.0" 
6         xmlns:namemapper="urn:mace:shibboleth:namemapper:1.0" 
7         xmlns:idp="urn:mace:shibboleth:idp:config:1.0" 
8         elementFormDefault="qualified" 
9         attributeFormDefault="unqualified">
10
11         <xs:import namespace="urn:mace:shibboleth:credentials:1.0" schemaLocation="credentials.xsd"/>
12         <xs:import namespace="urn:mace:shibboleth:namemapper:1.0" schemaLocation="namemapper.xsd"/>
13
14         <xs:simpleType name="LevelType">
15                 <xs:restriction base="xs:string">
16                         <xs:enumeration value="OFF"/>
17                         <xs:enumeration value="FATAL"/>
18                         <xs:enumeration value="ERROR"/>
19                         <xs:enumeration value="WARN"/>
20                         <xs:enumeration value="INFO"/>
21                         <xs:enumeration value="DEBUG"/>
22                 </xs:restriction>
23         </xs:simpleType>
24
25         <xs:complexType name="LogWithLevels">
26                 <xs:attribute name="location" type="xs:anyURI" use="required" />
27                 <xs:attribute name="level" type="idp:LevelType" use="optional" default="WARN" />
28         </xs:complexType>
29
30         <xs:complexType name="Log">
31                 <xs:attribute name="location" type="xs:anyURI" use="required"/>
32         </xs:complexType>
33
34         <xs:simpleType name="Log4JConfigType">
35                 <xs:restriction base="xs:string">
36                         <xs:enumeration value="properties"/>
37                         <xs:enumeration value="xml"/>
38                 </xs:restriction>
39         </xs:simpleType>
40
41                 <xs:element name="IdPConfig">
42                         <xs:complexType>
43                                 <xs:sequence>
44                                         <xs:sequence>
45                                                 <xs:element name="RelyingParty" maxOccurs="unbounded">
46                                                         <xs:complexType>
47                                                                 <xs:sequence minOccurs="0">
48                                                                         <xs:element name="HSNameFormat">
49                                                                                 <xs:complexType>
50                                                                                         <xs:attribute name="nameMapping" type="xs:string" use="required"/>
51                                                                                 </xs:complexType>
52                                                                         </xs:element>
53                                                                 </xs:sequence>
54                                                                 <xs:attribute name="name" type="xs:string" use="required"/>
55                                                                 <xs:attribute name="providerId" type="xs:anyURI" use="optional"/>
56                                                                 <xs:attribute name="signingCredential" type="xs:string" use="optional"/>
57                                                                 <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
58                                                                 <xs:attribute name="passThruErrors" type="xs:boolean" use="optional"/>
59                                                                 <xs:attribute name="forceAttributePush" type="xs:boolean" use="optional"/>
60                                                                 <xs:attribute name="signAssertions" type="xs:boolean" use="optional"/>
61                                                                 <xs:attribute name="forceAttributeNoPush" type="xs:boolean" use="optional"/>
62                                                                 <xs:attribute name="defaultToPOSTProfile" type="xs:boolean" use="optional"/>
63                                                                 <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional"/>
64                                                                 <xs:attribute name="preferredArtifactType" type="xs:integer" use="optional"/>
65                                                                 <xs:attribute name="defaultTarget" type="xs:string" use="optional"/>
66                                                         </xs:complexType>
67                                                 </xs:element>
68                                         </xs:sequence>
69                                         <xs:element name="ReleasePolicyEngine" minOccurs="0">
70                                                 <xs:complexType>
71                                                         <xs:sequence>
72                                                                 <xs:element name="ArpRepository">
73                                                                         <xs:complexType>
74                                                                                 <xs:sequence>
75                                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" 
76                                                                                                 maxOccurs="unbounded"/>
77                                                                                 </xs:sequence>
78                                                                                 <xs:attribute name="implementation" type="xs:string" use="required"/>
79                                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
80                                                                         </xs:complexType>
81                                                                 </xs:element>
82                                                         </xs:sequence>
83                                                 </xs:complexType>
84                                         </xs:element>
85                                         <xs:element name="Logging" minOccurs="0" maxOccurs="1">
86                                                 <xs:complexType>
87                                                         <xs:choice>
88                                                                 <xs:sequence>
89                                                                         <xs:element name="ErrorLog" type="idp:LogWithLevels" minOccurs="0" maxOccurs="1" />
90                                                                         <xs:element name="TransactionLog" type="idp:Log" minOccurs="0" maxOccurs="1" />
91                                                                 </xs:sequence>
92                                                                 <xs:element name="Log4JConfig">
93                                                                         <xs:complexType>
94                                                                                 <xs:attribute name="type" type="idp:Log4JConfigType" use="optional" 
95                                                                                         default="properties" />
96                                                                                 <xs:attribute name="location" type="xs:anyURI" use="required" />
97                                                                         </xs:complexType>
98                                                                 </xs:element>
99                                                         </xs:choice>
100                                                 </xs:complexType>
101                                         </xs:element>
102                                         <xs:sequence>
103                                                 <xs:element ref="namemapper:NameMapping" maxOccurs="unbounded"/>
104                                         </xs:sequence>
105                                         <xs:element name="ArtifactMapper" minOccurs="0" maxOccurs="1">
106                                                 <xs:complexType>
107                                                         <xs:sequence>
108                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
109                                                         </xs:sequence>
110                                                         <xs:attribute name="implementation" type="xs:string" use="required"/>
111                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
112                                                 </xs:complexType>
113                                         </xs:element>
114                                         <xs:element ref="credentials:Credentials"/>
115                                         <xs:element name="ProtocolHandler" minOccurs="0" maxOccurs="unbounded">
116                                                 <xs:complexType>
117                                                         <xs:sequence>
118                                                                 <xs:element name="Location" type="xs:anyURI" minOccurs="1" maxOccurs="unbounded" />
119                                                                 <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
120                                                         </xs:sequence>
121                                                         <xs:attribute name="implementation" type="xs:string" use="required" />
122                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
123                                                 </xs:complexType>
124                                         </xs:element>
125                                         <xs:element name="MetadataProvider" minOccurs="0" maxOccurs="unbounded">
126                                                 <xs:complexType>
127                                                         <xs:sequence>
128                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
129                                                         </xs:sequence>
130                                                         <xs:attribute name="type" type="xs:string" use="required" />
131                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
132                                                 </xs:complexType>
133                                         </xs:element>
134                                 </xs:sequence>
135                                 <xs:attribute name="resolverConfig" type="xs:string" use="optional" default="/conf/resolver.xml"/>
136                                 <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
137                                 <xs:attribute name="providerId" type="xs:anyURI" use="required"/>
138                                 <xs:attribute name="defaultRelyingParty" type="xs:anyURI" use="required"/>
139                                 <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional" 
140                                         default="urn:oasis:names:tc:SAML:1.0:am:unspecified"/>
141                                 <xs:attribute name="passThruErrors" type="xs:boolean" use="optional" default="false"/>
142                                 <xs:attribute name="authHeaderName" type="xs:string" use="optional"/>
143                                 <xs:attribute name="maxHSThreads" type="xs:integer" use="optional"/>
144                         </xs:complexType>
145                 </xs:element>
146
147 </xs:schema>