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