Added dependency support to DataConnectors
[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:extension>
14                                                 </xs:complexContent>
15                                         </xs:complexType>
16                                 </xs:element>
17                                 <xs:element name="PersistentIDAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
18                                         <xs:complexType>
19                                                 <xs:complexContent>
20                                                         <xs:extension base="resolver:BaseAttributeDefinition">
21                                                                 <xs:sequence>
22                                                                         <xs:element name="Salt">
23                                                                                 <xs:complexType>
24                                                                                         <xs:simpleContent>
25                                                                                                 <xs:extension base="xs:string">
26                                                                                                         <xs:attribute name="keyStorePath" type="xs:string" use="optional"/>
27                                                                                                         <xs:attribute name="keyStoreKeyAlias" type="xs:string" use="optional"/>
28                                                                                                         <xs:attribute name="keyStorePassword" type="xs:string" use="optional"/>
29                                                                                                         <xs:attribute name="keyStoreKeyPassword" type="xs:string" use="optional"/>
30                                                                                                 </xs:extension>
31                                                                                         </xs:simpleContent>
32                                                                                 </xs:complexType>
33                                                                         </xs:element>
34                                                                 </xs:sequence>
35                                                                 <xs:attribute name="sourceName" type="xs:string" use="optional"/>
36                                                                 <xs:attribute name="scope" type="xs:string" use="required"/>
37                                                         </xs:extension>
38                                                 </xs:complexContent>
39                                         </xs:complexType>
40                                 </xs:element>
41                                 <xs:element name="CustomAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
42                                         <xs:complexType>
43                                                 <xs:complexContent>
44                                                         <xs:extension base="resolver:BaseAttributeDefinition">
45                                                                 <xs:sequence minOccurs="0" maxOccurs="unbounded">
46                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
47                                                                 </xs:sequence>
48                                                                 <xs:attribute name="class" type="xs:string" use="required"/>
49                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
50                                                         </xs:extension>
51                                                 </xs:complexContent>
52                                         </xs:complexType>
53                                 </xs:element>
54                                 <xs:element name="CustomDataConnector" minOccurs="0" maxOccurs="unbounded">
55                                         <xs:complexType>
56                                                 <xs:complexContent>
57                                                         <xs:extension base="resolver:BaseResolutionPlugIn">
58                                                                 <xs:sequence minOccurs="0" maxOccurs="unbounded">
59                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
60                                                                 </xs:sequence>
61                                                                 <xs:attribute name="class" type="xs:string" use="required"/>
62                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
63                                                         </xs:extension>
64                                                 </xs:complexContent>
65                                         </xs:complexType>
66                                 </xs:element>
67                                 <xs:element name="JNDIDirectoryDataConnector" minOccurs="0" maxOccurs="unbounded">
68                                         <xs:complexType>
69                                                 <xs:complexContent>
70                                                         <xs:extension base="resolver:BaseResolutionPlugIn">
71                                                                 <xs:sequence>
72                                                                         <xs:element name="Search">
73                                                                                 <xs:complexType>
74                                                                                         <xs:sequence minOccurs="0">
75                                                                                                 <xs:element name="Controls">
76                                                                                                         <xs:complexType>
77                                                                                                                 <xs:attribute name="searchScope" type="xs:string" use="optional"/>
78                                                                                                                 <xs:attribute name="timeLimit" type="xs:int" use="optional"/>
79                                                                                                                 <xs:attribute name="returningObjects" type="xs:boolean" use="optional"/>
80                                                                                                                 <xs:attribute name="linkDereferencing" type="xs:boolean" use="optional"/>
81                                                                                                                 <xs:attribute name="countLimit" type="xs:long" use="optional"/>
82                                                                                                         </xs:complexType>
83                                                                                                 </xs:element>
84                                                                                         </xs:sequence>
85                                                                                         <xs:attribute name="filter" type="xs:string" use="required"/>
86                                                                                 </xs:complexType>
87                                                                         </xs:element>
88                                                                         <xs:sequence>
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:sequence>
97                                                         </xs:extension>
98                                                 </xs:complexContent>
99                                         </xs:complexType>
100                                 </xs:element>
101                                 <xs:element name="JDBCDataConnector" minOccurs="0" maxOccurs="unbounded">
102                                         <xs:complexType>
103                                                 <xs:complexContent>
104                                                         <xs:extension base="resolver:BaseResolutionPlugIn">
105                                                                 <xs:sequence>
106                                                                         <xs:element name="Search">
107                                                                                 <xs:complexType>
108                                                                                         <xs:simpleContent>
109                                                                                                 <xs:extension base="xs:string">
110                                                                                                         <xs:attribute name="query" type="xs:string" use="optional"/>
111                                                                                                         <xs:attribute name="attributeExtractor" type="xs:string" use="optional"/>
112                                                                                                 </xs:extension>
113                                                                                         </xs:simpleContent>
114                                                                                 </xs:complexType>
115                                                                         </xs:element>
116                                                                         <xs:sequence>
117                                                                                 <xs:element name="Property" maxOccurs="unbounded">
118                                                                                         <xs:complexType>
119                                                                                                 <xs:attribute name="name" type="xs:string" use="required"/>
120                                                                                                 <xs:attribute name="value" type="xs:string" use="required"/>
121                                                                                         </xs:complexType>
122                                                                                 </xs:element>
123                                                                         </xs:sequence>
124                                                                 </xs:sequence>
125                                                         </xs:extension>
126                                                 </xs:complexContent>
127                                         </xs:complexType>
128                                 </xs:element>
129                         </xs:choice>
130                 </xs:complexType>
131         </xs:element>
132         <xs:complexType name="BaseAttributeDefinition">
133                 <xs:complexContent>
134                         <xs:extension base="resolver:BaseResolutionPlugIn">
135                                 <xs:attribute name="lifeTime" type="xs:long" use="optional"/>
136                         </xs:extension>
137                 </xs:complexContent>
138         </xs:complexType>
139         <xs:complexType name="BaseResolutionPlugIn">
140                 <xs:choice minOccurs="0" maxOccurs="unbounded">
141                         <xs:element name="DataConnectorDependency">
142                                 <xs:complexType>
143                                         <xs:attribute name="requires" type="xs:string" use="required"/>
144                                 </xs:complexType>
145                         </xs:element>
146                         <xs:element name="AttributeDependency">
147                                 <xs:complexType>
148                                         <xs:attribute name="requires" type="xs:string" use="optional"/>
149                                 </xs:complexType>
150                         </xs:element>
151                 </xs:choice>
152                 <xs:attribute name="id" type="xs:string" use="required"/>
153                 <xs:attribute name="cacheTime" type="xs:string" use="optional"/>
154         </xs:complexType>
155 </xs:schema>