Configure logging with <Logging> element in origin.xml.
[java-idp.git] / src / schemas / origin.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema 
3         targetNamespace="urn:mace:shibboleth:origin:1.0" 
4         xmlns:xs="http://www.w3.org/2001/XMLSchema" 
5         xmlns:credentials="urn:mace:shibboleth:credentials:1.0" 
6         xmlns:namemapper="urn:mace:shibboleth:namemapper:1.0" 
7         xmlns:origin="urn:mace:shibboleth:origin:1.0" 
8         elementFormDefault="qualified" 
9         attributeFormDefault="unqualified">
10
11         <xs:import namespace="urn:mace:shibboleth:credentials:1.0" schemaLocation="credentials.xsd"/>
12         <xs:import namespace="urn:mace:shibboleth:namemapper:1.0" schemaLocation="namemapper.xsd"/>
13
14         <xs:simpleType name="LevelType">
15                 <xs:restriction base="xs:string">
16                         <xs:enumeration value="OFF"/>
17                         <xs:enumeration value="FATAL"/>
18                         <xs:enumeration value="ERROR"/>
19                         <xs:enumeration value="WARN"/>
20                         <xs:enumeration value="INFO"/>
21                         <xs:enumeration value="DEBUG"/>
22                 </xs:restriction>
23         </xs:simpleType>
24
25         <xs:complexType name="LogWithLevels">
26                 <xs:attribute name="location" type="xs:anyURI" use="required" />
27                 <xs:attribute name="level" type="origin:LevelType" use="optional" default="WARN" />
28         </xs:complexType>
29
30         <xs:complexType name="Log">
31                 <xs:attribute name="location" type="xs:anyURI" use="required"/>
32         </xs:complexType>
33
34         <xs:simpleType name="Log4JConfigType">
35                 <xs:restriction base="xs:string">
36                         <xs:enumeration value="properties"/>
37                         <xs:enumeration value="xml"/>
38                 </xs:restriction>
39         </xs:simpleType>
40
41         <xs:element name="ShibbolethOriginConfig">
42                 <xs:annotation>
43                         <xs:documentation>Configures the Shibboleth Origin software.</xs:documentation>
44                 </xs:annotation>
45                 <xs:complexType>
46                         <xs:sequence>
47                                 <xs:sequence>
48                                         <xs:element name="RelyingParty" maxOccurs="unbounded">
49                                                 <xs:complexType>
50                                                         <xs:sequence minOccurs="0">
51                                                                 <xs:element name="HSNameFormat">
52                                                                         <xs:complexType>
53                                                                                 <xs:attribute name="nameMapping" type="xs:string" use="required"/>
54                                                                         </xs:complexType>
55                                                                 </xs:element>
56                                                         </xs:sequence>
57                                                         <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
58                                                         <xs:attribute name="passThruErrors" type="xs:boolean" use="optional"/>
59                                                         <xs:attribute name="providerId" type="xs:anyURI" use="optional"/>
60                                                         <xs:attribute name="signingCredential" type="xs:string" use="optional"/>
61                                                         <xs:attribute name="name" type="xs:string" use="required"/>
62                                                         <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional"/>
63                                                 </xs:complexType>
64                                         </xs:element>
65                                 </xs:sequence>
66                                 <xs:element name="ReleasePolicyEngine" minOccurs="0">
67                                         <xs:complexType>
68                                                 <xs:sequence>
69                                                         <xs:element name="ArpRepository">
70                                                                 <xs:complexType>
71                                                                         <xs:sequence>
72                                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
73                                                                         </xs:sequence>
74                                                                         <xs:attribute name="implementation" type="xs:string" use="required"/>
75                                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
76                                                                 </xs:complexType>
77                                                         </xs:element>
78                                                 </xs:sequence>
79                                         </xs:complexType>
80                                 </xs:element>
81
82                                 <xs:element name="Logging" minOccurs="0" maxOccurs="1">
83                                         <xs:complexType>
84                                                 <xs:choice>
85                                                         <xs:sequence>
86                                                                 <xs:element name="ErrorLog" type="origin:LogWithLevels" minOccurs="0" maxOccurs="1" />
87                                                                 <xs:element name="TransactionLog" type="origin:Log" minOccurs="0" maxOccurs="1" />
88                                                         </xs:sequence>
89                                                         <xs:element name="Log4JConfig">
90                                                                 <xs:complexType>
91                                                                         <xs:attribute name="type" type="origin:Log4JConfigType" use="optional" default="properties" />
92                                                                         <xs:attribute name="location" type="xs:anyURI" use="required" />
93                                                                 </xs:complexType>
94                                                         </xs:element>
95                                                 </xs:choice>
96                                         </xs:complexType>
97                                 </xs:element>
98
99                                 <xs:sequence>
100                                         <xs:element ref="namemapper:NameMapping" maxOccurs="unbounded"/>
101                                 </xs:sequence>
102
103                                 <xs:element ref="credentials:Credentials"/>
104
105                         </xs:sequence>
106
107                         <xs:attribute name="resolverConfig" type="xs:string" use="optional" default="/conf/resolver.xml"/>
108                         <xs:attribute name="AAUrl" type="xs:anyURI" use="optional"/>
109                         <xs:attribute name="providerId" type="xs:anyURI" use="required"/>
110                         <xs:attribute name="defaultRelyingParty" type="xs:anyURI" use="required"/>
111                         <xs:attribute name="defaultAuthMethod" type="xs:string" use="optional" default="urn:oasis:names:tc:SAML:1.0:am:unspecified"/>
112                         <xs:attribute name="passThruErrors" type="xs:boolean" use="optional" default="false"/>
113                         <xs:attribute name="authHeaderName" type="xs:string" use="optional"/>
114                         <xs:attribute name="maxHSThreads" type="xs:integer" use="optional"/>
115                 </xs:complexType>
116         </xs:element>
117
118 </xs:schema>