new schema files and aggregated schema files
authorLeif Johansson <leifj@sunet.se>
Tue, 23 Nov 2010 15:04:27 +0000 (16:04 +0100)
committerLeif Johansson <leifj@sunet.se>
Tue, 23 Nov 2010 15:04:27 +0000 (16:04 +0100)
14 files changed:
schema/MetadataExchange.xsd [new file with mode: 0644]
schema/mdui-schema.xsd [new file with mode: 0644]
schema/oasis-200401-wss-wssecurity-secext-1.0.xsd [new file with mode: 0644]
schema/oasis-200401-wss-wssecurity-utility-1.0.xsd [new file with mode: 0644]
schema/privacy.xsd [new file with mode: 0644]
schema/saml-schema-assertion-2.0.xsd [new file with mode: 0644]
schema/saml-schema-metadata-2.0.xsd [new file with mode: 0644]
schema/sstc-metadata-attr.xsd
schema/sstc-saml-metadata-algsupport.xsd [new file with mode: 0644]
schema/sstc-saml-schema-metadata-2.0.xsd
schema/ws-addr.xsd [new file with mode: 0644]
schema/ws-authorization.xsd [new file with mode: 0644]
schema/ws-federation.xsd [new file with mode: 0644]
schema/ws-securitypolicy-1.2.xsd [new file with mode: 0644]

