87f457ec0be4f638d280d9e69740165852c25759
[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" />
28         </xs:complexType>
29
30         <xs:simpleType name="Log4JConfigType">
31                 <xs:restriction base="xs:string">
32                         <xs:enumeration value="properties"/>
33                         <xs:enumeration value="xml"/>
34                 </xs:restriction>
35         </xs:simpleType>
36
37                 <xs:element name="IdPConfig">
38                         <xs:complexType>
39                                 <xs:sequence>
40                                         <xs:sequence>
41                                                 <xs:element name="RelyingParty" maxOccurs="unbounded">
42                                                         <xs:complexType>
43                                                                 <xs:sequence minOccurs="0" maxOccurs="unbounded">
44                                                                         <xs:element name="NameID">
45                                                                                 <xs:complexType>
46                                                                                         <xs:attribute name="nameMapping" type="xs:string" use="required"/>
47                                                                                 </xs:complexType>
48                                                                         </xs:element>
49                                                                 </xs:sequence>
50                                                                 <xs:attribute name="name" type="xs:string" use="required"/>
51                                                                 <xs:attribute name="providerId" type="xs:anyURI" use="optional"/>
52                                                                 <xs:attribute name="signingCredential" type="xs:string" use="optional"/>
53                                                                 <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
54                                                                 <xs:attribute name="passThruErrors" type="xs:boolean" use="optional"/>
55                                                                 <xs:attribute name="forceAttributePush" type="xs:boolean" use="optional"/>
56                                                                 <xs:attribute name="signAssertions" type="xs:boolean" use="optional"/>
57                                                                 <xs:attribute name="forceAttributeNoPush" type="xs:boolean" use="optional"/>
58                                                                 <xs:attribute name="defaultToPOSTProfile" type="xs:boolean" use="optional"/>
59                                                                 <xs:attribute name="schemaHack" type="xs:boolean" use="optional"/>
60                                                                 <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional"/>
61                                                                 <xs:attribute name="preferredArtifactType" type="xs:integer" use="optional"/>
62                                                                 <xs:attribute name="defaultTarget" type="xs:string" use="optional"/>
63                                                         </xs:complexType>
64                                                 </xs:element>
65                                         </xs:sequence>
66                                         <xs:element name="ReleasePolicyEngine" minOccurs="0">
67                                                 <xs:complexType>
68                                                         <xs:sequence>
69                                                                 <xs:element name="ArpRepository">
70                                                                         <xs:complexType>
71                                                                                 <xs:sequence>
72                                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" 
73                                                                                                 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                                         <xs:element name="Logging" minOccurs="0" maxOccurs="1">
83                                                 <xs:complexType>
84                                                         <xs:choice>
85                                                                 <xs:sequence>
86                                                                         <xs:element name="ErrorLog" type="idp:LogWithLevels" minOccurs="0" maxOccurs="1" />
87                                                                         <xs:element name="TransactionLog" type="idp:LogWithLevels" minOccurs="0" 
88                                                                                 maxOccurs="1" />
89                                                                 </xs:sequence>
90                                                                 <xs:element name="Log4JConfig">
91                                                                         <xs:complexType>
92                                                                                 <xs:attribute name="type" type="idp:Log4JConfigType" use="optional" 
93                                                                                         default="properties" />
94                                                                                 <xs:attribute name="location" type="xs:anyURI" use="required" />
95                                                                         </xs:complexType>
96                                                                 </xs:element>
97                                                         </xs:choice>
98                                                 </xs:complexType>
99                                         </xs:element>
100                                         <xs:sequence>
101                                                 <xs:element ref="namemapper:NameMapping" maxOccurs="unbounded"/>
102                                         </xs:sequence>
103                                         <xs:element name="ArtifactMapper" minOccurs="0" maxOccurs="1">
104                                                 <xs:complexType>
105                                                         <xs:sequence>
106                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
107                                                         </xs:sequence>
108                                                         <xs:attribute name="implementation" type="xs:string" use="required"/>
109                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
110                                                 </xs:complexType>
111                                         </xs:element>
112                                         <xs:element ref="credentials:Credentials"/>
113                                         <xs:element name="ProtocolHandler" minOccurs="0" maxOccurs="unbounded">
114                                                 <xs:complexType>
115                                                         <xs:sequence>
116                                                                 <xs:element name="Location" type="xs:string" minOccurs="1" maxOccurs="unbounded" />
117                                                                 <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
118                                                         </xs:sequence>
119                                                         <xs:attribute name="implementation" type="xs:string" use="required" />
120                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
121                                                 </xs:complexType>
122                                         </xs:element>
123                                         <xs:element name="MetadataProvider" minOccurs="0" maxOccurs="unbounded">
124                                                 <xs:complexType>
125                                                         <xs:sequence>
126                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
127                                                         </xs:sequence>
128                                                         <xs:attribute name="type" type="xs:string" use="required" />
129                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
130                                                 </xs:complexType>
131                                         </xs:element>
132                                 </xs:sequence>
133                                 <xs:attribute name="resolverConfig" type="xs:string" use="optional" default="/conf/resolver.xml"/>
134                                 <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
135                                 <xs:attribute name="providerId" type="xs:anyURI" use="required"/>
136                                 <xs:attribute name="defaultRelyingParty" type="xs:anyURI" use="required"/>
137                                 <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional" 
138                                         default="urn:oasis:names:tc:SAML:1.0:am:unspecified"/>
139                                 <xs:attribute name="passThruErrors" type="xs:boolean" use="optional" default="false"/>
140                                 <xs:attribute name="authHeaderName" type="xs:string" use="optional"/>
141                                 <xs:attribute name="maxSigningThreads" type="xs:integer" use="optional"/>
142                         </xs:complexType>
143                 </xs:element>
144
145 </xs:schema>