1 <?xml version="1.0" encoding="US-ASCII"?>
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"
12 <import namespace="http://www.w3.org/2000/09/xmldsig#"
13 schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
14 <import namespace="http://www.w3.org/2001/04/xmlenc#"
15 schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/>
18 Document identifier: saml-schema-assertion-2.0
19 Location: http://docs.oasis-open.org/security/saml/v2.0/
21 V1.0 (November, 2002):
22 Initial Standard Schema.
23 V1.1 (September, 2003):
24 Updates within the same V1.0 namespace.
26 New assertion schema for SAML V2.0 namespace.
29 <attributeGroup name="IDNameQualifiers">
30 <attribute name="NameQualifier" type="string" use="optional"/>
31 <attribute name="SPNameQualifier" type="string" use="optional"/>
33 <element name="BaseID" type="saml:BaseIDAbstractType"/>
34 <complexType name="BaseIDAbstractType" abstract="true">
35 <attributeGroup ref="saml:IDNameQualifiers"/>
37 <element name="NameID" type="saml:NameIDType"/>
38 <complexType name="NameIDType">
40 <extension base="string">
41 <attributeGroup ref="saml:IDNameQualifiers"/>
42 <attribute name="Format" type="anyURI" use="optional"/>
43 <attribute name="SPProvidedID" type="string" use="optional"/>
47 <complexType name="EncryptedElementType">
49 <element ref="xenc:EncryptedData"/>
50 <element ref="xenc:EncryptedKey" minOccurs="0" maxOccurs="unbounded"/>
53 <element name="EncryptedID" type="saml:EncryptedElementType"/>
54 <element name="Issuer" type="saml:NameIDType"/>
55 <element name="AssertionIDRef" type="NCName"/>
56 <element name="AssertionURIRef" type="anyURI"/>
57 <element name="Assertion" type="saml:AssertionType"/>
58 <complexType name="AssertionType">
60 <element ref="saml:Issuer"/>
61 <element ref="ds:Signature" minOccurs="0"/>
62 <element ref="saml:Subject" minOccurs="0"/>
63 <element ref="saml:Conditions" minOccurs="0"/>
64 <element ref="saml:Advice" minOccurs="0"/>
65 <choice minOccurs="0" maxOccurs="unbounded">
66 <element ref="saml:Statement"/>
67 <element ref="saml:AuthnStatement"/>
68 <element ref="saml:AuthzDecisionStatement"/>
69 <element ref="saml:AttributeStatement"/>
72 <attribute name="Version" type="string" use="required"/>
73 <attribute name="ID" type="ID" use="required"/>
74 <attribute name="IssueInstant" type="dateTime" use="required"/>
76 <element name="Subject" type="saml:SubjectType"/>
77 <complexType name="SubjectType">
81 <element ref="saml:BaseID"/>
82 <element ref="saml:NameID"/>
83 <element ref="saml:EncryptedID"/>
85 <element ref="saml:SubjectConfirmation" minOccurs="0" maxOccurs="unbounded"/>
87 <element ref="saml:SubjectConfirmation" maxOccurs="unbounded"/>
90 <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/>
91 <complexType name="SubjectConfirmationType">
93 <choice minOccurs="0">
94 <element ref="saml:BaseID"/>
95 <element ref="saml:NameID"/>
96 <element ref="saml:EncryptedID"/>
98 <element ref="saml:SubjectConfirmationData" minOccurs="0"/>
100 <attribute name="Method" type="anyURI" use="required"/>
102 <element name="SubjectConfirmationData" type="saml:SubjectConfirmationDataType"/>
103 <complexType name="SubjectConfirmationDataType" mixed="true">
105 <restriction base="anyType">
107 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
109 <attribute name="NotBefore" type="dateTime" use="optional"/>
110 <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
111 <attribute name="Recipient" type="anyURI" use="optional"/>
112 <attribute name="InResponseTo" type="NCName" use="optional"/>
113 <attribute name="Address" type="string" use="optional"/>
114 <anyAttribute namespace="##other" processContents="lax"/>
118 <complexType name="KeyInfoConfirmationDataType" mixed="false">
120 <restriction base="saml:SubjectConfirmationDataType">
122 <element ref="ds:KeyInfo" maxOccurs="unbounded"/>
127 <element name="Conditions" type="saml:ConditionsType"/>
128 <complexType name="ConditionsType">
129 <choice minOccurs="0" maxOccurs="unbounded">
130 <element ref="saml:Condition"/>
131 <element ref="saml:AudienceRestriction"/>
132 <element ref="saml:OneTimeUse"/>
133 <element ref="saml:ProxyRestriction"/>
135 <attribute name="NotBefore" type="dateTime" use="optional"/>
136 <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
138 <element name="Condition" type="saml:ConditionAbstractType"/>
139 <complexType name="ConditionAbstractType" abstract="true"/>
140 <element name="AudienceRestriction" type="saml:AudienceRestrictionType"/>
141 <complexType name="AudienceRestrictionType">
143 <extension base="saml:ConditionAbstractType">
145 <element ref="saml:Audience" maxOccurs="unbounded"/>
150 <element name="Audience" type="anyURI"/>
151 <element name="OneTimeUse" type="saml:OneTimeUseType" />
152 <complexType name="OneTimeUseType">
154 <extension base="saml:ConditionAbstractType"/>
157 <element name="ProxyRestriction" type="saml:ProxyRestrictionType"/>
158 <complexType name="ProxyRestrictionType">
160 <extension base="saml:ConditionAbstractType">
162 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
164 <attribute name="Count" type="nonNegativeInteger" use="optional"/>
168 <element name="Advice" type="saml:AdviceType"/>
169 <complexType name="AdviceType">
170 <choice minOccurs="0" maxOccurs="unbounded">
171 <element ref="saml:AssertionIDRef"/>
172 <element ref="saml:AssertionURIRef"/>
173 <element ref="saml:Assertion"/>
174 <element ref="saml:EncryptedAssertion"/>
175 <any namespace="##other" processContents="lax"/>
178 <element name="EncryptedAssertion" type="saml:EncryptedElementType"/>
179 <element name="Statement" type="saml:StatementAbstractType"/>
180 <complexType name="StatementAbstractType" abstract="true"/>
181 <element name="AuthnStatement" type="saml:AuthnStatementType"/>
182 <complexType name="AuthnStatementType">
184 <extension base="saml:StatementAbstractType">
186 <element ref="saml:SubjectLocality" minOccurs="0"/>
187 <element ref="saml:AuthnContext"/>
189 <attribute name="AuthnInstant" type="dateTime" use="required"/>
190 <attribute name="SessionIndex" type="string" use="optional"/>
191 <attribute name="SessionNotOnOrAfter" type="dateTime" use="optional"/>
195 <element name="SubjectLocality" type="saml:SubjectLocalityType"/>
196 <complexType name="SubjectLocalityType">
197 <attribute name="Address" type="string" use="optional"/>
198 <attribute name="DNSName" type="string" use="optional"/>
200 <element name="AuthnContext" type="saml:AuthnContextType"/>
201 <complexType name="AuthnContextType">
205 <element ref="saml:AuthnContextClassRef"/>
206 <choice minOccurs="0">
207 <element ref="saml:AuthnContextDecl"/>
208 <element ref="saml:AuthnContextDeclRef"/>
212 <element ref="saml:AuthnContextDecl"/>
213 <element ref="saml:AuthnContextDeclRef"/>
216 <element ref="saml:AuthenticatingAuthority" minOccurs="0" maxOccurs="unbounded"/>
219 <element name="AuthnContextClassRef" type="anyURI"/>
220 <element name="AuthnContextDeclRef" type="anyURI"/>
221 <element name="AuthnContextDecl" type="anyType"/>
222 <element name="AuthenticatingAuthority" type="anyURI"/>
223 <element name="AuthzDecisionStatement" type="saml:AuthzDecisionStatementType"/>
224 <complexType name="AuthzDecisionStatementType">
226 <extension base="saml:StatementAbstractType">
228 <element ref="saml:Action" maxOccurs="unbounded"/>
229 <element ref="saml:Evidence" minOccurs="0"/>
231 <attribute name="Resource" type="anyURI" use="required"/>
232 <attribute name="Decision" type="saml:DecisionType" use="required"/>
236 <simpleType name="DecisionType">
237 <restriction base="string">
238 <enumeration value="Permit"/>
239 <enumeration value="Deny"/>
240 <enumeration value="Indeterminate"/>
243 <element name="Action" type="saml:ActionType"/>
244 <complexType name="ActionType">
246 <extension base="string">
247 <attribute name="Namespace" type="anyURI" use="required"/>
251 <element name="Evidence" type="saml:EvidenceType"/>
252 <complexType name="EvidenceType">
253 <choice maxOccurs="unbounded">
254 <element ref="saml:AssertionIDRef"/>
255 <element ref="saml:AssertionURIRef"/>
256 <element ref="saml:Assertion"/>
257 <element ref="saml:EncryptedAssertion"/>
260 <element name="AttributeStatement" type="saml:AttributeStatementType"/>
261 <complexType name="AttributeStatementType">
263 <extension base="saml:StatementAbstractType">
264 <choice maxOccurs="unbounded">
265 <element ref="saml:Attribute"/>
266 <element ref="saml:EncryptedAttribute"/>
271 <element name="Attribute" type="saml:AttributeType"/>
272 <complexType name="AttributeType">
274 <element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>
276 <attribute name="Name" type="string" use="required"/>
277 <attribute name="NameFormat" type="anyURI" use="optional"/>
278 <attribute name="FriendlyName" type="string" use="optional"/>
279 <anyAttribute namespace="##other" processContents="lax"/>
281 <element name="AttributeValue" type="anyType" nillable="true"/>
282 <element name="EncryptedAttribute" type="saml:EncryptedElementType"/>