diff --git a/schema/MetadataExchange.xsd b/schema/MetadataExchange.xsd
new file mode 100644 (file)
index 0000000..8a54b85
--- /dev/null
@@ -0,0 +1,112 @@
+<?xml version='1.0' encoding='UTF-8' ?>\r
+<!--\r
+(c) 2004-2006 BEA Systems Inc., Computer Associates International, Inc.,\r
+International Business Machines Corporation, Microsoft Corporation,\r
+Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved. \r
+\r
+Permission to copy and display the WS-MetadataExchange Specification\r
+(the "Specification"), in any medium without fee or royalty is hereby\r
+granted, provided that you include the following on ALL copies of the\r
+Specification that you make:\r
+\r
+1.     A link or URL to the Specification at this location.\r
+2.     The copyright notice as shown in the Specification.\r
+\r
+BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and\r
+webMethods (collectively, the "Authors") each agree to grant you a\r
+license, under royalty-free and otherwise reasonable,\r
+non-discriminatory terms and conditions, to their respective essential\r
+patent claims that they deem necessary to implement the\r
+WS-MetadataExchange Specification.\r
+\r
+THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO\r
+REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT\r
+LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR\r
+PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE\r
+SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE\r
+IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY\r
+PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.\r
+\r
+THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,\r
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY\r
+USE OR DISTRIBUTION OF THE SPECIFICATIONS.\r
+\r
+The name and trademarks of the Authors may NOT be used in any manner,\r
+including advertising or publicity pertaining to the Specifications or\r
+their contents without specific, written prior permission. Title to\r
+copyright in the Specifications will at all times remain with the\r
+Authors.\r
+\r
+No other rights are granted by implication, estoppel or otherwise.\r
+-->\r
+\r
+<xs:schema\r
+    targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex'\r
+    xmlns:tns='http://schemas.xmlsoap.org/ws/2004/09/mex'\r
+    xmlns:wsa10='http://www.w3.org/2005/08/addressing'\r
+    xmlns:wsa04='http://schemas.xmlsoap.org/ws/2004/08/addressing'\r
+    xmlns:xs='http://www.w3.org/2001/XMLSchema'\r
+    elementFormDefault='qualified'\r
+    blockDefault='#all' >\r
+\r
+  <!-- Get Metadata request -->\r
+  <xs:element name='GetMetadata' >\r
+    <xs:complexType>\r
+      <xs:sequence>\r
+        <xs:element ref='tns:Dialect' minOccurs='0' />\r
+        <xs:element ref='tns:Identifier' minOccurs='0' />\r
+      </xs:sequence>\r
+      <xs:anyAttribute namespace='##other' processContents='lax' />\r
+    </xs:complexType>\r
+  </xs:element>\r
+\r
+  <xs:element name='Dialect' type='xs:anyURI' />\r
+  <xs:element name='Identifier' type='xs:anyURI' />\r
+\r
+  <!-- Get Metadata response -->\r
+  <xs:element name='Metadata' >\r
+    <xs:complexType>\r
+      <xs:sequence>\r
+        <xs:element ref='tns:MetadataSection'\r
+                    minOccurs='0'\r
+                    maxOccurs='unbounded' />\r
+        <xs:any namespace='##other' processContents='lax'\r
+                minOccurs='0'\r
+                maxOccurs='unbounded' />\r
+      </xs:sequence>\r
+      <xs:anyAttribute namespace='##other' processContents='lax' />\r
+    </xs:complexType>\r
+  </xs:element>\r
+\r
+  <xs:element name='MetadataSection' >\r
+    <xs:complexType>\r
+      <xs:choice>\r
+        <xs:any namespace='##other' processContents='lax' />\r
+        <xs:element ref='tns:MetadataReference' />\r
+        <xs:element ref='tns:Location' />\r
+      </xs:choice>\r
+      <xs:attribute name='Dialect' type='xs:anyURI' use='required' />\r
+      <xs:attribute name='Identifier' type='xs:anyURI' />\r
+      <xs:anyAttribute namespace='##other' processContents='lax' />\r
+    </xs:complexType>\r
+  </xs:element>\r
+  \r
+  <!-- \r
+       Ideally, the type of the MetadataReference would have been\r
+       the union of wsa04:EndpointReferenceType and\r
+       wsa10:EndpointReferenceType but unfortunately xs:union only\r
+       works for simple types. As a result, we have to define\r
+       the mex:MetadataReference using xs:any.\r
+  -->\r
+\r
+  <xs:element name='MetadataReference'>\r
+    <xs:complexType>\r
+      <xs:sequence>\r
+        <xs:any minOccurs='1' maxOccurs='unbounded' \r
+                processContents='lax' namespace='##other' />\r
+      </xs:sequence>\r
+    </xs:complexType>\r
+  </xs:element>\r
+  <xs:element name='Location'\r
+              type='xs:anyURI' />\r
+</xs:schema>\r
diff --git a/schema/mdui-schema.xsd b/schema/mdui-schema.xsd
new file mode 100644 (file)
index 0000000..03ca32a
--- /dev/null
@@ -0,0 +1,48 @@
+<schema targetNamespace="urn:oasis:names:tc:SAML:2.0:metadata:ui"
+           xmlns:mdui="urn:oasis:names:tc:SAML:2.0:metadata:ui"
+        xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="unqualified"
+        attributeFormDefault="unqualified"
+        blockDefault="substitution"
+        version="2.0" >
+
+    <import namespace="urn:oasis:names:tc:SAML:2.0:assertion" schemaLocation="sstc-saml-schema-assertion-2.0.xsd"/>
+    <import namespace="urn:oasis:names:tc:SAML:2.0:metadata" schemaLocation="sstc-saml-schema-metadata-2.0.xsd"/>
+    <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+
+    <annotation>
+           <documentation>
+                       Document identifier: TODO
+            Location: TODO
+            Revision history: TODO
+               </documentation>
+       </annotation>
+
+    <element name="DisplayName" type="md:localizedNameType" />
+
+    <element name="Description" type="md:localizedNameType" />
+
+    <element name="Logo" type="mdui:LogoType" />
+       <complexType name="LogoType">
+          <simpleContent>
+             <extension base="string">
+                <attribute ref="xml:lang" use="optional"/>
+                <attribute name="href" type="anyURI" use="optional"/>
+                <attribute name="height" type="positiveInteger" use="optional" />
+                <attribute name="width" type="positiveInteger" use="optional" />
+             </extension>
+          </simpleContent>
+       </complexType>
+       
+       <element name="InformationURL" type="md:localizedURIType" />
+       
+       <element name="PrivacyStatementURL" type="md:localizedURIType" />
+       
+       <element name="IPHint" type="string" />
+       
+       <element name="DomainHint" type="string" />
+       
+       <element name="GeolocationHint" type="string" />
+       
+</schema>
diff --git a/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd b/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd
new file mode 100644 (file)
index 0000000..0195d35
--- /dev/null
@@ -0,0 +1,195 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- \r
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.\r
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.\r
+Copyright © OASIS Open 2002-2004. All Rights Reserved.\r
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.\r
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.\r
+This document and the information contained herein is provided on an “AS IS” basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\r
+-->\r
+<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all" version="0.2">\r
+       <xsd:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" schemaLocation="oasis-200401-wss-wssecurity-utility-1.0.xsd"/>\r
+       <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>\r
+       <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>\r
+       <xsd:complexType name="AttributedString">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:simpleContent>\r
+                       <xsd:extension base="xsd:string">\r
+                               <xsd:attribute ref="wsu:Id"/>\r
+                               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+                       </xsd:extension>\r
+               </xsd:simpleContent>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="PasswordString">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This type is used for password elements per Section 4.1.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:simpleContent>\r
+                       <xsd:extension base="wsse:AttributedString">\r
+                               <xsd:attribute name="Type" type="xsd:anyURI"/>\r
+                       </xsd:extension>\r
+               </xsd:simpleContent>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="EncodedString">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This type is used for elements containing stringified binary data.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:simpleContent>\r
+                       <xsd:extension base="wsse:AttributedString">\r
+                               <xsd:attribute name="EncodingType" type="xsd:anyURI"/>\r
+                       </xsd:extension>\r
+               </xsd:simpleContent>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="UsernameTokenType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This type represents a username token per Section 4.1</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:sequence>\r
+                       <xsd:element name="Username" type="wsse:AttributedString"/>\r
+                       <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>\r
+               </xsd:sequence>\r
+               <xsd:attribute ref="wsu:Id"/>\r
+               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="BinarySecurityTokenType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>A security token that is encoded in binary</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:simpleContent>\r
+                       <xsd:extension base="wsse:EncodedString">\r
+                               <xsd:attribute name="ValueType" type="xsd:anyURI"/>\r
+                       </xsd:extension>\r
+               </xsd:simpleContent>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="KeyIdentifierType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>A security token key identifier</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:simpleContent>\r
+                       <xsd:extension base="wsse:EncodedString">\r
+                               <xsd:attribute name="ValueType" type="xsd:anyURI"/>\r
+                       </xsd:extension>\r
+               </xsd:simpleContent>\r
+       </xsd:complexType>\r
+       <xsd:simpleType name="tUsage">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>Typedef to allow a list of usages (as URIs).</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:list itemType="xsd:anyURI"/>\r
+       </xsd:simpleType>\r
+       <xsd:attribute name="Usage" type="tUsage">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This global attribute is used to indicate the usage of a referenced or indicated token within the containing context</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:attribute>\r
+       <xsd:complexType name="ReferenceType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This type represents a reference to an external security token.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:attribute name="URI" type="xsd:anyURI"/>\r
+               <xsd:attribute name="ValueType" type="xsd:anyURI"/>\r
+               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="EmbeddedType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This type represents a reference to an embedded security token.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:choice minOccurs="0" maxOccurs="unbounded">\r
+                       <xsd:any processContents="lax"/>\r
+               </xsd:choice>\r
+               <xsd:attribute name="ValueType" type="xsd:anyURI"/>\r
+               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="SecurityTokenReferenceType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This type is used reference a security token.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:choice minOccurs="0" maxOccurs="unbounded">\r
+                       <xsd:any processContents="lax"/>\r
+               </xsd:choice>\r
+               <xsd:attribute ref="wsu:Id"/>\r
+               <xsd:attribute ref="wsse:Usage"/>\r
+               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="SecurityHeaderType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:sequence>\r
+                       <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">\r
+                               <xsd:annotation>\r
+                                       <xsd:documentation>The use of "any" is to allow extensibility and different forms of security data.</xsd:documentation>\r
+                               </xsd:annotation>\r
+                       </xsd:any>\r
+               </xsd:sequence>\r
+               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="TransformationParametersType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation.</xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:sequence>\r
+                       <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">\r
+                               <xsd:annotation>\r
+                                       <xsd:documentation>The use of "any" is to allow extensibility from any namespace.</xsd:documentation>\r
+                               </xsd:annotation>\r
+                       </xsd:any>\r
+               </xsd:sequence>\r
+               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+       </xsd:complexType>\r
+       <xsd:element name="UsernameToken" type="wsse:UsernameTokenType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element defines the wsse:UsernameToken element per Section 4.1.</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element defines the wsse:BinarySecurityToken element per Section 4.2.</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="Reference" type="wsse:ReferenceType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element defines a security token reference</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="Embedded" type="wsse:EmbeddedType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element defines a security token embedded reference</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="KeyIdentifier" type="wsse:KeyIdentifierType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element defines a key identifier reference</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="SecurityTokenReference" type="wsse:SecurityTokenReferenceType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element defines the wsse:SecurityTokenReference per Section 4.3.</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="Security" type="wsse:SecurityHeaderType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element defines the wsse:Security SOAP header element per Section 4.</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="TransformationParameters" type="wsse:TransformationParametersType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>This element contains properties for transformations from any namespace, including DSIG.</xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="Password" type="wsse:PasswordString"/>\r
+       <xsd:element name="Nonce" type="wsse:EncodedString"/>\r
+       <xsd:simpleType name="FaultcodeEnum">\r
+               <xsd:restriction base="xsd:QName">\r
+                       <xsd:enumeration value="wsse:UnsupportedSecurityToken"/>\r
+                       <xsd:enumeration value="wsse:UnsupportedAlgorithm"/>\r
+                       <xsd:enumeration value="wsse:InvalidSecurity"/>\r
+                       <xsd:enumeration value="wsse:InvalidSecurityToken"/>\r
+                       <xsd:enumeration value="wsse:FailedAuthentication"/>\r
+                       <xsd:enumeration value="wsse:FailedCheck"/>\r
+                       <xsd:enumeration value="wsse:SecurityTokenUnavailable"/>\r
+               </xsd:restriction>\r
+       </xsd:simpleType>\r
+</xsd:schema>\r
diff --git a/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd b/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd
new file mode 100644 (file)
index 0000000..e088d13
--- /dev/null
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- \r
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.\r
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.\r
+Copyright © OASIS Open 2002-2004. All Rights Reserved.\r
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.\r
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.\r
+This document and the information contained herein is provided on an “AS IS” basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\r
+-->\r
+<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" \r
+\r
+\r
+\r
+xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" \r
+elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">\r
+       <!-- // Fault Codes /////////////////////////////////////////// -->\r
+       <xsd:simpleType name="tTimestampFault">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This type defines the fault code value for Timestamp message expiration.\r
+          </xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:restriction base="xsd:QName">\r
+                       <xsd:enumeration value="wsu:MessageExpired"/>\r
+               </xsd:restriction>\r
+       </xsd:simpleType>\r
+       <!-- // Global attributes //////////////////////////////////// -->\r
+       <xsd:attribute name="Id" type="xsd:ID">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This global attribute supports annotating arbitrary elements with an ID.\r
+          </xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:attribute>\r
+       <xsd:attributeGroup name="commonAtts">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+Convenience attribute group used to simplify this schema.\r
+          </xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:attribute ref="wsu:Id" use="optional"/>\r
+               <xsd:anyAttribute namespace="##other" processContents="lax"/>\r
+       </xsd:attributeGroup>\r
+       <!-- // Utility types //////////////////////////////////////// -->\r
+       <xsd:complexType name="AttributedDateTime">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes. \r
+      </xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:simpleContent>\r
+                       <xsd:extension base="xsd:string">\r
+                               <xsd:attributeGroup ref="wsu:commonAtts"/>\r
+                       </xsd:extension>\r
+               </xsd:simpleContent>\r
+       </xsd:complexType>\r
+       <xsd:complexType name="AttributedURI">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This type is for elements whose [children] is an anyURI and can have arbitrary attributes.\r
+      </xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:simpleContent>\r
+                       <xsd:extension base="xsd:anyURI">\r
+                               <xsd:attributeGroup ref="wsu:commonAtts"/>\r
+                       </xsd:extension>\r
+               </xsd:simpleContent>\r
+       </xsd:complexType>\r
+       <!-- // Timestamp header components /////////////////////////// -->\r
+       <xsd:complexType name="TimestampType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This complex type ties together the timestamp related elements into a composite type.\r
+            </xsd:documentation>\r
+               </xsd:annotation>\r
+               <xsd:sequence>\r
+                       <xsd:element ref="wsu:Created" minOccurs="0"/>\r
+                       <xsd:element ref="wsu:Expires" minOccurs="0"/>\r
+                       <xsd:choice minOccurs="0" maxOccurs="unbounded">\r
+                               <xsd:any namespace="##other" processContents="lax"/>\r
+                       </xsd:choice>\r
+               </xsd:sequence>\r
+               <xsd:attributeGroup ref="wsu:commonAtts"/>\r
+       </xsd:complexType>\r
+       <xsd:element name="Timestamp" type="wsu:TimestampType">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This element allows Timestamps to be applied anywhere element wildcards are present,\r
+including as a SOAP header.\r
+            </xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <!-- global element decls to allow individual elements to appear anywhere -->\r
+       <xsd:element name="Expires" type="wsu:AttributedDateTime">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This element allows an expiration time to be applied anywhere element wildcards are present.\r
+            </xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+       <xsd:element name="Created" type="wsu:AttributedDateTime">\r
+               <xsd:annotation>\r
+                       <xsd:documentation>\r
+This element allows a creation time to be applied anywhere element wildcards are present.\r
+            </xsd:documentation>\r
+               </xsd:annotation>\r
+       </xsd:element>\r
+</xsd:schema>\r
diff --git a/schema/privacy.xsd b/schema/privacy.xsd
new file mode 100644 (file)
index 0000000..cdf1b0b
--- /dev/null
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" ?>\r
+<!-- \r
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the \r
+implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; \r
+neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS \r
+specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made \r
+available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users \r
+of this specification, can be obtained from the OASIS Executive Director.\r
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may \r
+cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.\r
+Copyright © OASIS Open 2002-2007. All Rights Reserved.\r
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist \r
+in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the \r
+above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified \r
+in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, \r
+in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate \r
+it into languages other than English.\r
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.\r
+This document and the information contained herein is provided on an AS IS basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, \r
+INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF \r
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\r
+  -->\r
+\r
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'\r
+                  xmlns:tns='http://docs.oasis-open.org/wsfed/privacy/200706'\r
+                  xmlns:wsa='http://www.w3.org/2005/08/addressing'\r
+                  targetNamespace='http://docs.oasis-open.org/wsfed/privacy/200706'\r
+                  elementFormDefault='qualified' >\r
+\r
+  <xs:import namespace='http://www.w3.org/2005/08/addressing' schemaLocation='ws-addr.xsd' />\r
+\r
+  <!-- Section 12.1 -->\r
+  <xs:element name='ProtectData' type='tns:ProtectDataType' />\r
+\r
+  <xs:complexType name='ProtectDataType' >\r
+    <xs:sequence>\r
+      <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+    </xs:sequence>\r
+    <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 12.2 -->\r
+  <xs:element name='EnumerateParameters' type='tns:EnumerateParametersType' />\r
+  <xs:simpleType name='ListOfQName'>\r
+    <xs:list itemType='xs:QName' />\r
+  </xs:simpleType>\r
+  <xs:complexType name='EnumerateParametersType' >\r
+       <xs:simpleContent>\r
+         <xs:extension base='tns:ListOfQName' >\r
+               <xs:anyAttribute namespace='##other' processContents='lax' />\r
+         </xs:extension>\r
+       </xs:simpleContent>\r
+  </xs:complexType>\r
+\r
+  <xs:element name='FaultOnUnacceptedRstParameters' type='tns:ExtensibleElement' />\r
+  <xs:element name='EnumerateAllClaims' type='tns:ExtensibleElement' />\r
+\r
+  <xs:complexType name='ExtensibleElement' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 12.3 -->\r
+  <xs:element name='PrivacyPolicyEndpoint' type='tns:PrivacyPolicyEndpointType' />\r
+  <xs:complexType name='PrivacyPolicyEndpointType' >\r
+       <xs:complexContent>\r
+         <xs:extension base='wsa:EndpointReferenceType' >\r
+               <xs:attribute name='SupportsMex' type='xs:boolean' use='optional' />\r
+         </xs:extension>\r
+       </xs:complexContent>\r
+  </xs:complexType>\r
+\r
+</xs:schema>\r
diff --git a/schema/saml-schema-assertion-2.0.xsd b/schema/saml-schema-assertion-2.0.xsd
new file mode 100644 (file)
index 0000000..a00bf11
--- /dev/null
@@ -0,0 +1,281 @@
+<?xml version="1.0" encoding="US-ASCII"?>\r
+<schema\r
+    targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"\r
+    xmlns="http://www.w3.org/2001/XMLSchema"\r
+    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"\r
+    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"\r
+    xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"\r
+    elementFormDefault="unqualified"\r
+    attributeFormDefault="unqualified"\r
+    blockDefault="substitution"\r
+    version="2.0">\r
+    <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>\r
+    <import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="xenc-schema.xsd"/>\r
+    <annotation>\r
+        <documentation>\r
+            Document identifier: saml-schema-assertion-2.0\r
+            Location: http://docs.oasis-open.org/security/saml/v2.0/\r
+            Revision history:\r
+            V1.0 (November, 2002):\r
+              Initial Standard Schema.\r
+            V1.1 (September, 2003):\r
+              Updates within the same V1.0 namespace.\r
+            V2.0 (March, 2005):\r
+              New assertion schema for SAML V2.0 namespace.\r
+        </documentation>\r
+    </annotation>\r
+    <attributeGroup name="IDNameQualifiers">\r
+        <attribute name="NameQualifier" type="string" use="optional"/>\r
+        <attribute name="SPNameQualifier" type="string" use="optional"/>\r
+    </attributeGroup>\r
+    <element name="BaseID" type="saml:BaseIDAbstractType"/>\r
+    <complexType name="BaseIDAbstractType" abstract="true">\r
+        <attributeGroup ref="saml:IDNameQualifiers"/>\r
+    </complexType>\r
+    <element name="NameID" type="saml:NameIDType"/>\r
+    <complexType name="NameIDType">\r
+        <simpleContent>\r
+            <extension base="string">\r
+                <attributeGroup ref="saml:IDNameQualifiers"/>\r
+                <attribute name="Format" type="anyURI" use="optional"/>\r
+                <attribute name="SPProvidedID" type="string" use="optional"/>\r
+            </extension>\r
+        </simpleContent>\r
+    </complexType>\r
+    <complexType name="EncryptedElementType">\r
+        <sequence>\r
+            <element ref="xenc:EncryptedData"/>\r
+            <element ref="xenc:EncryptedKey" minOccurs="0" maxOccurs="unbounded"/>\r
+        </sequence>\r
+    </complexType>\r
+    <element name="EncryptedID" type="saml:EncryptedElementType"/>\r
+    <element name="Issuer" type="saml:NameIDType"/>\r
+    <element name="AssertionIDRef" type="NCName"/>\r
+    <element name="AssertionURIRef" type="anyURI"/>\r
+    <element name="Assertion" type="saml:AssertionType"/>\r
+    <complexType name="AssertionType">\r
+        <sequence>\r
+            <element ref="saml:Issuer"/>\r
+            <element ref="ds:Signature" minOccurs="0"/>\r
+            <element ref="saml:Subject" minOccurs="0"/>\r
+            <element ref="saml:Conditions" minOccurs="0"/>\r
+            <element ref="saml:Advice" minOccurs="0"/>\r
+            <choice minOccurs="0" maxOccurs="unbounded">\r
+                <element ref="saml:Statement"/>\r
+                <element ref="saml:AuthnStatement"/>\r
+                <element ref="saml:AuthzDecisionStatement"/>\r
+                <element ref="saml:AttributeStatement"/>\r
+            </choice>\r
+        </sequence>\r
+        <attribute name="Version" type="string" use="required"/>\r
+        <attribute name="ID" type="ID" use="required"/>\r
+        <attribute name="IssueInstant" type="dateTime" use="required"/>\r
+    </complexType>\r
+    <element name="Subject" type="saml:SubjectType"/>\r
+    <complexType name="SubjectType">\r
+        <choice>\r
+            <sequence>\r
+                <choice>\r
+                    <element ref="saml:BaseID"/>\r
+                    <element ref="saml:NameID"/>\r
+                    <element ref="saml:EncryptedID"/>\r
+                </choice>\r
+                <element ref="saml:SubjectConfirmation" minOccurs="0" maxOccurs="unbounded"/>\r
+            </sequence>\r
+            <element ref="saml:SubjectConfirmation" maxOccurs="unbounded"/>\r
+        </choice>\r
+    </complexType>\r
+    <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/>\r
+    <complexType name="SubjectConfirmationType">\r
+        <sequence>\r
+            <choice minOccurs="0">\r
+                <element ref="saml:BaseID"/>\r
+                <element ref="saml:NameID"/>\r
+                <element ref="saml:EncryptedID"/>\r
+            </choice>\r
+            <element ref="saml:SubjectConfirmationData" minOccurs="0"/>\r
+        </sequence>\r
+        <attribute name="Method" type="anyURI" use="required"/>\r
+    </complexType>\r
+    <element name="SubjectConfirmationData" type="saml:SubjectConfirmationDataType"/>\r
+    <complexType name="SubjectConfirmationDataType" mixed="true">\r
+        <complexContent>\r
+            <restriction base="anyType">\r
+                <sequence>\r
+                    <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>\r
+                </sequence>\r
+                <attribute name="NotBefore" type="dateTime" use="optional"/>\r
+                <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>\r
+                <attribute name="Recipient" type="anyURI" use="optional"/>\r
+                <attribute name="InResponseTo" type="NCName" use="optional"/>\r
+                <attribute name="Address" type="string" use="optional"/>\r
+                <anyAttribute namespace="##other" processContents="lax"/>\r
+            </restriction>\r
+        </complexContent>\r
+    </complexType>\r
+    <complexType name="KeyInfoConfirmationDataType" mixed="false">\r
+        <complexContent>\r
+            <restriction base="saml:SubjectConfirmationDataType">\r
+                <sequence>\r
+                    <element ref="ds:KeyInfo" maxOccurs="unbounded"/>\r
+                </sequence>\r
+            </restriction>\r
+        </complexContent>\r
+    </complexType>\r
+    <element name="Conditions" type="saml:ConditionsType"/>\r
+    <complexType name="ConditionsType">\r
+        <choice minOccurs="0" maxOccurs="unbounded">\r
+            <element ref="saml:Condition"/>\r
+            <element ref="saml:AudienceRestriction"/>\r
+            <element ref="saml:OneTimeUse"/>\r
+            <element ref="saml:ProxyRestriction"/>\r
+        </choice>\r
+        <attribute name="NotBefore" type="dateTime" use="optional"/>\r
+        <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>\r
+    </complexType>\r
+    <element name="Condition" type="saml:ConditionAbstractType"/>\r
+    <complexType name="ConditionAbstractType" abstract="true"/>\r
+    <element name="AudienceRestriction" type="saml:AudienceRestrictionType"/>\r
+    <complexType name="AudienceRestrictionType">\r
+        <complexContent>\r
+            <extension base="saml:ConditionAbstractType">\r
+                <sequence>\r
+                    <element ref="saml:Audience" maxOccurs="unbounded"/>\r
+                </sequence>\r
+            </extension>\r
+        </complexContent>\r
+    </complexType>\r
+    <element name="Audience" type="anyURI"/>\r
+    <element name="OneTimeUse" type="saml:OneTimeUseType" />\r
+    <complexType name="OneTimeUseType">\r
+        <complexContent>\r
+            <extension base="saml:ConditionAbstractType"/>\r
+        </complexContent>\r
+    </complexType>\r
+    <element name="ProxyRestriction" type="saml:ProxyRestrictionType"/>\r
+    <complexType name="ProxyRestrictionType">\r
+    <complexContent>\r
+        <extension base="saml:ConditionAbstractType">\r
+            <sequence>\r
+                <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>\r
+            </sequence>\r
+            <attribute name="Count" type="nonNegativeInteger" use="optional"/>\r
+        </extension>\r
+       </complexContent>\r
+    </complexType>\r
+    <element name="Advice" type="saml:AdviceType"/>\r
+    <complexType name="AdviceType">\r
+        <choice minOccurs="0" maxOccurs="unbounded">\r
+            <element ref="saml:AssertionIDRef"/>\r
+            <element ref="saml:AssertionURIRef"/>\r
+            <element ref="saml:Assertion"/>\r
+            <element ref="saml:EncryptedAssertion"/>\r
+            <any namespace="##other" processContents="lax"/>\r
+        </choice>\r
+    </complexType>\r
+    <element name="EncryptedAssertion" type="saml:EncryptedElementType"/>\r
+    <element name="Statement" type="saml:StatementAbstractType"/>\r
+    <complexType name="StatementAbstractType" abstract="true"/>\r
+    <element name="AuthnStatement" type="saml:AuthnStatementType"/>\r
+    <complexType name="AuthnStatementType">\r
+        <complexContent>\r
+            <extension base="saml:StatementAbstractType">\r
+                <sequence>\r
+                    <element ref="saml:SubjectLocality" minOccurs="0"/>\r
+                    <element ref="saml:AuthnContext"/>\r
+                </sequence>\r
+                <attribute name="AuthnInstant" type="dateTime" use="required"/>\r
+                <attribute name="SessionIndex" type="string" use="optional"/>\r
+                <attribute name="SessionNotOnOrAfter" type="dateTime" use="optional"/>\r
+            </extension>\r
+        </complexContent>\r
+    </complexType>\r
+    <element name="SubjectLocality" type="saml:SubjectLocalityType"/>\r
+    <complexType name="SubjectLocalityType">\r
+        <attribute name="Address" type="string" use="optional"/>\r
+        <attribute name="DNSName" type="string" use="optional"/>\r
+    </complexType>\r
+    <element name="AuthnContext" type="saml:AuthnContextType"/>\r
+    <complexType name="AuthnContextType">\r
+        <sequence>\r
+            <choice>\r
+                <sequence>\r
+                    <element ref="saml:AuthnContextClassRef"/>\r
+                    <choice minOccurs="0">\r
+                        <element ref="saml:AuthnContextDecl"/>\r
+                        <element ref="saml:AuthnContextDeclRef"/>\r
+                    </choice>\r
+                </sequence>\r
+                <choice>\r
+                    <element ref="saml:AuthnContextDecl"/>\r
+                    <element ref="saml:AuthnContextDeclRef"/>\r
+                </choice>\r
+            </choice>\r
+            <element ref="saml:AuthenticatingAuthority" minOccurs="0" maxOccurs="unbounded"/>\r
+        </sequence>\r
+    </complexType>\r
+    <element name="AuthnContextClassRef" type="anyURI"/>\r
+    <element name="AuthnContextDeclRef" type="anyURI"/>\r
+    <element name="AuthnContextDecl" type="anyType"/>\r
+    <element name="AuthenticatingAuthority" type="anyURI"/>\r
+    <element name="AuthzDecisionStatement" type="saml:AuthzDecisionStatementType"/>\r
+    <complexType name="AuthzDecisionStatementType">\r
+        <complexContent>\r
+            <extension base="saml:StatementAbstractType">\r
+                <sequence>\r
+                    <element ref="saml:Action" maxOccurs="unbounded"/>\r
+                    <element ref="saml:Evidence" minOccurs="0"/>\r
+                </sequence>\r
+                <attribute name="Resource" type="anyURI" use="required"/>\r
+                <attribute name="Decision" type="saml:DecisionType" use="required"/>\r
+            </extension>\r
+        </complexContent>\r
+    </complexType>\r
+    <simpleType name="DecisionType">\r
+        <restriction base="string">\r
+            <enumeration value="Permit"/>\r
+            <enumeration value="Deny"/>\r
+            <enumeration value="Indeterminate"/>\r
+        </restriction>\r
+    </simpleType>\r
+    <element name="Action" type="saml:ActionType"/>\r
+    <complexType name="ActionType">\r
+        <simpleContent>\r
+            <extension base="string">\r
+                <attribute name="Namespace" type="anyURI" use="required"/>\r
+            </extension>\r
+        </simpleContent>\r
+    </complexType>\r
+    <element name="Evidence" type="saml:EvidenceType"/>\r
+    <complexType name="EvidenceType">\r
+        <choice maxOccurs="unbounded">\r
+            <element ref="saml:AssertionIDRef"/>\r
+            <element ref="saml:AssertionURIRef"/>\r
+            <element ref="saml:Assertion"/>\r
+            <element ref="saml:EncryptedAssertion"/>\r
+        </choice>\r
+    </complexType>\r
+    <element name="AttributeStatement" type="saml:AttributeStatementType"/>\r
+    <complexType name="AttributeStatementType">\r
+        <complexContent>\r
+            <extension base="saml:StatementAbstractType">\r
+                <choice maxOccurs="unbounded">\r
+                    <element ref="saml:Attribute"/>\r
+                    <element ref="saml:EncryptedAttribute"/>\r
+                </choice>\r
+            </extension>\r
+        </complexContent>\r
+    </complexType>\r
+    <element name="Attribute" type="saml:AttributeType"/>\r
+    <complexType name="AttributeType">\r
+        <sequence>\r
+            <element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>\r
+        </sequence>\r
+        <attribute name="Name" type="string" use="required"/>\r
+        <attribute name="NameFormat" type="anyURI" use="optional"/>\r
+        <attribute name="FriendlyName" type="string" use="optional"/>\r
+        <anyAttribute namespace="##other" processContents="lax"/>\r
+    </complexType>\r
+    <element name="AttributeValue" type="anyType" nillable="true"/>\r
+    <element name="EncryptedAttribute" type="saml:EncryptedElementType"/>\r
+</schema>\r
diff --git a/schema/saml-schema-metadata-2.0.xsd b/schema/saml-schema-metadata-2.0.xsd
new file mode 100644 (file)
index 0000000..17ec36a
--- /dev/null
@@ -0,0 +1,333 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema
+    targetNamespace="urn:oasis:names:tc:SAML:2.0:metadata"
+    xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
+    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+    xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
+    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
+    xmlns="http://www.w3.org/2001/XMLSchema"
+    elementFormDefault="unqualified"
+    attributeFormDefault="unqualified"
+    blockDefault="substitution"
+    version="2.0">
+    <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
+    <import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="xenc-schema.xsd"/>
+    <import namespace="urn:oasis:names:tc:SAML:2.0:assertion" schemaLocation="sstc-saml-schema-assertion-2.0.xsd"/>
+    <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+    <annotation>
+        <documentation>
+            Document identifier: saml-schema-metadata-2.0
+            Location: http://docs.oasis-open.org/security/saml/v2.0/
+            Revision history:
+              V2.0 (March, 2005):
+                Schema for SAML metadata, first published in SAML 2.0.
+        </documentation>
+    </annotation>
+
+    <simpleType name="entityIDType">
+        <restriction base="anyURI">
+            <maxLength value="1024"/>
+        </restriction>
+    </simpleType>
+    <complexType name="localizedNameType">
+        <simpleContent>
+            <extension base="string">
+                <attribute ref="xml:lang" use="required"/>
+            </extension>
+        </simpleContent>
+    </complexType>
+    <complexType name="localizedURIType">
+        <simpleContent>
+            <extension base="anyURI">
+                <attribute ref="xml:lang" use="required"/>
+            </extension>
+        </simpleContent>
+    </complexType>
+    
+    <element name="Extensions" type="md:ExtensionsType"/>
+    <complexType final="#all" name="ExtensionsType">
+        <sequence>
+            <any namespace="##other" processContents="lax" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+    
+    <complexType name="EndpointType">
+        <sequence>
+            <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="Binding" type="anyURI" use="required"/>
+        <attribute name="Location" type="anyURI" use="required"/>
+        <attribute name="ResponseLocation" type="anyURI" use="optional"/>
+        <anyAttribute namespace="##other" processContents="lax"/>
+    </complexType>
+    
+    <complexType name="IndexedEndpointType">
+        <complexContent>
+            <extension base="md:EndpointType">
+                <attribute name="index" type="unsignedShort" use="required"/>
+                <attribute name="isDefault" type="boolean" use="optional"/>
+            </extension>
+        </complexContent>
+    </complexType>
+    
+    <element name="EntitiesDescriptor" type="md:EntitiesDescriptorType"/>
+    <complexType name="EntitiesDescriptorType">
+        <sequence>
+            <element ref="ds:Signature" minOccurs="0"/>
+            <element ref="md:Extensions" minOccurs="0"/>
+            <choice minOccurs="1" maxOccurs="unbounded">
+                <element ref="md:EntityDescriptor"/>
+                <element ref="md:EntitiesDescriptor"/>
+            </choice>
+        </sequence>
+        <attribute name="validUntil" type="dateTime" use="optional"/>
+        <attribute name="cacheDuration" type="duration" use="optional"/>
+        <attribute name="ID" type="ID" use="optional"/>
+        <attribute name="Name" type="string" use="optional"/>
+    </complexType>
+
+    <element name="EntityDescriptor" type="md:EntityDescriptorType"/>
+    <complexType name="EntityDescriptorType">
+        <sequence>
+            <element ref="ds:Signature" minOccurs="0"/>
+            <element ref="md:Extensions" minOccurs="0"/>
+            <choice>
+                <choice maxOccurs="unbounded">
+                    <element ref="md:RoleDescriptor"/>
+                    <element ref="md:IDPSSODescriptor"/>
+                    <element ref="md:SPSSODescriptor"/>
+                    <element ref="md:AuthnAuthorityDescriptor"/>
+                    <element ref="md:AttributeAuthorityDescriptor"/>
+                    <element ref="md:PDPDescriptor"/>
+                </choice>
+                <element ref="md:AffiliationDescriptor"/>
+            </choice>
+            <element ref="md:Organization" minOccurs="0"/>
+            <element ref="md:ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
+            <element ref="md:AdditionalMetadataLocation" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="entityID" type="md:entityIDType" use="required"/>
+        <attribute name="validUntil" type="dateTime" use="optional"/>
+        <attribute name="cacheDuration" type="duration" use="optional"/>
+        <attribute name="ID" type="ID" use="optional"/>
+        <anyAttribute namespace="##other" processContents="lax"/>
+    </complexType>
+    
+    <element name="Organization" type="md:OrganizationType"/>
+    <complexType name="OrganizationType">
+        <sequence>
+            <element ref="md:Extensions" minOccurs="0"/>
+            <element ref="md:OrganizationName" maxOccurs="unbounded"/>
+            <element ref="md:OrganizationDisplayName" maxOccurs="unbounded"/>
+            <element ref="md:OrganizationURL" maxOccurs="unbounded"/>
+        </sequence>
+        <anyAttribute namespace="##other" processContents="lax"/>
+    </complexType>
+    <element name="OrganizationName" type="md:localizedNameType"/>
+    <element name="OrganizationDisplayName" type="md:localizedNameType"/>
+    <element name="OrganizationURL" type="md:localizedURIType"/>
+    <element name="ContactPerson" type="md:ContactType"/>
+    <complexType name="ContactType">
+        <sequence>
+            <element ref="md:Extensions" minOccurs="0"/>
+            <element ref="md:Company" minOccurs="0"/>
+            <element ref="md:GivenName" minOccurs="0"/>
+            <element ref="md:SurName" minOccurs="0"/>
+            <element ref="md:EmailAddress" minOccurs="0" maxOccurs="unbounded"/>
+            <element ref="md:TelephoneNumber" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="contactType" type="md:ContactTypeType" use="required"/>
+        <anyAttribute namespace="##other" processContents="lax"/>
+    </complexType>
+    <element name="Company" type="string"/>
+    <element name="GivenName" type="string"/>
+    <element name="SurName" type="string"/>
+    <element name="EmailAddress" type="anyURI"/>
+    <element name="TelephoneNumber" type="string"/>
+    <simpleType name="ContactTypeType">
+        <restriction base="string">
+            <enumeration value="technical"/>
+            <enumeration value="support"/>
+            <enumeration value="administrative"/>
+            <enumeration value="billing"/>
+            <enumeration value="other"/>
+        </restriction>
+    </simpleType>
+
+    <element name="AdditionalMetadataLocation" type="md:AdditionalMetadataLocationType"/>
+    <complexType name="AdditionalMetadataLocationType">
+        <simpleContent>
+            <extension base="anyURI">
+                <attribute name="namespace" type="anyURI" use="required"/>
+            </extension>
+        </simpleContent>
+    </complexType>
+
+    <element name="RoleDescriptor" type="md:RoleDescriptorType"/>
+    <complexType name="RoleDescriptorType" abstract="true">
+        <sequence>
+            <element ref="ds:Signature" minOccurs="0"/>
+            <element ref="md:Extensions" minOccurs="0"/>
+            <element ref="md:KeyDescriptor" minOccurs="0" maxOccurs="unbounded"/>
+            <element ref="md:Organization" minOccurs="0"/>
+            <element ref="md:ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="ID" type="ID" use="optional"/>
+        <attribute name="validUntil" type="dateTime" use="optional"/>
+        <attribute name="cacheDuration" type="duration" use="optional"/>
+        <attribute name="protocolSupportEnumeration" type="md:anyURIListType" use="required"/>
+        <attribute name="errorURL" type="anyURI" use="optional"/>
+        <anyAttribute namespace="##other" processContents="lax"/>
+    </complexType>
+    <simpleType name="anyURIListType">
+        <list itemType="anyURI"/>
+    </simpleType>
+
+    <element name="KeyDescriptor" type="md:KeyDescriptorType"/>
+    <complexType name="KeyDescriptorType">
+        <sequence>
+            <element ref="ds:KeyInfo"/>
+            <element ref="md:EncryptionMethod" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="use" type="md:KeyTypes" use="optional"/>
+    </complexType>
+    <simpleType name="KeyTypes">
+        <restriction base="string">
+            <enumeration value="encryption"/>
+            <enumeration value="signing"/>
+        </restriction>
+    </simpleType>
+    <element name="EncryptionMethod" type="xenc:EncryptionMethodType"/>
+    
+    <complexType name="SSODescriptorType" abstract="true">
+        <complexContent>
+            <extension base="md:RoleDescriptorType">
+                <sequence>
+                    <element ref="md:ArtifactResolutionService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:SingleLogoutService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:ManageNameIDService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
+                </sequence>
+            </extension>
+        </complexContent>
+    </complexType>
+    <element name="ArtifactResolutionService" type="md:IndexedEndpointType"/>
+    <element name="SingleLogoutService" type="md:EndpointType"/>
+    <element name="ManageNameIDService" type="md:EndpointType"/>
+    <element name="NameIDFormat" type="anyURI"/>
+
+    <element name="IDPSSODescriptor" type="md:IDPSSODescriptorType"/>
+    <complexType name="IDPSSODescriptorType">
+        <complexContent>
+            <extension base="md:SSODescriptorType">
+                <sequence>
+                    <element ref="md:SingleSignOnService" maxOccurs="unbounded"/>
+                    <element ref="md:NameIDMappingService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:AttributeProfile" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="saml:Attribute" minOccurs="0" maxOccurs="unbounded"/>
+                </sequence>
+                <attribute name="WantAuthnRequestsSigned" type="boolean" use="optional"/>
+            </extension>
+        </complexContent>
+    </complexType>
+    <element name="SingleSignOnService" type="md:EndpointType"/>
+    <element name="NameIDMappingService" type="md:EndpointType"/>
+    <element name="AssertionIDRequestService" type="md:EndpointType"/>
+    <element name="AttributeProfile" type="anyURI"/>
+    
+    <element name="SPSSODescriptor" type="md:SPSSODescriptorType"/>
+    <complexType name="SPSSODescriptorType">
+        <complexContent>
+            <extension base="md:SSODescriptorType">
+                <sequence>
+                    <element ref="md:AssertionConsumerService" maxOccurs="unbounded"/>
+                    <element ref="md:AttributeConsumingService" minOccurs="0" maxOccurs="unbounded"/>
+                </sequence>
+                <attribute name="AuthnRequestsSigned" type="boolean" use="optional"/>
+                <attribute name="WantAssertionsSigned" type="boolean" use="optional"/>
+            </extension>
+        </complexContent>
+    </complexType>
+    <element name="AssertionConsumerService" type="md:IndexedEndpointType"/>
+    <element name="AttributeConsumingService" type="md:AttributeConsumingServiceType"/>
+    <complexType name="AttributeConsumingServiceType">
+        <sequence>
+            <element ref="md:ServiceName" maxOccurs="unbounded"/>
+            <element ref="md:ServiceDescription" minOccurs="0" maxOccurs="unbounded"/>
+            <element ref="md:RequestedAttribute" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="index" type="unsignedShort" use="required"/>
+        <attribute name="isDefault" type="boolean" use="optional"/>
+    </complexType>
+    <element name="ServiceName" type="md:localizedNameType"/>
+    <element name="ServiceDescription" type="md:localizedNameType"/>
+    <element name="RequestedAttribute" type="md:RequestedAttributeType"/>
+    <complexType name="RequestedAttributeType">
+        <complexContent>
+            <extension base="saml:AttributeType">
+                <attribute name="isRequired" type="boolean" use="optional"/>
+            </extension>
+        </complexContent>
+    </complexType>
+  
+    <element name="AuthnAuthorityDescriptor" type="md:AuthnAuthorityDescriptorType"/>
+    <complexType name="AuthnAuthorityDescriptorType">
+        <complexContent>
+            <extension base="md:RoleDescriptorType">
+                <sequence>
+                    <element ref="md:AuthnQueryService" maxOccurs="unbounded"/>
+                    <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
+                </sequence>
+            </extension>
+        </complexContent>
+    </complexType>
+    <element name="AuthnQueryService" type="md:EndpointType"/>
+
+    <element name="PDPDescriptor" type="md:PDPDescriptorType"/>
+    <complexType name="PDPDescriptorType">
+        <complexContent>
+            <extension base="md:RoleDescriptorType">
+                <sequence>
+                    <element ref="md:AuthzService" maxOccurs="unbounded"/>
+                    <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
+                </sequence>
+            </extension>
+        </complexContent>
+    </complexType>
+    <element name="AuthzService" type="md:EndpointType"/>
+
+    <element name="AttributeAuthorityDescriptor" type="md:AttributeAuthorityDescriptorType"/>
+    <complexType name="AttributeAuthorityDescriptorType">
+        <complexContent>
+            <extension base="md:RoleDescriptorType">
+                <sequence>
+                    <element ref="md:AttributeService" maxOccurs="unbounded"/>
+                    <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="md:AttributeProfile" minOccurs="0" maxOccurs="unbounded"/>
+                    <element ref="saml:Attribute" minOccurs="0" maxOccurs="unbounded"/>
+                </sequence>
+            </extension>
+        </complexContent>
+    </complexType>
+    <element name="AttributeService" type="md:EndpointType"/>
+   
+    <element name="AffiliationDescriptor" type="md:AffiliationDescriptorType"/>
+    <complexType name="AffiliationDescriptorType">
+        <sequence>
+            <element ref="ds:Signature" minOccurs="0"/>
+            <element ref="md:Extensions" minOccurs="0"/>
+            <element ref="md:AffiliateMember" maxOccurs="unbounded"/>
+            <element ref="md:KeyDescriptor" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="affiliationOwnerID" type="md:entityIDType" use="required"/>
+        <attribute name="validUntil" type="dateTime" use="optional"/>
+        <attribute name="cacheDuration" type="duration" use="optional"/>
+        <attribute name="ID" type="ID" use="optional"/>
+        <anyAttribute namespace="##other" processContents="lax"/>
+    </complexType>
+    <element name="AffiliateMember" type="md:entityIDType"/>
+</schema>
index f23e462..63c2c0a 100644 (file)
@@ -21,7 +21,7 @@
   </annotation>
 
   <import namespace="urn:oasis:names:tc:SAML:2.0:assertion"
