summaryrefslogtreecommitdiff
path: root/schema/shibboleth-attribute-resolver.xsd
blob: cca79e74fac734240df5638a550212c95702ff20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:resolver="urn:mace:shibboleth:2.0:resolver"
    xmlns:sec="urn:mace:shibboleth:2.0:security" targetNamespace="urn:mace:shibboleth:2.0:resolver"
    elementFormDefault="qualified" version="5.0.0">

    <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    <import namespace="urn:mace:shibboleth:2.0:security" schemaLocation="http://shibboleth.net/schema/idp/shibboleth-security.xsd"/>

    <annotation>
        <documentation>Shibboleth V4 Attribute Resolver configuration schema
        </documentation>
    </annotation>

    <element name="AttributeResolver" type="resolver:AttributeResolverType">
        <annotation>
            <documentation>Root of the attribute resolver configuration file.
            </documentation>
        </annotation>
    </element>
    <complexType name="AttributeResolverType">
        <choice minOccurs="0" maxOccurs="unbounded">
            <element ref="resolver:AttributeDefinition"/>
            <element ref="resolver:DataConnector"/>
        </choice>
        <attribute name="id" type="resolver:string">
            <annotation>
                <documentation>A unique identifier for this Resolver.
                </documentation>
            </annotation>
        </attribute>
    </complexType>

    <element name="AttributeDefinition" type="resolver:BaseAttributeDefinitionType">
        <annotation>
            <documentation>Defines an attribute definition within this resolver.
            </documentation>
        </annotation>
    </element>

    <complexType name="BaseAttributeDefinitionType">
        <annotation>
            <documentation>
                Attribute definition define the finished attributes to be released by the
                resolver.

                Definitions derived from this type need to explicitly include (as a choice)
                the Dependency, DisplayName, DisplayDescription and Encoder sub elements

            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseResolutionPlugInType">
                <attribute name="dependencyOnly" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag that indicates whether this attribute definition is
                            only defined because its data is needed elsewhere within the resolver
                            and as such should not be released outside the resolver.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="preRequested" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag that indicates whether this attribute definition and
                            its dependencies are to be resolved in a "first pass", prior to the
                            main resolution.  These attributes will be populated into a child
                            context so as to be available to activationConditions.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <element name="AttributeEncoder" type="resolver:BaseAttributeEncoderType">
        <annotation>
            <documentation>Defines an encoder for an attribute.</documentation>
        </annotation>
    </element>

    <complexType name="BaseAttributeEncoderType">
        <annotation>
            <documentation>
                An attribute encoder is responsible for converting an attribute, and its values,
                into a protocol specific representation such as a SAML 1 or SAML 2 Attribute.
                The use of them to produce a SAML NameIdentifier/NameID is DEPRECATED.
            </documentation>
        </annotation>
        <sequence>
            <element name="ActivationConditionScript" type="resolver:ScriptType" minOccurs="0">
                <annotation>
                    <documentation>
                        A scripted predicate which controls whether this encoder will run
                    </documentation>
                </annotation>
            </element>
        </sequence>
        <attribute name="name" type="resolver:string"/>
        <attribute name="encodeType" type="resolver:string">
            <annotation>
                <documentation>
                    A boolean indicating whether the encoding should include type information. This is
                    encoding-specific (e.g., for XML it likely involves xsi:type).
                </documentation>
            </annotation>
        </attribute>
        <attribute name="activationConditionRef" type="resolver:string">
            <annotation>
                <documentation>
                    A reference to a Predicate which controls whether this encoder will run
                    Mutually exclusive with relyingParties
                </documentation>
            </annotation>
        </attribute>
        <attribute name="relyingParties" type="resolver:string">
            <annotation>
                <documentation>
                    A (space separated) list of entities for which this plugin is to be active
                    Mutually exclusive with activationConditionRef
                </documentation>
            </annotation>
        </attribute>
    </complexType>

    <element name="DataConnector" type="resolver:BaseDataConnectorType">
        <annotation>
            <documentation>
                Defines a data connector which is used to pull information from local
                infrastructure.
            </documentation>
        </annotation>
    </element>

    <complexType name="BaseDataConnectorType">
        <annotation>
            <documentation>
                Data connectors pull information from local infrastructure, such as
                databases and LDAP directories, and make these raw attributes available
                to attribute definitions for finishing.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseResolutionPlugInType">
                <attribute name="noRetryDelay" type="resolver:string">
                    <annotation>
                        <documentation>Time to bypass connector after a failure before trying it again.</documentation>
                    </annotation>
                </attribute>
                <attribute name="exportAttributes" type="resolver:string">
                    <annotation>
                        <documentation>A list of attribute names to be exported by the resolution process from this data connector.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="BaseResolutionPlugInType" abstract="true">
        <annotation>
            <documentation>
                A base type for all attribute resolver plugins: data and principal
                connectors and attribute definitions
            </documentation>
        </annotation>
        <attribute name="id" type="resolver:string" use="required">
            <annotation>
                <documentation>A unique identifier for this definition.</documentation>
            </annotation>
        </attribute>
        <attribute name="activationConditionRef" type="resolver:string">
            <annotation>
                <documentation>
                    A reference to a predicate to decide whether this plugin is applicable.
                    Mutually exclusive with [exclude]relyingParties and [exclude]resolutionPhases.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="relyingParties" type="resolver:string">
            <annotation>
                <documentation>
                    A (space separated) list of entities for which this plugin is to be active.
                    Mutually exclusive with activationConditionRef.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="excludeRelyingParties" type="resolver:string">
            <annotation>
                <documentation>
                    A (space separated) list of entities for which this plugin is to be inactive.
                    Mutually exclusive with activationConditionRef.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="resolutionPhases" type="resolver:string">
            <annotation>
                <documentation>
                    A (space separated) list of resolution "phases" for which this plugin is to be active.
                    Mutually exclusive with activationConditionRef.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="excludeResolutionPhases" type="resolver:string">
            <annotation>
                <documentation>
                    A (space separated) list of resolution "phases" for which this plugin is to be inactive.
                    Mutually exclusive with activationConditionRef.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="propagateResolutionExceptions" type="resolver:string">
            <annotation>
                <documentation>
                    DEPRECATED: Whether to ripple errors produced by the plugin out to the resolver (default is true).
                </documentation>
            </annotation>
        </attribute>
    </complexType>

    <element name="InputAttributeDefinition" type="resolver:PluginDependencyType">
        <annotation>
            <documentation>
                Defines a dependency on a specific Attribute Definition.
            </documentation>
        </annotation>
    </element>
    <element name="InputDataConnector">
        <annotation>
            <documentation>
                Defines a dependency on a specific Data Connector.

                attributeNames is a space separated list of attribute names. Property replacement done
                before "listification""

                allAttributes means take all attributes. Property replacement done before conversion

                One one of the above are allowed.
            </documentation>
        </annotation>
        <complexType>
            <complexContent>
                <extension base="resolver:PluginDependencyType">
                    <attribute name="allAttributes" type="resolver:string"/>
                    <attribute name="attributeNames" type="resolver:string"/>
                </extension>
            </complexContent>
        </complexType>
    </element>
    <element name="FailoverDataConnector" type="resolver:PluginDependencyType">
        <annotation>
            <documentation>
                Defines a data connector to use should the parent data connector fail.
            </documentation>
        </annotation>
    </element>
    <complexType name="PluginDependencyType">
        <annotation>
            <documentation>An (abstract) type that represents a reference to another plugin</documentation>
        </annotation>
        <attribute name="ref" type="resolver:string" use="required"/>
    </complexType>

    <complexType name="LocalizedStringType">
        <simpleContent>
            <extension base="string">
                <attribute ref="xml:lang"/>
            </extension>
        </simpleContent>
    </complexType>

    <complexType name="ValueMapType">
        <annotation>
            <documentation>
                Performs many to one mapping of source values to a return value. SourceValue strings may include regular
                expressions and the ReturnValue may include back references to capturing groups as supported by
                java.util.regex.Pattern.
            </documentation>
        </annotation>
        <sequence>
            <element name="ReturnValue" type="string">
                <annotation>
                    <documentation>The value to be returned from this value map.</documentation>
                </annotation>
            </element>
            <element name="SourceValue" maxOccurs="unbounded">
                <annotation>
                    <documentation>A regular expression string to be matched against the incoming value.</documentation>
                </annotation>
                <complexType>
                    <simpleContent>
                        <extension base="string">
                            <attribute name="caseSensitive" type="resolver:string">
                                <annotation>
                                    <documentation>If true, value matching will be case-sensitive.</documentation>
                                </annotation>
                            </attribute>
                            <attribute name="partialMatch" type="resolver:string">
                                <annotation>
                                    <documentation>
                                        If true, the SourceValue may match only a substring of the incoming value. By
                                        default, it must match the entire value.
                                    </documentation>
                                </annotation>
                            </attribute>
                        </extension>
                    </simpleContent>
                </complexType>
            </element>
        </sequence>
    </complexType>

    <complexType name="ContextDerivedAttribute">
        <annotation>
            <documentation>A attribute definition to pull attribute values from anywhere in the PRC tree</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="attributeValuesFunctionRef" type="resolver:string" use="required">
                    <annotation>
                        <documentation>The Function to generate the Attribute Values given a PRC</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="Mapped">
        <annotation>
            <documentation>
                The mapped attribute definition performs a many to many mapping from source attributes values provided
                by the definition's dependencies to values which are returned. Each source value is passed through each
                defined ValueMap which may result in one or more resulting values. If no ValueMaps match the source
                value and a DefaultValue is defined, the DefaultValue is used.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                    <element name="DefaultValue">
                        <annotation>
                            <documentation>
                                A source value is mapped to the DefaultValue if none of the ValueMaps result in a match.
                                This string may not contain regular expression back references.
                            </documentation>
                        </annotation>
                        <complexType>
                            <simpleContent>
                                <extension base="string">
                                    <attribute name="passThru" type="resolver:string">
                                        <annotation>
                                            <documentation>
                                                If true, the source value is passed thru unmodified. If passThru is
                                                enabled, DefaultValue may not contain a string value.
                                            </documentation>
                                        </annotation>
                                    </attribute>
                                </extension>
                            </simpleContent>
                        </complexType>
                    </element>
                    <element name="ValueMap" type="resolver:ValueMapType" maxOccurs="unbounded"/>
                </choice>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="Prescoped">
        <annotation>
            <documentation>
                An attribute definition that splits the values of the source attribute into an attribute value
                with a value and scope.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="scopeDelimiter" type="resolver:string">
                    <annotation>
                        <documentation>Delimiter between the value and scope.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="PrincipalName">
        <annotation>
            <documentation>Exposes the principal's name as an attribute definition.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="RegexSplit">
        <annotation>
            <documentation>An attribute definition that splits the source attribute's values based on a regular expression.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="regex" type="resolver:string" use="required">
                    <annotation>
                        <documentation>The regular expression used to split a value.</documentation>
                    </annotation>
                </attribute>
                <attribute name="caseSensitive" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating the case sensitivity of the regular expression.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML1NameIdentifier">
        <annotation>
            <documentation>DEPRECATED: An attribute definition that creates attributes whose values are SAML 1 NameIdentifiers.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="nameIdFormat" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 1 NameFormat of the NameID.</documentation>
                    </annotation>
                </attribute>
                <attribute name="nameIdQualifier" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 1 NameQualifier of the NameID.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML2NameID">
        <annotation>
            <documentation>DEPRECATED: An attribute definition that creates attributes whose values are SAML 2 NameIDs.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="nameIdFormat" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 NameFormat of the NameID.</documentation>
                    </annotation>
                </attribute>
                <attribute name="nameIdQualifier" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 NameQualifier of the NameID.</documentation>
                    </annotation>
                </attribute>
                <attribute name="nameIdSPQualifier" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 SPNameQualifier of the NameID.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="Scoped">
        <annotation>
            <documentation>A basic attribute definition which supports attribute scoping.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="scope" type="resolver:string">
                    <annotation>
                        <documentation>Value to use for scoping the attribute.</documentation>
                    </annotation>
                </attribute>
                <attribute name="scopeFromDependency" type="resolver:string">
                    <annotation>
                        <documentation>Attribute whose values will be used for scoping the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="ScriptedAttribute">
        <annotation>
            <documentation>
                An attribute definition that constructs its attributes by means of a script supported by JSR-223. The
                script is provided all the edu.internet2.middleware.shibboleth.common.attribute.Attribute object
                resolved from all the definitions dependencies. The resultant attribute definition must then be bound to
                a script attribute corresponding to the script variable whose name is the ID of the definition. This
                variable is injected into the script by the attribute definition.

            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                    <element name="Script" type="resolver:string">
                        <annotation>
                            <documentation>The script to evaluate to construct the attribute.</documentation>
                        </annotation>
                    </element>
                    <element name="ScriptFile" type="resolver:string">
                        <annotation>
                            <documentation>
                                The filesystem path to the script to evaluate to construct the attribute.
                            </documentation>
                        </annotation>
                    </element>
                </choice>
                <attribute name="language" type="resolver:string">
                    <annotation>
                        <documentation>
                            The JSR-233 name for the scripting language that will be used. By default "javascript" is
                            supported.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="customObjectRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            The name of a bean defined somewhere else which will be injected into the script as an
                            object called "custom".  If not supplied, nothing is injected.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="Simple">
        <annotation>
            <documentation>A basic attribute definition.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="ignoreNullValues" type="resolver:string">
                    <annotation>
                        <documentation>Do we drop null values (default: FALSE)</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="DateTime">
        <annotation>
            <documentation>An attribute definition producing date/time values.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="ignoreConversionErrors" type="resolver:string">
                    <annotation>
                        <documentation>Are conversion errors ignored? (default: FALSE)</documentation>
                    </annotation>
                </attribute>
                <attribute name="epochInSeconds" type="resolver:string">
                    <annotation>
                        <documentation>
                            Use seconds as epoch unit instead of millseconds when converting numeric data (default: TRUE)
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="formattingString" type="resolver:string">
                    <annotation>
                        <documentation>A formatting string to use converting string data.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>
    
    <complexType name="Decrypted">
        <annotation>
            <documentation>An attribute definition involving an encrypted (DataSealed) attribute</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="dataSealerRef" type="resolver:string">
                    <annotation>
                        <documentation>Value to use for the decryption key</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SubjectDerivedAttribute">
        <annotation>
            <documentation>A attribute definition to pull attribute values from the Principals.  A short cut looks at IdPAttributePrincipals</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                </choice>
                <attribute name="attributeValuesFunctionRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Provides a plug in point to allow general extraction of values from Principals.
                            Mutually exclusive with principalAttributeName.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="principalAttributeName" type="resolver:string">
                    <annotation>
                        <documentation>
                            The id of the IdPAttribute contained within a IdPAttributePrincipal to look for.
                            Mutually exclusive with attributeValueEngineRef.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="forCanonicalization" type="resolver:string">
                    <annotation>
                        <documentation>
                            If true, the source Subject is assumed to be undergoing C14N rather than the
                            usual post-authentication source. Defaults to false.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="Template">
        <annotation>
            <documentation>
                An Attribute Definition that constructs its values based on the values of its dependencies using the
                Velocity Template Language. Dependencies may have multiple values, however multiple dependencies must
                have the same number of values. In the case of multi-valued dependencies, the template will be evaluated
                multiples times, iterating over each dependency.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeDefinitionType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element name="DisplayName" type="resolver:LocalizedStringType"/>
                    <element name="DisplayDescription" type="resolver:LocalizedStringType"/>
                    <element ref="resolver:AttributeEncoder"/>
                    <element name="Template" type="resolver:string">
                        <annotation>
                            <documentation>
                                Template specified in the Velocity Template Language used to construct attribute values.
                            </documentation>
                        </annotation>
                    </element>
                </choice>
                <attribute name="velocityEngine" type="resolver:string">
                    <annotation>
                        <documentation>Name of the velocity engine defined within the application.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="ComputedId">
        <annotation>
            <documentation>
                An ID created by digesting the requesting entityID, an attribute value (usually a user identifier), and a salt.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element ref="resolver:FailoverDataConnector"/>
                </choice>
                <attribute name="generatedAttributeID" type="resolver:string">
                    <annotation>
                        <documentation>
                            The name of the attribute produced by this data connector.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="salt" type="resolver:string">
                    <annotation>
                        <documentation>
                            A salt, of at least 16 bytes, used in the computed ID.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="encodedSalt" type="resolver:string">
                    <annotation>
                        <documentation>
                            A base64-encoded salt, of at least 16 bytes, used in the computed ID.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="algorithm" type="resolver:string">
                    <annotation>
                        <documentation>
                            The JCE digest algorithm to use, defaults to SHA-1.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="encoding" type="resolver:string">
                    <annotation>
                        <documentation>
                            An encoding type to apply after the digest, defaults to BASE64 but should
                            be set to BASE32.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="exceptionMapRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Spring bean reference to a map of overrides that alter salt or suppress generation
                            for particular users/services.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="saltLookupStrategyRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Spring bean reference to a BiFunction&lt;ProfileRequestContext,PairwiseId&gt; 
                            to obtain the salt.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="LDAPDirectory">
        <annotation>
            <documentation>
                A data connector that can pull information from an LDAP, version 3, directory.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element ref="resolver:FailoverDataConnector"/>
                    <element name="FilterTemplate" type="resolver:string">
                        <annotation>
                            <documentation>
                                A template used to construct the LDAP filter used to query the directory.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="ReturnAttributes" type="resolver:string" minOccurs="0">
                        <annotation>
                            <documentation>
                                A space separated list of attributes that should be returned from the query.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="BinaryAttributes" type="resolver:string" minOccurs="0">
                        <annotation>
                            <documentation>
                                A space separated list of attributes whose values should be encoded.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="StartTLSTrustCredential" type="sec:X509Credential">
                        <annotation>
                            <documentation>
                                The X.509 trust information to use when connecting to the directory over LDAPS or startTLS.
                                DEPRECATED in 3.4 Use trustFile=
                            </documentation>
                        </annotation>
                    </element>
                    <element name="StartTLSAuthenticationCredential" type="sec:X509Credential">
                        <annotation>
                            <documentation>
                                The X.509 client authentication information to use when connecting to the directory over LDAPS or startTLS.
                                DEPRECATED in 3.4 Use authCert= and authKey
                            </documentation>
                        </annotation>
                    </element>
                    <element name="ConnectionPool" type="resolver:LdapPoolConfigType"/>
                    <element name="SASLConfig" type="resolver:SaslConfigType"/>
                    <element name="Column" type="resolver:ColumnType"/>
                    <element name="ResultCache" type="resolver:CacheConfigType"/>
                    <element name="ResultCacheBean" type="string"/>
                </choice>
                <attribute name="ldapURL" type="resolver:string">
                    <annotation>
                        <documentation>
                        The URL to the LDAP server.
                        If the search scope is set to ONELEVEL only the entries
                        within this node will be searched, if SUBTREE is specified entries within this node and descendant
                        nodes will be searched.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="connectionStrategy" type="resolver:string">
                    <annotation>
                        <documentation>
                            The LDAP connection strategy. Acceptable values are ACTIVE_PASSIVE, ROUND_ROBIN and RANDOM.
                            Default value is ACTIVE_PASSIVE.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="baseDN" type="resolver:string">
                    <annotation>
                        <documentation>
                            The base DN from which attribute search filtering occurs
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="principal" type="resolver:string">
                    <annotation>
                        <documentation>The DN for the principal connecting to the LDAP directory.</documentation>
                    </annotation>
                </attribute>
                <attribute name="principalCredential" type="string">
                    <annotation>
                        <documentation>
                            The credential for the principal connecting to the LDAP directory.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="searchScope" type="resolver:string">
                    <annotation>
                        <documentation>
                            The LDAP search scope. Acceptable values are OBJECT, ONELEVEL, SUBTREE.
                            Default value is SUBTREE.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="derefAliases" type="resolver:string">
                    <annotation>
                        <documentation>
                            The LDAP alias dereference behavior. Acceptable values are NEVER, SEARCHING, FINDING, ALWAYS.
                            Default value is NEVER.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="followReferrals" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether search referrals and search references should be followed.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="useStartTLS" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether startTLS should be used when connecting to the LDAP.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="startTLSTimeout" type="resolver:string">
                    <annotation>
                        <documentation>
                            The maximum amount of time to wait for startTLS responses. If this limit is
                            reached a timeout error is raised. Default value is 3 seconds.
                            Time is expressed in ISO8601 duration format.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="searchTimeLimit" type="resolver:string">
                    <annotation>
                        <documentation>
                            The maximum amount of time to wait for search results. If this limit is
                            reached a timeout error is raised. Default value is 3 seconds.
                            Time is expressed in ISO8601 duration format.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="connectTimeout" type="resolver:string">
                    <annotation>
                        <documentation>
                            The maximum amount of time to wait for connections to open. If this limit is
                            reached a timeout error is raised. Default value is 3 seconds.
                            Time is expressed in ISO8601 duration format.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="responseTimeout" type="resolver:string">
                    <annotation>
                        <documentation>
                            The maximum amount of time to wait for operation responses. If this limit is
                            reached a timeout error is raised. Default value is 3 seconds.
                            Time is expressed in ISO8601 duration format.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="autoReconnect" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether unexpectedly closed connections should automatically attempt to reconnect.
                            Default value is true.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="reconnectTimeout" type="resolver:string">
                    <annotation>
                        <documentation>
                            The maximum amount of time to wait for a reconnect to occur. If this limit is
                            reached a timeout error is raised. Default value is 10 seconds.
                            Time is expressed in ISO8601 duration format.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="maxResultSize" type="resolver:string">
                    <annotation>
                        <documentation>
                            The maximum number of results that may be returned from a query.
                            Default value is 1.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="noResultIsError" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether a query returning no results should be considered an error. If
                            an error is raised and a failover dependency is defined for this connector the failover will
                            be invoked.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="multipleResultsIsError" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether a query returning more than one result should be considered an error. If
                            an error is raised and a failover dependency is defined for this connector the failover will
                            be invoked.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="lowercaseAttributeNames" type="resolver:string">
                    <annotation>
                        <documentation>
                            Whether to lowercase LDAP attribute names used as IDs for shibboleth attributes
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="templateEngine" type="resolver:string">
                    <annotation>
                        <documentation>Name of the template engine defined within the application.</documentation>
                    </annotation>
                </attribute>
                <attribute name="executableSearchBuilderRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the ExecutableSearchBuilder implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="mappingStrategyRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the MappingStrategy implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="connectionFactoryRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the Connection Factory implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="searchOperationRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the Search Operation implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="validatorRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the Validator implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="trustFile" type="resolver:string">
                    <annotation>
                        <documentation>
                            Path to a file with the X.509 trust information to use when connecting to the directory over LDAPS or startTLS
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="disableHostnameVerification" type="resolver:string">
                    <annotation>
                        <documentation>
                            Whether to disable hostname/certificate checking during TLS. Defaults to false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="authCert" type="resolver:string">
                    <annotation>
                        <documentation>
                            Path to a file with the X.509 trust client authentication certificate to use when connecting to the directory over LDAPS or startTLS
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="authKey" type="resolver:string">
                    <annotation>
                        <documentation>
                            Path to a file with the X.509 trust client authentication key to use when connecting to the directory over LDAPS or startTLS
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="authKeyPassword" type="string">
                    <annotation>
                        <documentation>
                            Password for the supplied authKey
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="failFastInitialize" type="resolver:string">
                    <annotation>
                        <documentation>
                            Whether to fail if the LDAP server cannot be verified at startup (defaults to false).
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="PairwiseId">
        <annotation>
            <documentation>
                A connector for pairwise ID production that directly leverages a PairwiseIdStore bean. 
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element ref="resolver:FailoverDataConnector"/>
                </choice>
                <attribute name="pairwiseIdStoreRef" type="resolver:string" use="required">
                    <annotation>
                        <documentation>
                            Bean name of the PairwiseIdStore to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="generatedAttributeID" type="resolver:string">
                    <annotation>
                        <documentation>
                            The name of the attribute produced by this data connector.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="RelationalDatabase">
        <annotation>
            <documentation>
                A data connector definition that uses JDBC version 3 to connect to and pull information from a
                relational database.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element ref="resolver:FailoverDataConnector"/>
                    <element ref="resolver:ContainerManagedConnection">
                        <annotation>
                            <documentation>
                                A connection, or pool of connections, to the database managed by the application
                                container.
                            </documentation>
                        </annotation>
                    </element>
                    <element ref="resolver:SimpleManagedConnection">
                        <annotation>
                            <documentation>
                                A connection, or pool of connections, to the database managed by the data connector.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="BeanManagedConnection" type="string">
                        <annotation>
                            <documentation>
                                A connection, or pool of connections, to the database configured in a Spring bean.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="QueryTemplate" type="resolver:string"  minOccurs="0">
                        <annotation>
                            <documentation>
                                A template that will be used to create the SQL query thats pulls information from the
                                database.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="Column" type="resolver:ColumnType"/>
                    <element name="ResultCache" type="resolver:CacheConfigType"/>
                    <element name="ResultCacheBean" type="resolver:string"/>
                </choice>
                <attribute name="queryTimeout" type="resolver:string">
                    <annotation>
                        <documentation>
                            Timeout for the queries made to the database.
                            Timeout is given in ISO8601 duration form.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="noResultIsError" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether a query returning no results should be considered an error. If
                            an error is raised and a failover dependency is defined for this connector the failover will
                            be invoked.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="multipleResultsIsError" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether a query returning more than one result should be considered an error. If
                            an error is raised and a failover dependency is defined for this connector the failover will
                            be invoked.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="templateEngine" type="resolver:string">
                    <annotation>
                        <documentation>
                            Name of the template engine defined within the application.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="executableSearchBuilderRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the ExecutableSearchBuilder implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="mappingStrategyRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the MappingStrategy implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="validatorRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the Validator implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="failFastInitialize" type="resolver:string">
                    <annotation>
                        <documentation>
                            Whether to fail if the DataConnector cannot be verified at startup (defaults to false).
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="HTTP">
        <annotation>
            <documentation>
                A data connector definition that issues requests and parses responses using HTTP, typically
                via a form of web service. REST and scripted handling of responses, typically in JSON,
                is the primary use case.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice maxOccurs="unbounded">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>                                        
                    <element ref="resolver:FailoverDataConnector"/>
                    <element name="URLTemplate">
                        <annotation>
                            <documentation>
                                A template that will be used to create the absolute URL to request.
                            </documentation>
                        </annotation>
                        <complexType>
                            <simpleContent>
                                <extension base="string">
                                    <attribute name="customObjectRef" type="resolver:string" />
                                </extension>
                            </simpleContent>
                        </complexType>
                    </element>
                    <element name="BodyTemplate">
                        <annotation>
                            <documentation>
                                A template that will be used to create a body to POST.
                            </documentation>
                        </annotation>
                        <complexType>
                            <simpleContent>
                                <extension base="string">
                                    <attribute name="MIMEType" type="resolver:string" />
                                    <attribute name="charset" type="resolver:string" />
                                    <attribute name="customObjectRef" type="resolver:string" />
                                </extension>
                            </simpleContent>
                        </complexType>
                    </element>
                    <element name="CacheKeyTemplate" type="resolver:string">
                        <annotation>
                            <documentation>
                                A template that will be used to create a key to the caching of the results.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="ResponseMapping" type="resolver:ScriptType">
                        <annotation>
                            <documentation>Maps the response into attributes by means of scripting.</documentation>
                        </annotation>
                    </element>
                    <element name="ResultCache" type="resolver:CacheConfigType"/>
                    <element name="ResultCacheBean" type="resolver:string"/>
                </choice>
                <attribute name="httpClientRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the HttpClient to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="httpClientSecurityParametersRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the HttpClientSecurityParameters to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="serverCertificate" type="resolver:string">
                    <annotation>
                        <documentation>
                            Location of certificate to authenticate HTTP server
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="certificateAuthority" type="resolver:string">
                    <annotation>
                        <documentation>
                            Location of CA to indirectly authenticate HTTP server
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="clientPrivateKey" type="resolver:string">
                    <annotation>
                        <documentation>
                            Location of private key to authenticate with via TLS
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="clientCertificate" type="resolver:string">
                    <annotation>
                        <documentation>
                            Location of client certificate to authenticate with via TLS
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="templateEngine" type="resolver:string">
                    <annotation>
                        <documentation>
                            Name of the template engine defined within the application.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="maxLength" type="resolver:string">
                    <annotation>
                        <documentation>
                            Maximum size of response body to accept.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="acceptStatuses" >
                    <annotation>
                        <documentation>
                            A space-delimited list of HTTP status codes that should be treated as successful.
                        </documentation>
                    </annotation>
                    <simpleType>
                        <list itemType="string"/>
                    </simpleType>
                </attribute>
                <attribute name="acceptTypes" >
                    <annotation>
                        <documentation>
                            A space-delimited list of MIME content types that should be accepted. 
                        </documentation>
                    </annotation>
                    <simpleType>
                        <list itemType="string"/>
                    </simpleType>
                </attribute>
                <attribute name="headerMapRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing a Map&lt;String,String&gt; of request headers to set.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="executableSearchBuilderRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the ExecutableSearchBuilder implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="mappingStrategyRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the MappingStrategy implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="validatorRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the Validator implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="failFastInitialize" type="resolver:string">
                    <annotation>
                        <documentation>
                            Whether to fail if the HTTP server cannot be verified at startup (defaults to false).
                            No verification takes place currently.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="ScriptedDataConnector">
        <annotation>
            <documentation>
                A data connector that constructs attributes by means of a script supported by JSR-223.  Populated
                Attributes are added to the java.util.Collection "connectorResults".
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice  maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element ref="resolver:FailoverDataConnector"/>
                    <element name="Script" type="resolver:string">
                        <annotation>
                            <documentation>The script to evaluate to construct the attribute.</documentation>
                        </annotation>
                    </element>
                    <element name="ScriptFile" type="resolver:string">
                        <annotation>
                            <documentation>
                                The filesystem path to the script to evaluate to construct the attribute.
                            </documentation>
                        </annotation>
                    </element>
                </choice>
                <attribute name="language" type="resolver:string">
                    <annotation>
                        <documentation>
                            The JSR-233 name for the scripting language that will be used. By default "javascript" is
                            supported.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="customObjectRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            The name of a bean defined somewhere else which will be injected into the script as an
                            object called "custom".  If not supplied, nothing is injected.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="Static">
        <annotation>
            <documentation>
                A data connector that gets its information from a static list of attributes and values specified within
                this configuration.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <sequence>
                    <element name="Attribute" minOccurs="0" maxOccurs="unbounded">
                        <annotation>
                            <documentation>
                                Specifies an attribute, and its values, to be exposed by this connector.
                            </documentation>
                        </annotation>
                        <complexType>
                            <sequence>
                                <element name="Value" type="resolver:string" maxOccurs="unbounded">
                                    <annotation>
                                        <documentation>
                                            A value of the attribute. If the value contains characters that would
                                            otherwise need to be XML encoded you may wrap the value in a CDATA section.
                                        </documentation>
                                    </annotation>
                                </element>
                            </sequence>
                            <attribute name="id" type="resolver:string" use="required">
                                <annotation>
                                    <documentation>The ID of the attribute.</documentation>
                                </annotation>
                            </attribute>
                        </complexType>
                    </element>
                </sequence>
                <attribute name="attributeListRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            The name of a bean defined somewhere else which describes a List of IdPAttributes
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="StorageService">
        <annotation>
            <documentation>
                A data connector definition that queries for a record via the IdP's StorageService API.
                Simple and scripted handling of records, typically in JSON, is the primary use case.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice maxOccurs="unbounded">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>                                        
                    <element ref="resolver:FailoverDataConnector"/>
                    <element name="ContextTemplate" type="resolver:string">
                        <annotation>
                            <documentation>
                                A template that will be used to create the context to query.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="KeyTemplate" type="resolver:string">
                        <annotation>
                            <documentation>
                                A template that will be used to create the key to query.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="RecordMapping" type="resolver:ScriptType">
                        <annotation>
                            <documentation>
                                Maps the record into attributes by means of scripting.
                                Mutually exclusive with generatedAttributeID attribute.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="ResultCache" type="resolver:CacheConfigType"/>
                    <element name="ResultCacheBean" type="resolver:string"/>
                </choice>
                <attribute name="storageServiceRef" type="resolver:string" use="required">
                    <annotation>
                        <documentation>
                            Reference to Spring bean of the StorageService to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="customObjectRef" type="resolver:string">
                    <annotation>
                        <documentation>
                        Injected object into Context/Key template building process.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="generatedAttributeID" type="resolver:string">
                    <annotation>
                        <documentation>
                            The name of the attribute produced by this data connector if simple
                            record mapping is used. Mutually exclusive with ResponseMapping element.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="noResultIsError" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether a search returning no record should be considered an error. If
                            an error is raised and a failover dependency is defined for this connector the failover will
                            be invoked.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="templateEngine" type="resolver:string">
                    <annotation>
                        <documentation>
                            Name of the template engine defined within the application.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="executableSearchBuilderRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the ExecutableSearchBuilder implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="mappingStrategyRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Reference to a Spring bean providing the MappingStrategy implementation to use.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="StoredId">
        <annotation>
            <documentation>
                A connector that retrieves a pairwise ID from a database.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <choice  maxOccurs="unbounded" minOccurs="0">
                    <element ref="resolver:InputAttributeDefinition"/>
                    <element ref="resolver:InputDataConnector"/>
                    <element ref="resolver:FailoverDataConnector"/>
                    <element ref="resolver:SimpleManagedConnection"/>
                    <element ref="resolver:ContainerManagedConnection">
                        <annotation>
                            <documentation>
                                A connection, or pool of connections, to the database managed by the application
                                container.
                            </documentation>
                        </annotation>
                    </element>
                    <element name="BeanManagedConnection" type="resolver:string">
                        <annotation>
                            <documentation>
                                A connection, or pool of connections, to the database configured in a Spring bean.
                            </documentation>
                        </annotation>
                    </element>
                </choice>
                <attribute name="queryTimeout" type="resolver:string">
                    <annotation>
                        <documentation>
                            Timeout for the queries made to the database.
                            Timeout is given in ISO8601 duration form.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="transactionRetries" type="resolver:string">
                    <annotation>
                        <documentation>
                            Number of retries if insert fails (defaults to 3).
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="tableName" type="resolver:string">
                    <annotation>
                        <documentation>
                            Overrides name of database table to use.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="failFastInitialize" type="resolver:string">
                    <annotation>
                        <documentation>
                            Whether to fail if the store cannot be verified at startup (defaults to false).
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="retryableErrors">
                    <annotation>
                        <documentation>
                            A space-delimited list of SQLState codes to treat as retryable (indicating
                            a duplicate insert error occurred).
                        </documentation>
                    </annotation>
                    <simpleType>
                        <list itemType="string"/>
                    </simpleType>
                </attribute>
                <attribute name="generatedAttributeID" type="resolver:string">
                    <annotation>
                        <documentation>
                            The name of the attribute produced by this data connector.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="salt" type="resolver:string">
                    <annotation>
                        <documentation>
                            A salt, of at least 16 bytes, used in the computed ID.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="encodedSalt" type="resolver:string">
                    <annotation>
                        <documentation>
                            A base64-encoded salt, of at least 16 bytes, used in the computed ID.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="algorithm" type="resolver:string">
                    <annotation>
                        <documentation>
                            The JCE digest algorithm to use, defaults to SHA-1.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="encoding" type="resolver:string">
                    <annotation>
                        <documentation>
                            An encoding type to apply after the digest, defaults to BASE64 but should
                            be set to BASE32.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="exceptionMapRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Spring bean reference to a map of overrides that alter salt or suppress generation
                            for particular users/services.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="saltLookupStrategyRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Spring bean reference to a BiFunction&lt;ProfileRequestContext,PairwiseId&gt; 
                            to obtain the salt.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>
    
    <complexType name="Subject">
        <annotation>
            <documentation>
                A data connector that constructs attributes by extracting all IdPAttributePrincipal objects
                found within the Subject(s) associated with the requests.
                
                This is a streamlined approach to extracting them one by one with the SubjectDerivedAttribute
                plugin provided encoding and other attribute metadata can be obtained from the system's
                generalized transcoding facility.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <sequence>
                    <element ref="resolver:FailoverDataConnector" minOccurs="0" maxOccurs="1"/>
                </sequence>
                <attribute name="noResultIsError" type="resolver:string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether an absence of any results will cause an error. If an error
                            is raised and a failover dependency is defined for this connector the failover will be invoked.
                            Default value is false.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="forCanonicalization" type="resolver:string">
                    <annotation>
                        <documentation>
                            If true, the source Subject is assumed to be undergoing C14N rather than the
                            usual post-authentication source. Defaults to false.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>
    
    <complexType name="EntityAttributes">
        <annotation>
            <documentation>
                A connector for extracting mapped/decoded metadata tags from a peer's metadata. 
            </documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseDataConnectorType">
                <attribute name="metadataContextStrategyRef" type="resolver:string">
                    <annotation>
                        <documentation>
                            Bean ID of a Function to locate the SAMLMetadataContext to operate on.
                            Default is to locate it under the inbound message context via SAMLPeerEntityContext.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <!--  Support types for DataConnectors  -->

    <complexType name="ColumnType">
        <attribute name="columnName" type="resolver:string" use="required">
            <annotation>
                <documentation>The name of the database column.</documentation>
            </annotation>
        </attribute>
        <attribute name="attributeID" type="resolver:string">
            <annotation>
                <documentation>The name of the attribute that data from this column should be added to.</documentation>
            </annotation>
        </attribute>
    </complexType>

    <complexType name="SaslConfigType">
        <choice maxOccurs="unbounded" minOccurs="0">
            <element name="SASLProperty" type="resolver:PropertyType">
                <annotation>
                    <documentation>
                        SASL configuration properties.
                        Common properties include javax.security.sasl.qop, javax.security.sasl.strength, javax.security.sasl.server.authentication.
                    </documentation>
                </annotation>
            </element>
        </choice>
        <attribute name="mechanism" type="resolver:string">
            <annotation>
                <documentation>
                    The SASL mechanism. Common values are EXTERNAL, DIGEST_MD5, CRAM_MD5, GSSAPI
                </documentation>
            </annotation>
        </attribute>
        <attribute name="authorizationId" type="resolver:string">
            <annotation>
                <documentation>SASL authorization ID.</documentation>
            </annotation>
        </attribute>
        <attribute name="realm" type="resolver:string">
            <annotation>
                <documentation>The SASL realm.</documentation>
            </annotation>
        </attribute>
    </complexType>

    <complexType name="LdapPoolConfigType">
        <attribute name="minPoolSize" type="resolver:string">
            <annotation>
                <documentation>
                    The minimum number of ldap connections that should always be available in the pool.
                    Note that these connections are provisioned as soon as the pool is initialized.
                    Default value is 0.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="maxPoolSize" type="resolver:string">
            <annotation>
                <documentation>
                    The maximum number of ldap connections that should ever be available in the pool.
                    Note that when this threshold is reach the pool will begin blocking until a connection
                    is available.
                    Default value is 3.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="blockWaitTime" type="resolver:string">
            <annotation>
                <documentation>
                    Amount of time to block while waiting for a connection from the pool.  If no
                    wait time is given, callers will block indefinitely.

                    Values are expressed in ISO8601 duration format.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="validatePeriodically" type="resolver:string">
            <annotation>
                <documentation>
                    Whether each ldap connection should be checked on a periodic basis.
                    Default value is false.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="validateTimerPeriod" type="resolver:string">
            <annotation>
                <documentation>
                    Time that the periodic pool validation process should repeat.
                    Ldap objects are pruned when they have been idle beyond the expiration time.
                    The pool is not pruned below the minimum pool size.
                    Default value is 30 minutes.

                    Period is expressed in ISO8601 duration format.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="validateDN" type="resolver:string">
            <annotation>
                <documentation>
                    Ldap compare DN to use for connection validation.
                    Used in conjunction with validateFilter to perform a compare.
                    Default value is empty.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="validateFilter" type="resolver:string">
            <annotation>
                <documentation>
                    Ldap compare filter to use for connection validation.
                    Used in conjunction with validateDN to perform a compare.
                    Default value is (objectClass=*).
                </documentation>
            </annotation>
        </attribute>
        <attribute name="validateOnCheckout" type="resolver:string">
            <annotation>
                <documentation>
                    Whether to validate connections when checking them out of the pool.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="prunePeriod" type="resolver:string">
            <annotation>
                <documentation>
                    Duration between looking for idle connections to reduce the pool back
                    to its minimum size.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="expirationTime" type="resolver:string">
            <annotation>
                <documentation>
                    Time in that an object in the pool should be considered stale and ready for removal.
                    Time is expressed in ISO8601 duration format.
                </documentation>
            </annotation>
        </attribute>
    </complexType>

    <complexType name="CacheConfigType">
        <attribute name="cacheManagerRef" type="resolver:string">
        <annotation>
                <documentation>
                    Name of the CacheManager bean that will manage the result cache.  This is not used.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="expireAfterAccess" type="resolver:string">
        <annotation>
                <documentation>
                    Length of time a result will be cached after the last access.
                    Incompatible with expireAfterWrite.

                    Duration is expressed in ISO8601 duration notation.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="expireAfterWrite" type="resolver:string">
        <annotation>
                <documentation>
                    Length of time a result will be cached from the time
                    it is inserted into the cache.
                    Incompatible with expireAfterAccess.

                    Duration is expressed in ISO8601 duration notation.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="maximumCachedElements" type="resolver:string">
        <annotation>
                <documentation>
                   Maximum number of results that will be held in cache.
                </documentation>
            </annotation>
        </attribute>
    </complexType>

    <element name="ContainerManagedConnection" type="resolver:ContainerManagedConnectionType">
        <annotation>
            <documentation>
                Describes a database connection source that is managed by the application container.
            </documentation>
        </annotation>
    </element>

    <complexType name="ContainerManagedConnectionType">
        <attribute name="resourceName" type="resolver:string" use="required">
            <annotation>
                <documentation>The resource name the DataSource is bound to in the JNDI tree.</documentation>
            </annotation>
        </attribute>
    </complexType>

    <complexType name="PropertyType">
        <attribute name="name" type="resolver:string" use="required">
            <annotation>
                <documentation>The name of the property.</documentation>
            </annotation>
        </attribute>
        <attribute name="value" type="resolver:string" use="required">
            <annotation>
                <documentation>The value of the property,</documentation>
            </annotation>
        </attribute>
    </complexType>
    
    <element name="SimpleManagedConnection" type="resolver:SimpleManagedConnectionType">
        <annotation>
            <documentation>
                Describes a simple database connection source that is managed by the attribute resolver data connector.
                Included to "get people going" only
            </documentation>
        </annotation>
    </element>

    <complexType name="SimpleManagedConnectionType">
        <attribute name="jdbcDriver" type="resolver:string" use="required">
            <annotation>
                <documentation>
                    This is the full qualified class name of the JDBC driver used to connect to the database.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="jdbcURL" type="resolver:string" use="required">
            <annotation>
                <documentation>
                    The JDBC URL for the database. These are usually of the form
                    jdbc:databaseProduceName:databaseSpecificInformation. For example, jdbc:hsql:mem:MyDatabase
                </documentation>
            </annotation>
        </attribute>
        <attribute name="jdbcUserName" type="resolver:string">
            <annotation>
                <documentation>The user name to use while connecting to the database.</documentation>
            </annotation>
        </attribute>
        <attribute name="jdbcPassword" type="string">
            <annotation>
                <documentation>The password to use while connecting to the database.</documentation>
            </annotation>
        </attribute>
    </complexType>

    <!-- Encoders that produce SAML 1 or SAML 2 Attributes -->
    <complexType name="SAML1String">
        <annotation>
            <documentation>Defines a SAML 1 string encoder for an attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="namespace" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 1 Namespace of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML1Base64">
        <annotation>
            <documentation>Defines a SAML 1 Base64 encoder for an attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="namespace" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 1 Namespace of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML1XMLObject">
        <annotation>
            <documentation>Defines a SAML 1 Base64 encoder for an attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="namespace" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 1 Namespace of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML2String">
        <annotation>
            <documentation>Defines a SAML 2 string encoder for an attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="nameFormat" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 NameFormat of the attribute.</documentation>
                    </annotation>
                </attribute>
                <attribute name="friendlyName" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 FriendlyName of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML2DateTime">
        <annotation>
            <documentation>Defines a SAML 2 date/time encoder for an attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="nameFormat" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 NameFormat of the attribute.</documentation>
                    </annotation>
                </attribute>
                <attribute name="friendlyName" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 FriendlyName of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML2Base64">
        <annotation>
            <documentation>Defines a SAML 2 Base64 encoder for an attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="nameFormat" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 NameFormat of the attribute.</documentation>
                    </annotation>
                </attribute>
                <attribute name="friendlyName" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 FriendlyName of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML2XMLObject">
        <annotation>
            <documentation>Defines a SAML 2 Base64 encoder for an attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="nameFormat" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 NameFormat of the attribute.</documentation>
                    </annotation>
                </attribute>
                <attribute name="friendlyName" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 FriendlyName of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="BaseScopedAttributeEncoderType">
        <annotation>
            <documentation>Defines an encoder for a scoped attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseAttributeEncoderType">
                <attribute name="scopeType" type="resolver:string">
                    <annotation>
                        <documentation>
                            The type of scoping to use for the encoded attribute. Valid values are "inline" or
                            "attribute".
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="scopeDelimiter" type="resolver:string">
                    <annotation>
                        <documentation>
                            If scopeType is "inline", this is the delimeter used between the attribute value and
                            scope.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="scopeAttribute" type="resolver:string">
                    <annotation>
                        <documentation>
                            If scopeType is "attribute", this is the name of the name of the attribute used to carry the
                            scope value.
                        </documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML1ScopedString">
        <annotation>
            <documentation>Defines a SAML 1 string encoder for a scoped attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseScopedAttributeEncoderType">
                <attribute name="namespace" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 1 Namespace of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <complexType name="SAML2ScopedString">
        <annotation>
            <documentation>Defines a SAML 2 string encoder for a scoped attribute.</documentation>
        </annotation>
        <complexContent>
            <extension base="resolver:BaseScopedAttributeEncoderType">
                <attribute name="nameFormat" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 NameFormat of the attribute.</documentation>
                    </annotation>
                </attribute>
                <attribute name="friendlyName" type="resolver:string">
                    <annotation>
                        <documentation>The SAML 2 FriendlyName of the attribute.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

    <!-- Reusable type for inline scripting. -->

    <complexType name="ScriptType">
        <annotation>
            <documentation>
                A type for elements that allow for scripts to be declared inline or via a resource.
            </documentation>
        </annotation>
        <choice>
            <element name="Script" type="resolver:string">
                <annotation>
                    <documentation>The script to evaluate to construct the attribute.</documentation>
                </annotation>
            </element>
            <element name="ScriptFile" type="resolver:string">
                <annotation>
                    <documentation>
                        Path of a local resource containing the script to evaluate to construct the attribute.
                    </documentation>
                </annotation>
            </element>
        </choice>
        <attribute name="language" type="resolver:string">
            <annotation>
                <documentation>
                    The JSR-233 name for the scripting language that will be used.
                    By default "javascript" is assumed.
                </documentation>
            </annotation>
        </attribute>
        <attribute name="customObjectRef" type="resolver:string">
            <annotation>
                <documentation>
                    The name of a bean defined somewhere else which will be injected into the script as an
                    object called "custom". If not supplied, nothing is injected.
                </documentation>
            </annotation>
        </attribute>
    </complexType>
    
    <simpleType name="string">
        <restriction base="string">
            <minLength value="1"/>
        </restriction>
    </simpleType>

</schema>