Accept old snytax in idp configuration file.
[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:choice>
15                 <xs:element name="IdPConfig" type="idp:IdPConfigType"/>
16                 <xs:element name="ShibbolethOriginConfig" type="idp:IdPConfigType"/>
17         </xs:choice>
18         
19         <xs:simpleType name="LevelType">
20                 <xs:restriction base="xs:string">
21                         <xs:enumeration value="OFF"/>
22                         <xs:enumeration value="FATAL"/>
23                         <xs:enumeration value="ERROR"/>
24                         <xs:enumeration value="WARN"/>
25                         <xs:enumeration value="INFO"/>
26                         <xs:enumeration value="DEBUG"/>
27                 </xs:restriction>
28         </xs:simpleType>
29
30         <xs:complexType name="LogWithLevels">
31                 <xs:attribute name="location" type="xs:anyURI" use="required" />
32                 <xs:attribute name="level" type="idp:LevelType" use="optional" default="WARN" />
33         </xs:complexType>
34
35         <xs:complexType name="Log">
36                 <xs:attribute name="location" type="xs:anyURI" use="required"/>
37         </xs:complexType>
38
39         <xs:simpleType name="Log4JConfigType">
40                 <xs:restriction base="xs:string">
41                         <xs:enumeration value="properties"/>
42                         <xs:enumeration value="xml"/>
43                 </xs:restriction>
44         </xs:simpleType>
45
46                 <xs:complexType name="IdPConfigType">
47                         <xs:sequence>
48                                 <xs:sequence>
49                                         <xs:element name="RelyingParty" maxOccurs="unbounded">
50                                                 <xs:complexType>
51                                                         <xs:sequence minOccurs="0">
52                                                                 <xs:element name="HSNameFormat">
53                                                                         <xs:complexType>
54                                                                                 <xs:attribute name="nameMapping" type="xs:string" use="required"/>
55                                                                         </xs:complexType>
56                                                                 </xs:element>
57                                                         </xs:sequence>
58                                                         <xs:attribute name="name" type="xs:string" use="required"/>
59                                                         <xs:attribute name="providerId" type="xs:anyURI" use="optional"/>
60                                                         <xs:attribute name="signingCredential" type="xs:string" use="optional"/>
61                                                         <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
62                                                         <xs:attribute name="passThruErrors" type="xs:boolean" use="optional"/>
63                                                         <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional"/>
64                                                 </xs:complexType>
65                                         </xs:element>
66                                 </xs:sequence>
67                                 <xs:element name="ReleasePolicyEngine" minOccurs="0">
68                                         <xs:complexType>
69                                                 <xs:sequence>
70                                                         <xs:element name="ArpRepository">
71                                                                 <xs:complexType>
72                                                                         <xs:sequence>
73                                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
74                                                                         </xs:sequence>
75                                                                         <xs:attribute name="implementation" type="xs:string" use="required"/>
76                                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
77                                                                 </xs:complexType>
78                                                         </xs:element>
79                                                 </xs:sequence>
80                                         </xs:complexType>
81                                 </xs:element>
82
83                                 <xs:element name="Logging" minOccurs="0" maxOccurs="1">
84                                         <xs:complexType>
85                                                 <xs:choice>
86                                                         <xs:sequence>
87                                                                 <xs:element name="ErrorLog" type="idp:LogWithLevels" minOccurs="0" maxOccurs="1" />
88                                                                 <xs:element name="TransactionLog" type="idp:Log" minOccurs="0" maxOccurs="1" />
89                                                         </xs:sequence>
90                                                         <xs:element name="Log4JConfig">
91                                                                 <xs:complexType>
92                                                                         <xs:attribute name="type" type="idp:Log4JConfigType" use="optional" default="properties" />
93                                                                         <xs:attribute name="location" type="xs:anyURI" use="required" />
94                                                                 </xs:complexType>
95                                                         </xs:element>
96                                                 </xs:choice>
97                                         </xs:complexType>
98                                 </xs:element>
99
100                                 <xs:sequence>
101                                         <xs:element ref="namemapper:NameMapping" maxOccurs="unbounded"/>
102                                 </xs:sequence>
103
104                                 <xs:element ref="credentials:Credentials"/>
105
106                                 <xs:element name="FederationProvider" minOccurs="0" maxOccurs="unbounded">
107                                         <xs:complexType>
108                                                 <xs:sequence>
109                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
110                                                 </xs:sequence>
111                                                 <xs:attribute name="type" type="xs:string" use="required" />
112                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
113                                         </xs:complexType>
114                                 </xs:element>
115                         </xs:sequence>
116
117                         <xs:attribute name="resolverConfig" type="xs:string" use="optional" default="/conf/resolver.xml"/>
118                         <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
119                         <xs:attribute name="providerId" type="xs:anyURI" use="required"/>
120                         <xs:attribute name="defaultRelyingParty" type="xs:anyURI" use="required"/>
121                         <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional" default="urn:oasis:names:tc:SAML:1.0:am:unspecified"/>
122                         <xs:attribute name="passThruErrors" type="xs:boolean" use="optional" default="false"/>
123                         <xs:attribute name="authHeaderName" type="xs:string" use="optional"/>
124                         <xs:attribute name="maxHSThreads" type="xs:integer" use="optional"/>
125                 </xs:complexType>
126
127 </xs:schema>