-      schemaLocation="saml-schema-assertion-2.0.xsd"/>
+      schemaLocation="sstc-saml-schema-assertion-2.0.xsd"/>
 
   <element name="EntityAttributes" type="mdattr:EntityAttributesType"/>
   <complexType name="EntityAttributesType">
diff --git a/schema/sstc-saml-metadata-algsupport.xsd b/schema/sstc-saml-metadata-algsupport.xsd
new file mode 100644 (file)
index 0000000..6c7167d
--- /dev/null
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<schema \r
+  targetNamespace="urn:oasis:names:tc:SAML:metadata:algsupport"\r
+  xmlns="http://www.w3.org/2001/XMLSchema"\r
+  xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport"\r
+  elementFormDefault="unqualified"\r
+  attributeFormDefault="unqualified"\r
+  blockDefault="substitution"\r
+  version="2.0">\r
+\r
+  <annotation>\r
+    <documentation>\r
+      Document title: Metadata Extension Schema for SAML V2.0 Metadata Profile for Algorithm Support Version 1.0\r
+      Document identifier: sstc-saml-metadata-algsupport.xsd\r
+      Location: http://docs.oasis-open.org/security/saml/Post2.0/\r
+      Revision history:\r
+      V1.0 (June 2010):\r
+        Initial version.\r
+    </documentation>\r
+  </annotation>\r
+\r
+  <element name="DigestMethod" type="alg:DigestMethodType"/>\r
+  <complexType name="DigestMethodType">\r
+    <sequence>\r
+      <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>\r
+    </sequence>\r
+    <attribute name="Algorithm" type="anyURI" use="required"/>\r
+  </complexType>\r
+\r
+  <element name="SigningMethod" type="alg:SigningMethodType"/>\r
+  <complexType name="SigningMethodType">\r
+    <sequence>\r
+      <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>\r
+    </sequence>\r
+    <attribute name="Algorithm" type="anyURI" use="required"/>\r
+    <attribute name="MinKeySize" type="positiveInteger"/>\r
+    <attribute name="MaxKeySize" type="positiveInteger"/>\r
+  </complexType>\r
+\r
+</schema>\r
+\r
index 1b0d704..19f4cb9 100644 (file)
     attributeFormDefault="unqualified"
     blockDefault="substitution"
     version="2.0">
