Added option to Simple Attribute Definition PlugIn to force values to lower case...
[java-idp.git] / src / schemas / sstc-saml-schema-assertion-2.0.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <schema
3     targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
4     xmlns="http://www.w3.org/2001/XMLSchema"
5     xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
6     xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
7     xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
8     elementFormDefault="unqualified"
9     attributeFormDefault="unqualified"
10     blockDefault="substitution"
11     version="2.0">
12     <import namespace="http://www.w3.org/2000/09/xmldsig#"
13         schemaLocation="xmldsig-core-schema.xsd"/>
14     <import namespace="http://www.w3.org/2001/04/xmlenc#"
15         schemaLocation="xenc-schema.xsd"/>
16     <annotation>
17         <documentation>
18             Document identifier: sstc-saml-schema-assertion-2.0
19             Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=security
20             Revision history:
21             V1.0 (November, 2002):
22               Initial Standard Schema.
23             V1.1 (September, 2003):
24               Updates within the same V1.0 namespace.
25             V2.0 (August, 2004):
26               New assertion schema based in a SAML V2.0 namespace.
27         </documentation>
28     </annotation>
29     <group name="EncryptedType">
30         <sequence>
31             <element ref="xenc:EncryptedData"/>
32             <element ref="xenc:EncryptedKey" minOccurs="0" maxOccurs="unbounded"/>
33         </sequence>
34     </group>
35     <element name="BaseID" type="saml:BaseIDAbstractType"/>
36     <complexType name="BaseIDAbstractType" abstract="true" mixed="true">
37         <complexContent>
38             <extension base="anyType">
39                 <attribute name="NameQualifier" type="string" use="optional"/>
40                 <attribute name="SPNameQualifier" type="string" use="optional"/>
41             </extension>
42         </complexContent>
43     </complexType>
44     <element name="NameID" type="saml:NameIDType"/>
45     <complexType name="NameIDType" mixed="false">
46         <simpleContent>
47             <restriction base="saml:BaseIDAbstractType">
48                 <simpleType>
49                     <restriction base="string"/>
50                 </simpleType>
51                 <attribute name="Format" type="anyURI" use="optional"/>
52                 <attribute name="SPProvidedID" type="string" use="optional"/>
53             </restriction>
54         </simpleContent>
55     </complexType>
56     <element name="EncryptedID" type="saml:EncryptedIDType"/>
57     <complexType name="EncryptedIDType" mixed="false">
58         <complexContent>
59             <restriction base="saml:BaseIDAbstractType">
60                 <group ref="saml:EncryptedType"/>
61             </restriction>
62         </complexContent>
63     </complexType>
64     <element name="Issuer" type="saml:NameIDType"/>
65     <element name="AssertionIDRef" type="NCName"/>
66     <element name="AssertionURIRef" type="anyURI"/>
67     <element name="Assertion" type="saml:AssertionType"/>
68     <complexType name="AssertionType">
69         <sequence>
70             <element ref="saml:Issuer"/>
71             <element ref="ds:Signature" minOccurs="0"/>
72             <element ref="saml:Subject" minOccurs="0"/>
73             <element ref="saml:Conditions" minOccurs="0"/>
74             <element ref="saml:Advice" minOccurs="0"/>
75             <choice minOccurs="0" maxOccurs="unbounded">
76                 <element ref="saml:Statement"/>
77                 <element ref="saml:AuthnStatement"/>
78                 <element ref="saml:AuthzDecisionStatement"/>
79                 <element ref="saml:AttributeStatement"/>
80             </choice>
81         </sequence>
82         <attribute name="Version" type="string" use="required"/>
83         <attribute name="ID" type="ID" use="required"/>
84         <attribute name="IssueInstant" type="dateTime" use="required"/>
85     </complexType>
86     <element name="Subject" type="saml:SubjectType"/>
87     <complexType name="SubjectType">
88         <choice>
89             <sequence>
90                 <choice>
91                     <element ref="saml:BaseID"/>
92                     <element ref="saml:NameID"/>
93                     <element ref="saml:EncryptedID"/>
94                 </choice>
95                 <element ref="saml:SubjectConfirmation" minOccurs="0" maxOccurs="unbounded"/>
96             </sequence>
97             <element ref="saml:SubjectConfirmation" maxOccurs="unbounded"/>
98         </choice>
99     </complexType>
100     <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/>
101     <complexType name="SubjectConfirmationType">
102         <sequence>
103             <element ref="saml:SubjectConfirmationData" minOccurs="0"/>
104         </sequence>
105         <attribute name="Method" type="anyURI" use="required"/>
106     </complexType>
107     <element name="SubjectConfirmationData" type="saml:SubjectConfirmationDataType"/>
108     <complexType name="SubjectConfirmationDataType" mixed="true">
109         <complexContent>
110             <extension base="anyType">
111                 <attribute name="NotBefore" type="dateTime" use="optional"/>
112                 <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
113                 <attribute name="Recipient" type="anyURI" use="optional"/>
114                 <attribute name="InResponseTo" type="NCName" use="optional"/>
115                 <attribute name="Address" type="string" use="optional"/>
116             </extension>
117         </complexContent>
118     </complexType>
119     <complexType name="KeyInfoConfirmationDataType" mixed="false">
120         <complexContent>
121             <restriction base="saml:SubjectConfirmationDataType">
122                 <sequence>
123                     <element ref="ds:KeyInfo" maxOccurs="unbounded"/>
124                 </sequence>
125             </restriction>
126         </complexContent>
127     </complexType>
128     <element name="Conditions" type="saml:ConditionsType"/>
129     <complexType name="ConditionsType">
130         <choice minOccurs="0" maxOccurs="unbounded">
131             <element ref="saml:Condition"/>
132             <element ref="saml:AudienceRestriction"/>
133             <element ref="saml:OneTimeUse"/>
134             <element ref="saml:ProxyRestriction"/>
135         </choice>
136         <attribute name="NotBefore" type="dateTime" use="optional"/>
137         <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
138     </complexType>
139     <element name="Condition" type="saml:ConditionAbstractType"/>
140     <complexType name="ConditionAbstractType" abstract="true"/>
141     <element name="AudienceRestriction" type="saml:AudienceRestrictionType"/>
142     <complexType name="AudienceRestrictionType">
143         <complexContent>
144             <extension base="saml:ConditionAbstractType">
145                 <sequence>
146                     <element ref="saml:Audience" maxOccurs="unbounded"/>
147                 </sequence>
148             </extension>
149         </complexContent>
150     </complexType>
151     <element name="Audience" type="anyURI"/>
152     <element name="OneTimeUse" type="saml:OneTimeUseType" />
153     <complexType name="OneTimeUseType">
154         <complexContent>
155             <extension base="saml:ConditionAbstractType"/>
156         </complexContent>
157     </complexType>
158     <element name="ProxyRestriction" type="saml:ProxyRestrictionType"/>
159     <complexType name="ProxyRestrictionType">
160     <complexContent>
161         <extension base="saml:ConditionAbstractType">
162             <sequence>
163                 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
164             </sequence>
165             <attribute name="Count" type="nonNegativeInteger" use="optional"/>
166         </extension>
167         </complexContent>
168     </complexType>
169     <element name="Advice" type="saml:AdviceType"/>
170     <complexType name="AdviceType">
171         <choice minOccurs="0" maxOccurs="unbounded">
172             <element ref="saml:AssertionIDRef"/>
173             <element ref="saml:AssertionURIRef"/>
174             <element ref="saml:Assertion"/>
175             <element ref="saml:EncryptedAssertion"/>
176             <any namespace="##other" processContents="lax"/>
177         </choice>
178     </complexType>
179     <element name="EncryptedAssertion" type="saml:EncryptedAssertionType"/>
180     <complexType name="EncryptedAssertionType">
181         <group ref="saml:EncryptedType"/>
182     </complexType>
183     <element name="Statement" type="saml:StatementAbstractType"/>
184     <complexType name="StatementAbstractType" abstract="true"/>
185     <element name="AuthnStatement" type="saml:AuthnStatementType"/>
186     <complexType name="AuthnStatementType">
187         <complexContent>
188             <extension base="saml:StatementAbstractType">
189                 <sequence>
190                     <element ref="saml:SubjectLocality" minOccurs="0"/>
191                     <element ref="saml:AuthnContext"/>
192                 </sequence>
193                 <attribute name="AuthnInstant" type="dateTime" use="required"/>
194                 <attribute name="SessionIndex" type="string" use="optional"/>
195                 <attribute name="SessionNotOnOrAfter" type="dateTime" use="optional"/>
196             </extension>
197         </complexContent>
198     </complexType>
199     <element name="SubjectLocality" type="saml:SubjectLocalityType"/>
200     <complexType name="SubjectLocalityType">
201         <attribute name="Address" type="string" use="optional"/>
202         <attribute name="DNSName" type="string" use="optional"/>
203     </complexType>
204     <element name="AuthnContext" type="saml:AuthnContextType"/>
205     <complexType name="AuthnContextType">
206         <sequence>
207             <choice>
208                 <sequence>
209                     <element ref="saml:AuthnContextClassRef"/>
210                     <choice minOccurs="0">
211                         <element ref="saml:AuthnContextDecl"/>
212                         <element ref="saml:AuthnContextDeclRef"/>
213                     </choice>
214                 </sequence>
215                 <choice>
216                     <element ref="saml:AuthnContextDecl"/>
217                     <element ref="saml:AuthnContextDeclRef"/>
218                 </choice>
219             </choice>
220             <element ref="saml:AuthenticatingAuthority" minOccurs="0" maxOccurs="unbounded"/>
221         </sequence>
222     </complexType>
223     <element name="AuthnContextClassRef" type="anyURI"/>
224     <element name="AuthnContextDeclRef" type="anyURI"/>
225     <element name="AuthnContextDecl" type="anyType"/>
226     <element name="AuthenticatingAuthority" type="anyURI"/>
227     <element name="AuthzDecisionStatement" type="saml:AuthzDecisionStatementType"/>
228     <complexType name="AuthzDecisionStatementType">
229         <complexContent>
230             <extension base="saml:StatementAbstractType">
231                 <sequence>
232                     <element ref="saml:Action" maxOccurs="unbounded"/>
233                     <element ref="saml:Evidence" minOccurs="0"/>
234                 </sequence>
235                 <attribute name="Resource" type="anyURI" use="required"/>
236                 <attribute name="Decision" type="saml:DecisionType" use="required"/>
237             </extension>
238         </complexContent>
239     </complexType>
240     <simpleType name="DecisionType">
241         <restriction base="string">
242             <enumeration value="Permit"/>
243             <enumeration value="Deny"/>
244             <enumeration value="Indeterminate"/>
245         </restriction>
246     </simpleType>
247     <element name="Action" type="saml:ActionType"/>
248     <complexType name="ActionType">
249         <simpleContent>
250             <extension base="string">
251                 <attribute name="Namespace" type="anyURI" use="required"/>
252             </extension>
253         </simpleContent>
254     </complexType>
255     <element name="Evidence" type="saml:EvidenceType"/>
256     <complexType name="EvidenceType">
257         <choice maxOccurs="unbounded">
258             <element ref="saml:AssertionIDRef"/>
259             <element ref="saml:AssertionURIRef"/>
260             <element ref="saml:Assertion"/>
261             <element ref="saml:EncryptedAssertion"/>
262         </choice>
263     </complexType>
264     <element name="AttributeStatement" type="saml:AttributeStatementType"/>
265     <complexType name="AttributeStatementType">
266         <complexContent>
267             <extension base="saml:StatementAbstractType">
268                 <choice maxOccurs="unbounded">
269                     <element ref="saml:Attribute"/>
270                     <element ref="saml:EncryptedAttribute"/>
271                 </choice>
272             </extension>
273         </complexContent>
274     </complexType>
275     <element name="Attribute" type="saml:AttributeType"/>
276     <complexType name="AttributeType">
277         <sequence>
278             <element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>
279         </sequence>
280         <attribute name="Name" type="string" use="required"/>
281         <attribute name="NameFormat" type="anyURI" use="optional"/>
282         <attribute name="FriendlyName" type="string" use="optional"/>
283         <anyAttribute namespace="##other" processContents="lax"/>
284     </complexType>
285     <element name="AttributeValue" type="anyType"/>
286     <element name="EncryptedAttribute" type="saml:EncryptedAttributeType"/>
287     <complexType name="EncryptedAttributeType">
288         <group ref="saml:EncryptedType"/>
289     </complexType>
290 </schema>