0f8156a18052f2d54f2a9aa0aa087811faf4ad6d
[java-idp.git] / src / schemas / shibboleth-resolver-1.0.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema targetNamespace="urn:mace:shibboleth:resolver:1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:resolver="urn:mace:shibboleth:resolver:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
3         <xs:element name="AttributeResolver">
4                 <xs:complexType>
5                         <xs:choice minOccurs="1" maxOccurs="unbounded">
6                                 <xs:element name="SimpleAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
7                                         <xs:complexType>
8                                                 <xs:complexContent>
9                                                         <xs:extension base="resolver:BaseAttributeDefinition">
10                                                                 <xs:attribute name="sourceName" type="xs:string" use="optional"/>
11                                                                 <xs:attribute name="smartScope" type="xs:string" use="optional"/>
12                                                                 <xs:attribute name="valueHandler" type="xs:string" use="optional"/>
13                                                                 <xs:attribute name="allowEmpty" type="xs:boolean" use="optional"/>
14                                                         </xs:extension>
15                                                 </xs:complexContent>
16                                         </xs:complexType>
17                                 </xs:element>
18                                 <xs:element name="PersistentIDAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
19                                         <xs:complexType>
20                                                 <xs:complexContent>
21                                                         <xs:extension base="resolver:BaseAttributeDefinition">
22                                                                 <xs:sequence>
23                                                                         <xs:element name="Salt">
24                                                                                 <xs:complexType>
25                                                                                         <xs:simpleContent>
26                                                                                                 <xs:extension base="xs:string">
27                                                                                                         <xs:attribute name="keyStorePath" type="xs:string" use="optional"/>
28                                                                                                         <xs:attribute name="keyStoreKeyAlias" type="xs:string" use="optional"/>
29                                                                                                         <xs:attribute name="keyStorePassword" type="xs:string" use="optional"/>
30                                                                                                         <xs:attribute name="keyStoreKeyPassword" type="xs:string" use="optional"/>
31                                                                                                 </xs:extension>
32                                                                                         </xs:simpleContent>
33                                                                                 </xs:complexType>
34                                                                         </xs:element>
35                                                                 </xs:sequence>
36                                                                 <xs:attribute name="sourceName" type="xs:string" use="optional"/>
37                                                                 <xs:attribute name="scope" type="xs:string" use="required"/>
38                                                         </xs:extension>
39                                                 </xs:complexContent>
40                                         </xs:complexType>
41                                 </xs:element>
42                                 <xs:element name="CustomAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
43                                         <xs:complexType>
44                                                 <xs:complexContent>
45                                                         <xs:extension base="resolver:BaseAttributeDefinition">
46                                                                 <xs:sequence minOccurs="0" maxOccurs="unbounded">
47                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
48                                                                 </xs:sequence>
49                                                                 <xs:attribute name="class" type="xs:string" use="required"/>
50                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
51                                                         </xs:extension>
52                                                 </xs:complexContent>
53                                         </xs:complexType>
54                                 </xs:element>
55                                 <xs:element name="CustomDataConnector" minOccurs="0" maxOccurs="unbounded">
56                                         <xs:complexType>
57                                                 <xs:complexContent>
58                                                         <xs:extension base="resolver:BaseDataConnector">
59                                                                 <xs:sequence>
60                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
61                                                                 </xs:sequence>
62                                                                 <xs:attribute name="class" type="xs:string" use="required"/>
63                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
64                                                         </xs:extension>
65                                                 </xs:complexContent>
66                                         </xs:complexType>
67                                 </xs:element>
68                                 <xs:element name="JNDIDirectoryDataConnector" minOccurs="0" maxOccurs="unbounded">
69                                         <xs:complexType>
70                                                 <xs:complexContent>
71                                                         <xs:extension base="resolver:BaseDataConnector">
72                                                                 <xs:sequence>
73                                                                         <xs:element name="Search">
74                                                                                 <xs:complexType>
75                                                                                         <xs:sequence minOccurs="0">
76                                                                                                 <xs:element name="Controls">
77                                                                                                         <xs:complexType>
78                                                                                                                 <xs:attribute name="searchScope" type="xs:string" use="optional"/>
79                                                                                                                 <xs:attribute name="timeLimit" type="xs:int" use="optional"/>
80                                                                                                                 <xs:attribute name="returningObjects" type="xs:boolean" use="optional"/>
81                                                                                                                 <xs:attribute name="linkDereferencing" type="xs:boolean" use="optional"/>
82                                                                                                                 <xs:attribute name="countLimit" type="xs:long" use="optional"/>
83                                                                                                         </xs:complexType>
84                                                                                                 </xs:element>
85                                                                                         </xs:sequence>
86                                                                                         <xs:attribute name="filter" type="xs:string" use="required"/>
87                                                                                 </xs:complexType>
88                                                                         </xs:element>
89                                                                         <xs:element name="Property" maxOccurs="unbounded">
90                                                                                 <xs:complexType>
91                                                                                         <xs:attribute name="name" type="xs:string" use="required"/>
92                                                                                         <xs:attribute name="value" type="xs:string" use="required"/>
93                                                                                 </xs:complexType>
94                                                                         </xs:element>
95                                                                 </xs:sequence>
96                                                         </xs:extension>
97                                                 </xs:complexContent>
98                                         </xs:complexType>
99                                 </xs:element>
100                                 <xs:element name="JDBCDataConnector" minOccurs="0" maxOccurs="unbounded">
101                                         <xs:complexType>
102                                                 <xs:complexContent>
103                                                         <xs:extension base="resolver:BaseDataConnector">
104                                                                 <xs:sequence>
105                                                                         <xs:element name="Query" type="xs:string"/>
106                                                                         <xs:element name="AttributeExtractor" minOccurs="0">
107                                                                                 <xs:complexType>
108                                                                                         <xs:attribute name="class" type="xs:string" use="required"/>
109                                                                                 </xs:complexType>
110                                                                         </xs:element>
111                                                                         <xs:element name="StatementCreator" minOccurs="0">
112                                                                                 <xs:complexType>
113                                                                                         <xs:sequence minOccurs="0" maxOccurs="unbounded">
114                                                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
115                                                                                         </xs:sequence>
116                                                                                         <xs:attribute name="class" type="xs:string" use="required"/>
117                                                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
118                                                                                 </xs:complexType>
119                                                                         </xs:element>
120                                                                         <xs:element name="Property" minOccurs="0" maxOccurs="unbounded">
121                                                                                 <xs:complexType>
122                                                                                         <xs:attribute name="name" type="xs:string" use="required"/>
123                                                                                         <xs:attribute name="value" type="xs:string" use="required"/>
124                                                                                 </xs:complexType>
125                                                                         </xs:element>
126                                                                 </xs:sequence>
127                                                                 <xs:attribute name="dbURL" type="xs:string" use="required"/>
128                                                                 <xs:attribute name="dbDriver" type="xs:string" use="optional"/>
129                                                                 <xs:attribute name="validationQuery" type="xs:string" use="optional" default="select 1"/>
130                                                                 <xs:attribute name="maxActive" type="xs:integer" use="optional"/>
131                                                                 <xs:attribute name="maxIdle" type="xs:integer" use="optional"/>
132                                                                 <xs:attribute name="maxWait" type="xs:integer" use="optional"/>
133                                                                 <xs:attribute name="minResultSet" type="xs:integer" use="optional"/>
134                                                                 <xs:attribute name="maxResultSet" type="xs:integer" use="optional"/>
135                                                                 <xs:attribute name="retryInterval" type="xs:integer" use="optional"/>
136                                                         </xs:extension>
137                                                 </xs:complexContent>
138                                         </xs:complexType>
139                                 </xs:element>
140                         </xs:choice>
141                 </xs:complexType>
142         </xs:element>
143         <xs:complexType name="BaseAttributeDefinition">
144                 <xs:complexContent>
145                         <xs:extension base="resolver:BaseResolutionPlugIn">
146                                 <xs:attribute name="lifeTime" type="xs:long" use="optional"/>
147                         </xs:extension>
148                 </xs:complexContent>
149         </xs:complexType>
150         <xs:complexType name="BaseDataConnector">
151                 <xs:complexContent>
152                         <xs:extension base="resolver:BaseResolutionPlugIn">
153                                 <xs:sequence>
154                                         <xs:element name="FailoverDependency" minOccurs="0">
155                                                 <xs:complexType>
156                                                         <xs:attribute name="requires" type="xs:string" use="required"/>
157                                                 </xs:complexType>
158                                         </xs:element>
159                                 </xs:sequence>
160                         </xs:extension>
161                 </xs:complexContent>
162         </xs:complexType>
163         <xs:complexType name="BaseResolutionPlugIn">
164                 <xs:choice minOccurs="0" maxOccurs="unbounded">
165                         <xs:element name="DataConnectorDependency">
166                                 <xs:complexType>
167                                         <xs:attribute name="requires" type="xs:string" use="required"/>
168                                 </xs:complexType>
169                         </xs:element>
170                         <xs:element name="AttributeDependency">
171                                 <xs:complexType>
172                                         <xs:attribute name="requires" type="xs:string" use="required"/>
173                                 </xs:complexType>
174                         </xs:element>
175                 </xs:choice>
176                 <xs:attribute name="id" type="xs:string" use="required"/>
177                 <xs:attribute name="cacheTime" type="xs:string" use="optional"/>
178                 <xs:attribute name="propagateErrors" type="xs:boolean" use="optional" default="true"/>
179         </xs:complexType>
180 </xs:schema>