-    <import namespace="http://www.w3.org/2000/09/xmldsig#"
-        schemaLocation="xmldsig-core-schema.xsd"/>
-    <import namespace="http://www.w3.org/2001/04/xmlenc#"
-        schemaLocation="xenc-schema.xsd"/>
-    <import namespace="urn:oasis:names:tc:SAML:2.0:assertion"
-        schemaLocation="sstc-saml-schema-assertion-2.0.xsd"/>
-    <import namespace="http://www.w3.org/XML/1998/namespace"
-        schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+    <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
+    <import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="xenc-schema.xsd"/>
+    <import namespace="urn:oasis:names:tc:SAML:2.0:assertion" schemaLocation="sstc-saml-schema-assertion-2.0.xsd"/>
+    <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
     <annotation>
         <documentation>
             Document identifier: sstc-saml-schema-metadata-2.0
diff --git a/schema/ws-addr.xsd b/schema/ws-addr.xsd
new file mode 100644 (file)
index 0000000..47362ed
--- /dev/null
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+    W3C XML Schema defined in the Web Services Addressing 1.0 specification
+    http://www.w3.org/TR/ws-addr-core
+
+   Copyright © 2005 World Wide Web Consortium,
+
+   (Massachusetts Institute of Technology, European Research Consortium for
+   Informatics and Mathematics, Keio University). All Rights Reserved. This
+   work is distributed under the W3C® Software License [1] in the hope that
+   it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+   [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+   $Id: ws-addr.xsd,v 1.2 2008/07/23 13:38:16 plehegar Exp $
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2005/08/addressing" targetNamespace="http://www.w3.org/2005/08/addressing" blockDefault="#all" elementFormDefault="qualified" finalDefault="" attributeFormDefault="unqualified">
+       
+       <!-- Constructs from the WS-Addressing Core -->
+
+       <xs:element name="EndpointReference" type="tns:EndpointReferenceType"/>
+       <xs:complexType name="EndpointReferenceType" mixed="false">
+               <xs:sequence>
+                       <xs:element name="Address" type="tns:AttributedURIType"/>
+                       <xs:element ref="tns:ReferenceParameters" minOccurs="0"/>
+                       <xs:element ref="tns:Metadata" minOccurs="0"/>
+                       <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+               </xs:sequence>
+               <xs:anyAttribute namespace="##other" processContents="lax"/>
+       </xs:complexType>
+       
+       <xs:element name="ReferenceParameters" type="tns:ReferenceParametersType"/>
+       <xs:complexType name="ReferenceParametersType" mixed="false">
+               <xs:sequence>
+                       <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+               </xs:sequence>
+               <xs:anyAttribute namespace="##other" processContents="lax"/>
+       </xs:complexType>
+       
+       <xs:element name="Metadata" type="tns:MetadataType"/>
+       <xs:complexType name="MetadataType" mixed="false">
+               <xs:sequence>
+                       <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+               </xs:sequence>
+               <xs:anyAttribute namespace="##other" processContents="lax"/>
+       </xs:complexType>
+       
+       <xs:element name="MessageID" type="tns:AttributedURIType"/>
+       <xs:element name="RelatesTo" type="tns:RelatesToType"/>
+       <xs:complexType name="RelatesToType" mixed="false">
+               <xs:simpleContent>
+                       <xs:extension base="xs:anyURI">
+                               <xs:attribute name="RelationshipType" type="tns:RelationshipTypeOpenEnum" use="optional" default="http://www.w3.org/2005/08/addressing/reply"/>
+                               <xs:anyAttribute namespace="##other" processContents="lax"/>
+                       </xs:extension>
+               </xs:simpleContent>
+       </xs:complexType>
+       
+       <xs:simpleType name="RelationshipTypeOpenEnum">
+               <xs:union memberTypes="tns:RelationshipType xs:anyURI"/>
+       </xs:simpleType>
+       
+       <xs:simpleType name="RelationshipType">
+               <xs:restriction base="xs:anyURI">
+                       <xs:enumeration value="http://www.w3.org/2005/08/addressing/reply"/>
+               </xs:restriction>
+       </xs:simpleType>
+       
+       <xs:element name="ReplyTo" type="tns:EndpointReferenceType"/>
+       <xs:element name="From" type="tns:EndpointReferenceType"/>
+       <xs:element name="FaultTo" type="tns:EndpointReferenceType"/>
+       <xs:element name="To" type="tns:AttributedURIType"/>
+       <xs:element name="Action" type="tns:AttributedURIType"/>
+
+       <xs:complexType name="AttributedURIType" mixed="false">
+               <xs:simpleContent>
+                       <xs:extension base="xs:anyURI">
+                               <xs:anyAttribute namespace="##other" processContents="lax"/>
+                       </xs:extension>
+               </xs:simpleContent>
+       </xs:complexType>
+       
+       <!-- Constructs from the WS-Addressing SOAP binding -->
+
+       <xs:attribute name="IsReferenceParameter" type="xs:boolean"/>
+       
+       <xs:simpleType name="FaultCodesOpenEnumType">
+               <xs:union memberTypes="tns:FaultCodesType xs:QName"/>
+       </xs:simpleType>
+       
+       <xs:simpleType name="FaultCodesType">
+               <xs:restriction base="xs:QName">
+                       <xs:enumeration value="tns:InvalidAddressingHeader"/>
+                       <xs:enumeration value="tns:InvalidAddress"/>
+                       <xs:enumeration value="tns:InvalidEPR"/>
+                       <xs:enumeration value="tns:InvalidCardinality"/>
+                       <xs:enumeration value="tns:MissingAddressInEPR"/>
+                       <xs:enumeration value="tns:DuplicateMessageID"/>
+                       <xs:enumeration value="tns:ActionMismatch"/>
+                       <xs:enumeration value="tns:MessageAddressingHeaderRequired"/>
+                       <xs:enumeration value="tns:DestinationUnreachable"/>
+                       <xs:enumeration value="tns:ActionNotSupported"/>
+                       <xs:enumeration value="tns:EndpointUnavailable"/>
+               </xs:restriction>
+       </xs:simpleType>
+       
+       <xs:element name="RetryAfter" type="tns:AttributedUnsignedLongType"/>
+       <xs:complexType name="AttributedUnsignedLongType" mixed="false">
+               <xs:simpleContent>
+                       <xs:extension base="xs:unsignedLong">
+                               <xs:anyAttribute namespace="##other" processContents="lax"/>
+                       </xs:extension>
+               </xs:simpleContent>
+       </xs:complexType>
+       
+       <xs:element name="ProblemHeaderQName" type="tns:AttributedQNameType"/>
+       <xs:complexType name="AttributedQNameType" mixed="false">
+               <xs:simpleContent>
+                       <xs:extension base="xs:QName">
+                               <xs:anyAttribute namespace="##other" processContents="lax"/>
+                       </xs:extension>
+               </xs:simpleContent>
+       </xs:complexType>
+       
+       <xs:element name="ProblemIRI" type="tns:AttributedURIType"/>
+       
+       <xs:element name="ProblemAction" type="tns:ProblemActionType"/>
+       <xs:complexType name="ProblemActionType" mixed="false">
+               <xs:sequence>
+                       <xs:element ref="tns:Action" minOccurs="0"/>
+                       <xs:element name="SoapAction" minOccurs="0" type="xs:anyURI"/>
+               </xs:sequence>
+               <xs:anyAttribute namespace="##other" processContents="lax"/>
+       </xs:complexType>
+       
+</xs:schema>
diff --git a/schema/ws-authorization.xsd b/schema/ws-authorization.xsd
new file mode 100644 (file)
index 0000000..c52670d
--- /dev/null
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<!-- \r
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the \r
+implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; \r
+neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS \r
+specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made \r
+available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users \r
+of this specification, can be obtained from the OASIS Executive Director.\r
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may \r
+cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.\r
+Copyright © OASIS Open 2002-2007. All Rights Reserved.\r
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist \r
+in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the \r
+above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified \r
+in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, \r
+in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate \r
+it into languages other than English.\r
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.\r
+This document and the information contained herein is provided on an AS IS basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, \r
+INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF \r
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\r
+  -->\r
+\r
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'\r
+       xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'    \r
+                  xmlns:tns='http://docs.oasis-open.org/wsfed/authorization/200706'\r
+                  targetNamespace='http://docs.oasis-open.org/wsfed/authorization/200706'\r
+                  elementFormDefault='qualified' >\r
+  <xs:import namespace='http://www.w3.org/2001/04/xmlenc#' schemaLocation='xenc-schema.xsd'/>\r
+  \r
+  <!-- Section 9.2 -->\r
+  <xs:element name='AdditionalContext' type='tns:AdditionalContextType' />\r
+  <xs:complexType name='AdditionalContextType' >\r
+    <xs:sequence>\r
+      <xs:element name='ContextItem' type='tns:ContextItemType' minOccurs='0' maxOccurs='unbounded' />\r
+      <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+    </xs:sequence>\r
+    <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='ContextItemType' >\r
+    <xs:choice minOccurs='0'>\r
+      <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />\r
+      <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />\r
+    </xs:choice>\r
+    <xs:attribute name='Name' type='xs:anyURI' use='required' />\r
+       <xs:attribute name='Scope' type='xs:anyURI' use='optional' />\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />   \r
+  </xs:complexType>\r
+\r
+  <!-- Section 9.3 -->\r
+  <xs:element name='ClaimType' type='tns:ClaimType' />\r
+  <xs:complexType name='ClaimType' >\r
+    <xs:sequence>\r
+      <xs:element name="DisplayName" type="tns:DisplayNameType" minOccurs="0" maxOccurs="1" />\r
+      <xs:element name="Description" type="tns:DescriptionType" minOccurs="0" maxOccurs="1" />\r
+      <xs:element name="DisplayValue" type="tns:DisplayValueType" minOccurs="0" maxOccurs="1" />\r
+      <xs:choice minOccurs='0'>\r
+             <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />\r
+        <xs:element name='EncryptedValue' type='tns:EncryptedValueType' minOccurs='1' maxOccurs='1' />\r
+        <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />\r
+        <xs:element name='ConstrainedValue' type='tns:ConstrainedValueType' minOccurs='1' maxOccurs='1' />\r
+             <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />\r
+           </xs:choice>\r
+    </xs:sequence>\r
+       <xs:attribute name='Uri' type='xs:anyURI' use='required' />\r
+       <xs:attribute name='Optional' type='xs:boolean' use='optional' />\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />   \r
+  </xs:complexType>\r
+\r
+  <xs:complexType name="DisplayNameType">\r
+    <xs:simpleContent>\r
+     <xs:extension base="xs:string">\r
+        <xs:anyAttribute namespace="##other" processContents="lax" />\r
+      </xs:extension>\r
+    </xs:simpleContent>\r
+  </xs:complexType>\r
+  <xs:complexType name="DescriptionType">\r
+    <xs:simpleContent>\r
+      <xs:extension base="xs:string">\r
+        <xs:anyAttribute namespace="##other" processContents="lax" />\r
+      </xs:extension>\r
+    </xs:simpleContent>\r
+  </xs:complexType>\r
+  <xs:complexType name="DisplayValueType">\r
+    <xs:simpleContent>\r
+      <xs:extension base="xs:string">\r
+        <xs:anyAttribute namespace="##other" processContents="lax" />\r
+      </xs:extension>\r
+    </xs:simpleContent>\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name="EncryptedValueType">\r
+    <xs:sequence>\r
+      <xs:element ref="xenc:EncryptedData" minOccurs="1" maxOccurs="1"/>\r
+    </xs:sequence>\r
+    <xs:attribute name="DecryptionCondition" type="xs:anyURI" use="optional"/>\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name="StructuredValueType">\r
+    <xs:sequence>\r
+      <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />\r
+    </xs:sequence>\r
+    <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 9.3.1 -->\r
+\r
+  <xs:complexType name='ConstrainedValueType'>\r
+    <xs:sequence>\r
+      <xs:choice minOccurs='1'>\r
+        <xs:element name='ValueLessThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>\r
+        <xs:element name='ValueLessThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>\r
+        <xs:element name='ValueGreaterThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>\r
+        <xs:element name='ValueGreaterThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>\r
+        <xs:element name='ValueInRangen' type='tns:ValueInRangeType' minOccurs='1' maxOccurs='1'/>\r
+        <xs:element name='ValueOneOf' type='tns:ConstrainedManyValueType' minOccurs='1' maxOccurs='1'/>\r
+      </xs:choice>\r
+      <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />\r
+    </xs:sequence>\r
+    <xs:attribute name='AssertConstraint' type='xs:boolean' use='optional' />\r
+  </xs:complexType>\r
+  <xs:complexType name='ValueInRangeType'>\r
+    <xs:sequence>\r
+      <xs:element name='ValueUpperBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>\r
+      <xs:element name='ValueLowerBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>\r
+    </xs:sequence>\r
+  </xs:complexType>\r
+  \r
+  <xs:complexType name='ConstrainedSingleValueType'>\r
+    <xs:choice minOccurs='0'>\r
+      <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />\r
+      <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />\r
+    </xs:choice>\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='ConstrainedManyValueType'>\r
+    <xs:choice minOccurs='0'>\r
+      <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='unbounded' />\r
+      <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='unbounded' />\r
+    </xs:choice>\r
+  </xs:complexType>\r
+\r
+</xs:schema>\r
diff --git a/schema/ws-federation.xsd b/schema/ws-federation.xsd
new file mode 100644 (file)
index 0000000..1337dc3
--- /dev/null
@@ -0,0 +1,464 @@
+<?xml version="1.0" encoding="UTF-8" ?>\r
+<!-- \r
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the \r
+implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; \r
+neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS \r
+specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made \r
+available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users \r
+of this specification, can be obtained from the OASIS Executive Director.\r
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may \r
+cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.\r
+Copyright © OASIS Open 2002-2007. All Rights Reserved.\r
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist \r
+in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the \r
+above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified \r
+in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, \r
+in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate \r
+it into languages other than English.\r
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.\r
+This document and the information contained herein is provided on an AS IS basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, \r
+INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF \r
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\r
+  -->\r
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'\r
+                  xmlns:sp='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'\r
+                  xmlns:tns='http://docs.oasis-open.org/wsfed/federation/200706'\r
+                  xmlns:wsa='http://www.w3.org/2005/08/addressing'\r
+       xmlns:mex='http://schemas.xmlsoap.org/ws/2004/09/mex'\r
+       xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'\r
+                  xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'\r
+       xmlns:md='urn:oasis:names:tc:SAML:2.0:metadata'\r
+       xmlns:auth='http://docs.oasis-open.org/wsfed/authorization/200706'\r
+                  targetNamespace='http://docs.oasis-open.org/wsfed/federation/200706'\r
+                  elementFormDefault='qualified' >\r
+\r
+  <xs:import namespace='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' schemaLocation='oasis-200401-wss-wssecurity-secext-1.0.xsd' />\r
+  <xs:import namespace='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' schemaLocation='oasis-200401-wss-wssecurity-utility-1.0.xsd' />\r
+  <xs:import namespace='http://www.w3.org/2005/08/addressing' schemaLocation='ws-addr.xsd' />\r
+  <xs:import namespace='http://schemas.xmlsoap.org/ws/2004/09/mex' schemaLocation='MetadataExchange.xsd' />\r
+  <xs:import namespace='urn:oasis:names:tc:SAML:2.0:metadata' schemaLocation='saml-schema-metadata-2.0.xsd' />\r
+  <xs:import namespace='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702' schemaLocation='ws-securitypolicy-1.2.xsd'/>\r
+  <xs:import namespace='http://docs.oasis-open.org/wsfed/authorization/200706' schemaLocation='ws-authorization.xsd'/>\r
+\r
+  <!-- Section 3.1 -->\r
+  <!-- Note: Use of this root element is discouraged in favor of use of md:EntitiesDescriptor or md EntityDescriptor -->\r
+  <xs:element name='FederationMetadata' type='tns:FederationMetadataType' />\r
+\r
+  <xs:complexType name='FederationMetadataType' >\r
+    <xs:sequence>\r
+         <!--\r
+                 *** Accurate content model is nondeterministic ***\r
+                 <xs:element name='Federation' type='tns:FederationType' minOccurs='1' maxOccurs='unbounded' />\r
+                 <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+         -->\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='FederationType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:attribute name='FederationID' type='xs:anyURI' />\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 3.1.2.1 -->\r
+  <xs:complexType name="WebServiceDescriptorType" abstract="true">\r
+    <xs:complexContent>\r
+      <xs:extension base="md:RoleDescriptorType">\r
+        <xs:sequence>\r
+          <xs:element ref="tns:LogicalServiceNamesOffered" minOccurs="0" maxOccurs="1" />\r
+          <xs:element ref="tns:TokenTypesOffered" minOccurs="0" maxOccurs="1" />\r
+          <xs:element ref="tns:ClaimDialectsOffered" minOccurs="0" maxOccurs="1" />\r
+          <xs:element ref="tns:ClaimTypesOffered" minOccurs="0" maxOccurs="1" />\r
+          <xs:element ref="tns:ClaimTypesRequested" minOccurs="0" maxOccurs="1" />\r
+          <xs:element ref="tns:AutomaticPseudonyms" minOccurs="0" maxOccurs="1"/>\r
+          <xs:element ref="tns:TargetScopes" minOccurs="0" maxOccurs="1"/>\r
+        </xs:sequence>\r
+        <xs:attribute name="ServiceDisplayName" type="xs:string" use="optional"/>\r
+        <xs:attribute name="ServiceDescription" type="xs:string" use="optional"/>\r
+    </xs:extension>\r
+    </xs:complexContent>\r
+  </xs:complexType>\r
+\r
+  <xs:element name='LogicalServiceNamesOffered' type='tns:LogicalServiceNamesOfferedType' />\r
+  <xs:element name='TokenTypesOffered' type='tns:TokenTypesOfferedType' />\r
+  <xs:element name='ClaimDialectsOffered' type='tns:ClaimDialectsOfferedType' />\r
+  <xs:element name='ClaimTypesOffered' type='tns:ClaimTypesOfferedType' />\r
+  <xs:element name='ClaimTypesRequested' type='tns:ClaimTypesRequestedType' />\r
+  <xs:element name="AutomaticPseudonyms" type="xs:boolean"/>\r
+  <xs:element name='TargetScopes' type='tns:EndpointType'/>\r
+\r
+  <!-- Section 3.1.2.2 -->\r
+  <xs:complexType name="SecurityTokenServiceType">\r
+    <xs:complexContent>\r
+      <xs:extension base="tns:WebServiceDescriptorType">\r
+        <xs:sequence>\r
+          <xs:element ref="tns:SecurityTokenServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>\r
+          <xs:element ref="tns:SingleSignOutSubscriptionEndpoint" minOccurs="0" maxOccurs="unbounded"/>\r
+          <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>\r
+          <xs:element ref="tns:PassiveRequestorEndpoint" minOccurs="0" maxOccurs="unbounded"/>\r
+        </xs:sequence>\r
+      </xs:extension>\r
+    </xs:complexContent>\r
+  </xs:complexType>\r
+  <xs:element name="SecurityTokenServiceEndpoint" type="tns:EndpointType"/>\r
+  <xs:element name="SingleSignOutSubscriptionEndpoint" type="tns:EndpointType"/>\r
+  <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/>\r
+  <xs:element name="PassiveRequestorEndpoint" type="tns:EndpointType"/>\r
+\r
+  <!-- Section 3.1.2.3 -->\r
+  <xs:complexType name="PseudonymServiceType">\r
+    <xs:complexContent>\r
+      <xs:extension base="tns:WebServiceDescriptorType">\r
+        <xs:sequence>\r
+          <xs:element ref="tns:PseudonymServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>\r
+          <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>\r
+        </xs:sequence>\r
+      </xs:extension>\r
+    </xs:complexContent>\r
+  </xs:complexType>\r
+\r
+  <xs:element name="PseudonymServiceEndpoint" type="tns:EndpointType"/>\r
+  <!-- Defined above -->\r
+  <!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->\r
+\r
+  <!-- Section 3.1.2.4 -->\r
+  <xs:complexType name="AttributeServiceType">\r
+    <xs:complexContent>\r
+      <xs:extension base="tns:WebServiceDescriptorType">\r
+        <xs:sequence>\r
+          <xs:element ref="tns:AttributeServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>\r
+          <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>\r
+        </xs:sequence>\r
+      </xs:extension>\r
+    </xs:complexContent>\r
+  </xs:complexType>\r
+  <xs:element name="AttributeServiceEndpoint" type="tns:EndpointType"/>\r
+  <!-- Defined above -->\r
+  <!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->\r
+\r
+  <!-- Section 3.1.2.5 -->\r
+  <xs:complexType name="ApplicationServiceType">\r
+    <xs:complexContent>\r
+      <xs:extension base="tns:WebServiceDescriptorType">\r
+        <xs:sequence>\r
+          <xs:element ref="tns:ApplicationServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>\r
+          <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>\r
+          <xs:element ref="tns:PassiveRequestorEndpoint" minOccurs="0" maxOccurs="unbounded"/>\r
+        </xs:sequence>\r
+      </xs:extension>\r
+    </xs:complexContent>\r
+  </xs:complexType>\r
+  <xs:element name="ApplicationServiceEndpoint" type="tns:EndpointType"/>\r
+  <!-- Defined above -->\r
+  <!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->\r
+  <!-- <xs:element name="PassiveRequestorEndpoint" type="tns:EndpointType"/> -->\r
+\r
+\r
+  <!-- Section 3.1.3 -->\r
+  <!-- Defined above -->\r
+  <!--<xs:element name='LogicalServiceNamesOffered' type='tns:LogicalServiceNamesOfferedType' />-->\r
+\r
+  <xs:complexType name='LogicalServiceNamesOfferedType' >\r
+       <xs:sequence>\r
+         <xs:element name='IssuerName' type='tns:IssuerNameType' minOccurs='1' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='IssuerNameType' >\r
+       <xs:attribute name='Uri' type='xs:anyURI' use='required' />\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>  \r
+  \r
+  <!-- Section 3.1.4 -->\r
+  <xs:element name='PsuedonymServiceEndpoints' type='tns:EndpointType' />\r
+  <xs:complexType name='EndpointType' >\r
+    <xs:sequence>\r
+      <xs:element ref='wsa:EndpointReference' minOccurs='1' maxOccurs='unbounded'/>\r
+    </xs:sequence>\r
+  </xs:complexType>\r
+  \r
+  <!-- Section 3.1.5 -->\r
+  <xs:element name='AttributeServiceEndpoints' type='tns:EndpointType' />\r
+\r
+  <!-- Section 3.1.6 -->\r
+  <xs:element name='SingleSignOutSubscriptionEndpoints' type='tns:EndpointType' />\r
+\r
+  <!-- Section 3.1.7 -->\r
+  <xs:element name='SingleSignOutNotificationEndpoints' type='tns:EndpointType' />\r
+\r
+  <!-- Section 3.1.8 -->\r
+  <!-- Defined above -->\r
+  <!--<xs:element name='TokenTypesOffered' type='tns:TokenTypesOfferedType' />-->\r
+  <xs:complexType name='TokenTypesOfferedType' >\r
+       <xs:sequence>\r
+         <xs:element name='TokenType' type='tns:TokenType' minOccurs='1' maxOccurs='unbounded' />\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='TokenType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:attribute name='Uri' type='xs:anyURI' />\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 3.1.9 -->\r
+  <!-- Defined above -->\r
+  <!-- <xs:element name='ClaimTypesOffered' type='tns:ClaimTypesOfferedType' /> -->\r
+  <xs:complexType name='ClaimTypesOfferedType'>\r
+       <xs:sequence>\r
+         <xs:element ref='auth:ClaimType' minOccurs='1' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+  \r
+  <!-- Section 3.1.10 -->\r
+  <!-- Defined above -->\r
+  <!-- <xs:element name='ClaimTypesRequested' ype='tns:ClaimTypesRequestedType' /> -->\r
+  <xs:complexType name='ClaimTypesRequestedType'>\r
+    <xs:sequence>\r
+      <xs:element ref='auth:ClaimType' minOccurs='1' maxOccurs='unbounded' />\r
+    </xs:sequence>\r
+    <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+  \r
+  <!-- Section 3.1.11 -->\r
+  <!-- Defined above -->\r
+  <!--<xs:element name='ClaimDialectsOffered' type='tns:ClaimDialectsOfferedType' />-->\r
+  <xs:complexType name='ClaimDialectsOfferedType'>\r
+    <xs:sequence>\r
+      <xs:element name='ClaimDialect' type='tns:ClaimDialectType' minOccurs='1' maxOccurs='unbounded' />\r
+    </xs:sequence>\r
+    <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='ClaimDialectType' >\r
+    <xs:sequence>\r
+      <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+    </xs:sequence>\r
+    <xs:attribute name='Uri' type='xs:anyURI' />\r
+    <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+  \r
+  <!-- Section 3.1.12 -->\r
+  <!-- Defined above -->\r
+  <!-- <xs:element name='AutomaticPseudonyms' type='xs:boolean' /> -->\r
+\r
+  <!-- Section 3.1.13 -->\r
+  <xs:element name='PassiveRequestorEnpoints' type='tns:EndpointType'/>\r
+  \r
+  <!-- Section 3.1.14 -->\r
+  <!-- Defined above -->\r
+  <!--<xs:element name='TargetScopes' type='tns:EndpointType'/>-->\r
+  \r
+  <!-- Section 3.2.4 -->\r
+  <xs:element name='FederationMetadataHandler' type='tns:FederationMetadataHandlerType' />\r
+  <xs:complexType name='FederationMetadataHandlerType' >\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 4.1 -->\r
+  <xs:element name='SignOut' type='tns:SignOutType' />\r
+  <xs:complexType name='SignOutType' >\r
+       <xs:sequence>\r
+         <xs:element ref='tns:Realm' minOccurs='0' />\r
+         <xs:element name='SignOutBasis' type='tns:SignOutBasisType' minOccurs='1' maxOccurs='1' />\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:attribute ref='wsu:Id' use='optional' />\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='SignOutBasisType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />   \r
+  </xs:complexType>\r
+\r
+  <!-- Section 4.2 -->\r
+  <xs:element name='Realm' type='xs:anyURI' />\r
+\r
+  <!-- Section 6.1 -->\r
+  <xs:element name='FilterPseudonyms' type='tns:FilterPseudonymsType' />\r
+  <xs:complexType name='FilterPseudonymsType' >\r
+       <xs:sequence>\r
+         <xs:element ref='tns:PseudonymBasis' minOccurs='0' maxOccurs='1' />\r
+         <xs:element ref='tns:RelativeTo' minOccurs='0' maxOccurs='1' />\r
+         <xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />   \r
+  </xs:complexType>\r
+\r
+  <xs:element name='PseudonymBasis' type='tns:PseudonymBasisType' />\r
+  <xs:complexType name='PseudonymBasisType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:element name='RelativeTo' type='tns:RelativeToType' />\r
+  <xs:complexType name='RelativeToType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 6.2  -->\r
+  <xs:element name='Pseudonym' type='tns:PseudonymType' />\r
+\r
+  <xs:complexType name='PseudonymType' >\r
+       <xs:sequence>\r
+         <!--\r
+                 *** Accurate content model is nondeterministic ***\r
+                 <xs:element ref='tns:PseudonymBasis' minOccurs='1' maxOccurs='1' /> \r
+                 <xs:element ref='tns:RelativeTo' minOccurs='1' maxOccurs='1' />\r
+                 <xs:element ref='wsu:Expires' minOccurs='0' maxOccurs='1' />\r
+                 <xs:element ref='tns:SecurityToken' minOccurs='0' maxOccurs='unbounded' />\r
+                 <xs:element ref='tns:ProofToken' minOccurs='0' maxOccurs='unbounded' />\r
+                 <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />        \r
+         -->\r
+\r
+         <xs:element ref='tns:PseudonymBasis' minOccurs='1' maxOccurs='1' /> \r
+         <xs:element ref='tns:RelativeTo' minOccurs='1' maxOccurs='1' />\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />          \r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />   \r
+  </xs:complexType>\r
+\r
+  <xs:element name='SecurityToken' type='tns:SecurityTokenType' />\r
+  <xs:complexType name='SecurityTokenType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <xs:element name='ProofToken' type='tns:ProofTokenType' />\r
+  <xs:complexType name='ProofTokenType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 7.1 -->\r
+  <xs:element name='RequestPseudonym' type='tns:RequestPseudonymType' />\r
+  <xs:complexType name='RequestPseudonymType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />        \r
+       </xs:sequence>\r
+       <xs:attribute name='SingleUse' type='xs:boolean' use='optional' />\r
+       <xs:attribute name='Lookup' type='xs:boolean' use='optional' />\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />  \r
+  </xs:complexType>\r
+\r
+  <!-- Section 8.1 -->\r
+  <xs:element name='ReferenceToken' type='tns:ReferenceTokenType' />\r
+  <xs:complexType name='ReferenceTokenType'>\r
+       <xs:sequence>\r
+         <xs:element name='ReferenceEPR' type='wsa:EndpointReferenceType' minOccurs='1' maxOccurs='unbounded' />\r
+         <xs:element name='ReferenceDigest' type='tns:ReferenceDigestType' minOccurs='0' maxOccurs='1' />\r
+         <xs:element name='ReferenceType' type='tns:AttributeExtensibleURI' minOccurs='0' maxOccurs='1' />\r
+         <xs:element name='SerialNo' type='tns:AttributeExtensibleURI' minOccurs='0' maxOccurs='1' />\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />                \r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />  \r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='ReferenceDigestType' >\r
+       <xs:simpleContent>\r
+         <xs:extension base='xs:base64Binary' >\r
+               <xs:anyAttribute namespace='##other' processContents='lax' />  \r
+         </xs:extension>\r
+       </xs:simpleContent>\r
+  </xs:complexType>\r
+  <xs:complexType name='AttributeExtensibleURI' >\r
+    <xs:simpleContent>\r
+      <xs:extension base='xs:anyURI' >\r
+        <xs:anyAttribute namespace='##other' processContents='lax' />\r
+      </xs:extension>\r
+    </xs:simpleContent>\r
+  </xs:complexType>\r
+  \r
+  <!-- Section 8.2 -->\r
+  <xs:element name='FederationID' type='tns:AttributeExtensibleURI' />\r
+\r
+  <!-- Section 8.3 -->\r
+  <xs:element name='RequestProofToken' type='tns:RequestProofTokenType' />\r
+  <xs:complexType name='RequestProofTokenType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 8.4 -->\r
+  <xs:element name='ClientPseudonym' type='tns:ClientPseudonymType' />\r
+  <xs:complexType name='ClientPseudonymType' >\r
+       <xs:sequence>\r
+         <xs:element name='PPID' type='tns:AttributeExtensibleString' minOccurs='0' />\r
+         <xs:element name='DisplayName' type='tns:AttributeExtensibleString' minOccurs='0' />\r
+         <xs:element name='EMail' type='tns:AttributeExtensibleString' minOccurs='0' />\r
+         <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />                \r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />   \r
+  </xs:complexType>\r
+\r
+  <xs:complexType name='AttributeExtensibleString' >\r
+       <xs:simpleContent>\r
+         <xs:extension base='xs:string' >\r
+               <xs:anyAttribute namespace='##other' processContents='lax' />\r
+         </xs:extension>\r
+       </xs:simpleContent>\r
+  </xs:complexType>\r
+\r
+  <!-- Section 8.5 -->\r
+  <xs:element name='Freshness' type='tns:Freshness' />\r
+  <xs:complexType name='Freshness'>\r
+       <xs:simpleContent>\r
+         <xs:extension base='xs:unsignedInt' >\r
+               <xs:attribute name='AllowCache' type='xs:boolean' use='optional' />\r
+               <xs:anyAttribute namespace='##other' processContents='lax' />           \r
+         </xs:extension>\r
+       </xs:simpleContent>\r
+  </xs:complexType>\r
+\r
+  <!-- Section 14.1 -->\r
+  <xs:element name='RequireReferenceToken' type='sp:TokenAssertionType' />\r
+  <xs:element name='ReferenceToken11' type='tns:AssertionType' />\r
+\r
+  <xs:complexType name='AssertionType' >\r
+       <xs:sequence>\r
+         <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />\r
+       </xs:sequence>\r
+       <xs:anyAttribute namespace='##other' processContents='lax' />\r
+  </xs:complexType>\r
+\r
+  <!-- Section 14.2 -->\r
+  <xs:element name='WebBinding' type='sp:NestedPolicyType' />\r
+  <xs:element name='AuthenticationToken' type='sp:NestedPolicyType' />\r
+  <!-- ReferenceToken defined above -->\r
+  <xs:element name='RequireSignedTokens' type='tns:AssertionType' />\r
+  <xs:element name='RequireBearerTokens' type='tns:AssertionType' />\r
+  <xs:element name='RequireSharedCookies' type='tns:AssertionType' />\r
+  \r
+\r
+  <!-- Section 14.3 -->\r
+  <xs:element name='RequiresGenericClaimDialect' type='tns:AssertionType' />\r
+  <xs:element name='IssuesSpecificPolicyFault' type='tns:AssertionType' />\r
+  <xs:element name='AdditionalContextProcessed' type='tns:AssertionType' />\r
+\r
+\r
+</xs:schema>\r
+\r
diff --git a/schema/ws-securitypolicy-1.2.xsd b/schema/ws-securitypolicy-1.2.xsd
new file mode 100644 (file)
index 0000000..fd170c2
--- /dev/null
@@ -0,0 +1,1204 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<!-- \r
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the \r
+implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; \r
+neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS \r
+specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made \r
+available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users \r
+of this specification, can be obtained from the OASIS Executive Director.\r
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may \r
+cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.\r
+Copyright © OASIS Open 2002-2007. All Rights Reserved.\r
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist \r
+in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the \r
+above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified \r
+in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, \r
+in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate \r
+it into languages other than English.\r
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.\r
+This document and the information contained herein is provided on an AS IS basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, \r
+INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF \r
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\r
+-->\r
+<xs:schema\r
+       targetNamespace='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'\r
+  xmlns:tns='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'\r
+       xmlns:wsa="http://www.w3.org/2005/08/addressing"\r
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"\r
+       elementFormDefault="qualified"\r
+       blockDefault="#all" >\r
+\r
+  <xs:import namespace="http://www.w3.org/2005/08/addressing" schemaLocation="ws-addr.xsd" />\r
+\r
+  <!--\r
+       4. Protection Assertions\r
+       -->\r
+  <xs:element name="SignedParts" type="tns:SePartsType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        4.1.1 SignedParts Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="EncryptedParts" type="tns:SePartsType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        4.2.1 EncryptedParts Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="SePartsType">\r
+    <xs:sequence>\r
+      <xs:element name="Body" type="tns:EmptyType" minOccurs="0" />\r
+      <xs:element name="Header" type="tns:HeaderType" minOccurs="0" maxOccurs="unbounded" />\r
+      <xs:element name="Attachments" type="tns:EmptyType" minOccurs="0" />\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>\r
+    </xs:sequence>\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+  <xs:complexType name="EmptyType" />\r
+  <xs:complexType name="HeaderType" >\r
+    <xs:attribute name="Name" type="xs:QName" use="optional" />\r
+    <xs:attribute name="Namespace" type="xs:anyURI" use="required" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+\r
+  <xs:element name="SignedElements" type="tns:SerElementsType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en" >\r
+        4.1.2 SignedElements Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="EncryptedElements" type="tns:SerElementsType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        4.2.2 EncryptedElements Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequiredElements" type="tns:SerElementsType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en" >\r
+        4.3.1 RequiredElements Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="SerElementsType">\r
+    <xs:sequence>\r
+      <xs:element name="XPath" type="xs:string" minOccurs="1" maxOccurs="unbounded" />\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>\r
+    </xs:sequence>\r
+    <xs:attribute name="XPathVersion" type="xs:anyURI" use="optional" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+\r
+  <!--\r
+       5. Token Assertions\r
+       -->\r
+  <xs:attribute name="IncludeToken" type="tns:IncludeTokenOpenType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.1 Token Inclusion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:attribute>\r
+  <xs:simpleType name="IncludeTokenOpenType">\r
+    <xs:union memberTypes="tns:IncludeTokenType xs:anyURI" />\r
+  </xs:simpleType>\r
+  <xs:simpleType name="IncludeTokenType">\r
+    <xs:restriction base="xs:anyURI" >\r
+      <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/Never" />\r
+      <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/Once" />\r
+      <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/AlwaysToRecipient" />\r
+      <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/AlwaysToInitiator" />\r
+      <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/Always" />\r
+    </xs:restriction>\r
+  </xs:simpleType>\r
+\r
+  <xs:element name="UsernameToken" type="tns:TokenAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en" >\r
+        5.4.1 UsernameToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="TokenAssertionType">\r
+    <xs:sequence>\r
+      <xs:choice minOccurs="0">\r
+        <xs:element name="Issuer" type="wsa:EndpointReferenceType" />\r
+        <xs:element name="IssuerName" type="xs:anyURI" />\r
+      </xs:choice>\r
+      <!--\r
+                       Actual content model is non-deterministic, hence wildcard. The following shows intended content model:\r
+                       <xs:element ref="wsp:Policy" minOccurs="0" />\r
+                       -->\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>\r
+    </xs:sequence>\r
+    <xs:attribute ref="tns:IncludeToken" use="optional" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+\r
+  <xs:element name="NoPassword" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.1 UsernameToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="HashPassword" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.1 UsernameToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssUsernameToken10" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.1 UsernameToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssUsernameToken11" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.1 UsernameToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- RequireDerivedKeys defined below. -->\r
+  <!-- RequireImpliedDerivedKeys defined below. -->\r
+  <!-- RequireExplicitDerivedKeys defined below. -->\r
+\r
+  <xs:complexType name="QNameAssertionType">\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+\r
+  <xs:element name="IssuedToken" type="tns:IssuedTokenType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.2 IssuedToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="IssuedTokenType">\r
+    <xs:sequence>\r
+      <xs:choice minOccurs="0">\r
+        <xs:element name="Issuer" type="wsa:EndpointReferenceType" />\r
+        <xs:element name="IssuerName" type="xs:anyURI" />\r
+      </xs:choice>\r
+      <xs:element name="RequestSecurityTokenTemplate" type="tns:RequestSecurityTokenTemplateType" />\r
+      <!--\r
+                       Actual content model is non-deterministic, hence wildcard. The following shows intended content model:\r
+                       <xs:element ref="wsp:Policy" minOccurs="0" />\r
+                       -->\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />\r
+    </xs:sequence>\r
+    <xs:attribute ref="tns:IncludeToken" use="optional" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+  <xs:complexType name="RequestSecurityTokenTemplateType">\r
+    <xs:sequence>\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />\r
+    </xs:sequence>\r
+    <xs:attribute name="TrustVersion" type="xs:anyURI" use="optional" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+\r
+  <xs:element name="RequireDerivedKeys" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.2 IssuedToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireImpliedDerivedKeys" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.2 IssuedToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireExplicitDerivedKeys" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.2 IssuedToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireExternalReference" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.2 IssuedToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireInternalReference" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.2 IssuedToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="X509Token" type="tns:TokenAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- RequireDerivedKeys defined above. -->\r
+  <!-- RequireImpliedDerivedKeys defined above. -->\r
+  <!-- RequireExplicitDerivedKeys defined above. -->\r
+  \r
+  <xs:element name="RequireKeyIdentifierReference" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireIssuerSerialReference" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireEmbeddedTokenReference" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireThumbprintReference" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssX509V3Token10" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssX509Pkcs7Token10" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssX509PkiPathV1Token10" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssX509V1Token11" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssX509V3Token11" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssX509Pkcs7Token11" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssX509PkiPathV1Token11" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.3 X509Token Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="KerberosToken" type="tns:TokenAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.4 KerberosToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- RequireDerivedKeys defined above. -->\r
+  <!-- RequireImpliedDerivedKeys defined above. -->\r
+  <!-- RequireExplicitDerivedKeys defined above. -->\r
+  <!-- RequireKeyIdentifierReference defined above. -->\r
+\r
+  <xs:element name="WssKerberosV5ApReqToken11" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.4 KerberosToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssGssKerberosV5ApReqToken11" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.4 KerberosToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="SpnegoContextToken" type="tns:SpnegoContextTokenType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en" >\r
+        5.4.5 SpnegoContextToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="SpnegoContextTokenType">\r
+    <xs:sequence>\r
+      <xs:choice minOccurs="0">\r
+        <xs:element name="Issuer" type="wsa:EndpointReferenceType" />\r
+        <xs:element name="IssuerName" type="xs:anyURI" />\r
+      </xs:choice>\r
+      <!--\r
+                       Actual content model is non-deterministic, hence wildcard. The following shows intended content model:\r
+                       <xs:element ref="wsp:Policy" minOccurs="0" />\r
+                       -->\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />\r
+    </xs:sequence>\r
+    <xs:attribute ref="tns:IncludeToken" use="optional" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+  <!-- RequireDerivedKeys defined above. -->\r
+  <!-- RequireImpliedDerivedKeys defined above. -->\r
+  <!-- RequireExplicitDerivedKeys defined above. -->\r
+  <xs:element name="MustNotSendCancel" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.5 SpnegoContextToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustNotSendAmend" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.5 SpnegoContextToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustNotSendRenew" type="tns:QNameAssertionType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.5 SpnegoContextToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="SecurityContextToken" type="tns:TokenAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.6 SecurityContextToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- RequireDerivedKeys defined above. -->\r
+  <!-- RequireImpliedDerivedKeys defined above. -->\r
+  <!-- RequireExplicitDerivedKeys defined above. -->\r
+\r
+  <xs:element name="RequireExternalUriReference" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.6 SecurityContextToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="SC13SecurityContextToken" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.6 SecurityContextToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="SecureConversationToken" type="tns:SecureConversationTokenType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.7 SecureConversationToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="SecureConversationTokenType">\r
+    <xs:sequence>\r
+      <xs:choice minOccurs="0">\r
+        <xs:element name="Issuer" type="wsa:EndpointReferenceType" />\r
+        <xs:element name="IssuerName" type="xs:anyURI" />\r
+      </xs:choice>\r
+      <!--\r
+                       Actual content model is non-deterministic, hence wildcard. The following shows intended content model:\r
+                       <xs:element ref="wsp:Policy" minOccurs="0" />\r
+                       -->\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />\r
+    </xs:sequence>\r
+    <xs:attribute ref="tns:IncludeToken" use="optional" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+  <!-- RequireDerivedKeys defined above. -->\r
+  <!-- RequireImpliedDerivedKeys defined above. -->\r
+  <!-- RequireExplicitDerivedKeys defined above. -->\r
+  <!-- RequireExternalUriReference defined above. -->\r
+  <!-- SC13SecurityContextToken defined above. -->\r
+  <!-- MustNotSendCancel defined above. -->\r
+  <!-- MustNotSendAmend defined above. -->\r
+  <!-- MustNotSendRenew defined above. -->\r
+\r
+  <xs:element name="BootstrapPolicy" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.7 SecureConversationToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="SamlToken" type="tns:TokenAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en" >\r
+        5.4.8 SamlToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- RequireDerivedKeys defined above. -->\r
+  <!-- RequireImpliedDerivedKeys defined above. -->\r
+  <!-- RequireExplicitDerivedKeys defined above. -->\r
+  <!-- RequireKeyIdentifierReference defined above. -->\r
+\r
+  <xs:element name="WssSamlV11Token10" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.8 SamlToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssSamlV11Token11" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.8 SamlToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssSamlV20Token11" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.8 SamlToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="RelToken" type="tns:TokenAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.9 RelToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- RequireDerivedKeys defined above. -->\r
+  <!-- RequireImpliedDerivedKeys defined above. -->\r
+  <!-- RequireExplicitDerivedKeys defined above. -->\r
+  <!-- RequireKeyIdentifierReference defined above. -->\r
+\r
+  <xs:element name="WssRelV10Token10" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.9 RelToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssRelV20Token10" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.9 RelToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssRelV10Token11" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.9 RelToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="WssRelV20Token11" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.9 RelToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="HttpsToken" type="tns:TokenAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.10 HttpsToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="HttpBasicAuthentication" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.10 HttpsToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="HttpDigestAuthentication" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.10 HttpsToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireClientCertificate" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.10 HttpsToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  \r
+  <xs:element name="KeyValueToken" type="tns:KeyValueTokenType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.11 KeyValueToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="KeyValueTokenType">\r
+    <xs:sequence>\r
+      <!--\r
+                       Actual content model is non-deterministic, hence wildcard. The following shows intended content model:\r
+                       <xs:element ref="wsp:Policy" minOccurs="0" />\r
+                       -->\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />\r
+    </xs:sequence>\r
+    <xs:attribute ref="tns:IncludeToken" use="optional" />\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+  <xs:element name="RsaKeyValue" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        5.4.11 KeyValueToken Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  \r
+  <!--\r
+       7. Security Binding Assertions\r
+       -->\r
+  <xs:element name="AlgorithmSuite" type="tns:NestedPolicyType" >\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:complexType name="NestedPolicyType">\r
+    <xs:sequence>\r
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>\r
+    </xs:sequence>\r
+    <xs:anyAttribute namespace="##any" processContents="lax" />\r
+  </xs:complexType>\r
+\r
+  <xs:element name="Basic256" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic192" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic128" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="TripleDes" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic256Rsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic192Rsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic128Rsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="TripleDesRsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic256Sha256" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic192Sha256" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic128Sha256" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="TripleDesSha256" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic256Sha256Rsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic192Sha256Rsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Basic128Sha256Rsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="TripleDesSha256Rsa15" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="InclusiveC14N" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="SOAPNormalization10" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="STRTransform10" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="XPath10" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="XPathFilter20" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="AbsXPath" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.1 AlgorithmSuite Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="Layout" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.2 Layout Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="Strict" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.2 Layout Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="Lax" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.2 Layout Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="LaxTsFirst" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.2 Layout Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="LaxTsLast" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.2 Layout Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="TransportBinding" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.3 TransportBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="TransportToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.3 TransportBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- Layout defined above. -->\r
+\r
+  <xs:element name="IncludeTimestamp" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.3 TransportBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="SymmetricBinding" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="EncryptionToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="SignatureToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8=7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="ProtectionToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- Layout defined above. -->\r
+  <!-- IncludeTimestamp defined above. -->\r
+\r
+  <xs:element name="EncryptBeforeSigning" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="EncryptSignature" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="ProtectTokens" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="OnlySignEntireHeadersAndBody" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.4 SymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="AsymmetricBinding" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.5 AsymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="InitiatorToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.5 AsymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="InitiatorSignatureToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.5 AsymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="InitiatorEncryptionToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.5 AsymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="RecipientToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.5 AsymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="RecipientSignatureToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.5 AsymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="RecipientEncryptionToken" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        7.5 AsymmetricBinding Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- Layout defined above. -->\r
+  <!-- IncludeTimestamp defined above. -->\r
+  <!-- EncryptBeforeSigning defined above. -->\r
+  <!-- EncryptSignature defined above. -->\r
+  <!-- ProtectTokens defined above. -->\r
+  <!-- OnlySignEntireHeadersAndBody defined above. -->\r
+\r
+  <!--\r
+       8. Supporting Tokens\r
+       -->\r
+  <xs:element name="SupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.1 SupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+\r
+  <xs:element name="SignedSupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.2 SignedSupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+\r
+  <xs:element name="EndorsingSupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.3 EndorsingSupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+\r
+  <xs:element name="SignedEndorsingSupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.4 SignedEndorsingSupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+\r
+  <xs:element name="SignedEncryptedSupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.5 SignedEncryptedSupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+\r
+  <xs:element name="EncryptedSupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.6 EncryptedSupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+  \r
+  <xs:element name="EndorsingEncryptedSupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.7 EndorsingEncryptedSupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+\r
+  <xs:element name="SignedEndorsingEncryptedSupportingTokens" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        8.8 SignedEndorsingEncryptedSupportingTokens Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- AlgorithmSuite defined above. -->\r
+  <!-- SignedParts defined above. -->\r
+  <!-- SignedElements defined above. -->\r
+  <!-- EncryptedParts defined above. -->\r
+  <!-- EncryptedElements defined above. -->\r
+  \r
+  <!--\r
+       9. WSS: SOAP Message Security Options\r
+       -->\r
+  <xs:element name="Wss10" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.1 Wss10 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="MustSupportRefKeyIdentifier" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.1 Wss10 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustSupportRefIssuerSerial" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.1 Wss10 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustSupportRefExternalURI" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.1 Wss10 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustSupportRefEmbeddedToken" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.1 Wss10 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="Wss11" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.2 Wss11 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <!-- MustSupportRefKeyIdentifier defined above. -->\r
+  <!-- MustSupportRefIssuerSerial defined above. -->\r
+  <!-- MustSupportRefExternalURI defined above. -->\r
+  <!-- MustSupportRefEmbeddedToken defined above. -->\r
+\r
+  <xs:element name="MustSupportRefThumbprint" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.2 Wss11 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustSupportRefEncryptedKey" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.2 Wss11 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireSignatureConfirmation" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        9.2 Wss11 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <!--\r
+       10. WS-Trust Options\r
+       -->\r
+  <xs:element name="Trust13" type="tns:NestedPolicyType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+\r
+  <xs:element name="MustSupportClientChallenge" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustSupportServerChallenge" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireClientEntropy" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireServerEntropy" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="MustSupportIssuedTokens" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireRequestSecurityTokenCollection" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  <xs:element name="RequireAppiesTo" type="tns:QNameAssertionType">\r
+    <xs:annotation>\r
+      <xs:documentation xml:lang="en">\r
+        10.1 Trust13 Assertion\r
+      </xs:documentation>\r
+    </xs:annotation>\r
+  </xs:element>\r
+  \r
+</xs:schema>\r