IdP no longer sends xerces type hack unless specified in the relying party configuration.
[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="schemaHack" type="xs:boolean" use="optional"/>
64                                                                 <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional"/>
65                                                                 <xs:attribute name="preferredArtifactType" type="xs:integer" use="optional"/>
66                                                                 <xs:attribute name="defaultTarget" type="xs:string" use="optional"/>
67                                                         </xs:complexType>
68                                                 </xs:element>
69                                         </xs:sequence>
70                                         <xs:element name="ReleasePolicyEngine" minOccurs="0">
71                                                 <xs:complexType>
72                                                         <xs:sequence>
73                                                                 <xs:element name="ArpRepository">
74                                                                         <xs:complexType>
75                                                                                 <xs:sequence>
76                                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" 
77                                                                                                 maxOccurs="unbounded"/>
78                                                                                 </xs:sequence>
79                                                                                 <xs:attribute name="implementation" type="xs:string" use="required"/>
80                                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
81                                                                         </xs:complexType>
82                                                                 </xs:element>
83                                                         </xs:sequence>
84                                                 </xs:complexType>
85                                         </xs:element>
86                                         <xs:element name="Logging" minOccurs="0" maxOccurs="1">
87                                                 <xs:complexType>
88                                                         <xs:choice>
89                                                                 <xs:sequence>
90                                                                         <xs:element name="ErrorLog" type="idp:LogWithLevels" minOccurs="0" maxOccurs="1" />
91                                                                         <xs:element name="TransactionLog" type="idp:Log" minOccurs="0" maxOccurs="1" />
92                                                                 </xs:sequence>
93                                                                 <xs:element name="Log4JConfig">
94                                                                         <xs:complexType>
95                                                                                 <xs:attribute name="type" type="idp:Log4JConfigType" use="optional" 
96                                                                                         default="properties" />
97                                                                                 <xs:attribute name="location" type="xs:anyURI" use="required" />
98                                                                         </xs:complexType>
99                                                                 </xs:element>
100                                                         </xs:choice>
101                                                 </xs:complexType>
102                                         </xs:element>
103                                         <xs:sequence>
104                                                 <xs:element ref="namemapper:NameMapping" maxOccurs="unbounded"/>
105                                         </xs:sequence>
106                                         <xs:element name="ArtifactMapper" minOccurs="0" maxOccurs="1">
107                                                 <xs:complexType>
108                                                         <xs:sequence>
109                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
110                                                         </xs:sequence>
111                                                         <xs:attribute name="implementation" type="xs:string" use="required"/>
112                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
113                                                 </xs:complexType>
114                                         </xs:element>
115                                         <xs:element ref="credentials:Credentials"/>
116                                         <xs:element name="ProtocolHandler" minOccurs="0" maxOccurs="unbounded">
117                                                 <xs:complexType>
118                                                         <xs:sequence>
119                                                                 <xs:element name="Location" type="xs:anyURI" minOccurs="1" maxOccurs="unbounded" />
120                                                                 <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
121                                                         </xs:sequence>
122                                                         <xs:attribute name="implementation" type="xs:string" use="required" />
123                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
124                                                 </xs:complexType>
125                                         </xs:element>
126                                         <xs:element name="MetadataProvider" minOccurs="0" maxOccurs="unbounded">
127                                                 <xs:complexType>
128                                                         <xs:sequence>
129                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
130                                                         </xs:sequence>
131                                                         <xs:attribute name="type" type="xs:string" use="required" />
132                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
133                                                 </xs:complexType>
134                                         </xs:element>
135                                 </xs:sequence>
136                                 <xs:attribute name="resolverConfig" type="xs:string" use="optional" default="/conf/resolver.xml"/>
137                                 <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
138                                 <xs:attribute name="providerId" type="xs:anyURI" use="required"/>
139                                 <xs:attribute name="defaultRelyingParty" type="xs:anyURI" use="required"/>
140                                 <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional" 
141                                         default="urn:oasis:names:tc:SAML:1.0:am:unspecified"/>
142                                 <xs:attribute name="passThruErrors" type="xs:boolean" use="optional" default="false"/>
143                                 <xs:attribute name="authHeaderName" type="xs:string" use="optional"/>
144                                 <xs:attribute name="maxHSThreads" type="xs:integer" use="optional"/>
145                         </xs:complexType>
146                 </xs:element>
147
148 </xs:schema>