diff options
author | Leif Johansson <leifj@sunet.se> | 2019-01-14 10:34:54 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2019-01-14 10:34:54 +0100 |
commit | 457533034d1e0070323f9ca49a4bf8ddde5f882e (patch) | |
tree | 695d2878f76faffc5715e1ea2bb855c77936d9f9 |
initial import
58 files changed, 6921 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e3fc138 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.key +*.sqlite diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8fe3877 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +test: natmdtest eidastest idptest + +tag: test + ./scripts/bump-tag + +boostrap-trust: + ./scripts/update-trust + +mdtest: + @for dir in test-sp test-idp production-sp production-idp; do find metadata/$$dir -name \*.xml -exec xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd \{\} \; ; done + +idptest: + @if (rgrep -q IDPSSODescriptor metadata/*-sp); then echo "Hittade en IDP band SP:na !!!"; exit 1; fi + + +update: update-git + ./scripts/verify-tag && ./scripts/update-trust && rsync -avz --delete metadata/ /opt/metadata/ + +update-git: + git checkout master && git reset --hard && git pull + diff --git a/keys/bm-CBEA0DB5.pub b/keys/bm-CBEA0DB5.pub new file mode 100644 index 0000000..a69d5c4 --- /dev/null +++ b/keys/bm-CBEA0DB5.pub @@ -0,0 +1,74 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +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 +pLMF93vT5EAr9g== +=CU9+ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/keys/leifj-0AD478D6.pub b/keys/leifj-0AD478D6.pub new file mode 100644 index 0000000..a851b09 --- /dev/null +++ b/keys/leifj-0AD478D6.pub @@ -0,0 +1,96 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 +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 +fxEO4iUqX0nE1egTPtufMtxXTAi0Kh2ukHI= +=qdJp +-----END PGP PUBLIC KEY BLOCK----- diff --git a/keys/ps-7D8D73B5.pub b/keys/ps-7D8D73B5.pub new file mode 100644 index 0000000..4cd4e15 --- /dev/null +++ b/keys/ps-7D8D73B5.pub @@ -0,0 +1,74 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +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 +CpfCesknuQ== +=RFc+ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/metadata/.placeholder b/metadata/.placeholder new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/metadata/.placeholder diff --git a/schema.xsd b/schema.xsd new file mode 100644 index 0000000..abb2928 --- /dev/null +++ b/schema.xsd @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="US-ASCII"?> +<schema targetNamespace="aggregate" xmlns="http://www.w3.org/2001/XMLSchema" version="1.2"> +<import namespace="http://docs.oasis-open.org/wsfed/federation/200706" schemaLocation="ws-federation.xsd"/> +<import namespace="http://docs.oasis-open.org/wsfed/authorization/200706" schemaLocation="ws-authorization.xsd"/> +<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="urn:oasis:names:tc:SAML:1.0:assertion" schemaLocation="cs-sstc-schema-assertion-1.1.xsd"/> +<import namespace="urn:oasis:names:tc:SAML:2.0:metadata:ui" schemaLocation="sstc-saml-metadata-ui-v1.0.xsd"/> +<import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex" schemaLocation="MetadataExchange.xsd"/> +<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"/> +<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"/> +<import namespace="http://docs.oasis-open.org/wsfed/privacy/200706" schemaLocation="privacy.xsd"/> +<import namespace="urn:mace:shibboleth:metadata:1.0" schemaLocation="shibboleth-metadata-1.0.xsd"/> +<import namespace="urn:mace:shibboleth:trust:1.0" schemaLocation="shibboleth-trust-1.0.xsd"/> +<import namespace="urn:mace:shibboleth:1.0" schemaLocation="shibboleth.xsd"/> +<import namespace="urn:oasis:names:tc:SAML:metadata:attribute" schemaLocation="sstc-metadata-attr.xsd"/> +<import namespace="urn:oasis:names:tc:SAML:metadata:algsupport" schemaLocation="sstc-saml-metadata-algsupport.xsd"/> +<import namespace="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol" schemaLocation="sstc-saml-idp-discovery.xsd"/> +<import namespace="http://eidas.europa.eu/metadata/servicelist" schemaLocation="eidas-metadata-servicelist-1.0.xsd"/> +</schema> diff --git a/schema/MetadataExchange.xsd b/schema/MetadataExchange.xsd new file mode 100644 index 0000000..8a54b85 --- /dev/null +++ b/schema/MetadataExchange.xsd @@ -0,0 +1,112 @@ +<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+(c) 2004-2006 BEA Systems Inc., Computer Associates International, Inc.,
+International Business Machines Corporation, Microsoft Corporation,
+Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved.
+
+Permission to copy and display the WS-MetadataExchange Specification
+(the "Specification"), in any medium without fee or royalty is hereby
+granted, provided that you include the following on ALL copies of the
+Specification that you make:
+
+1. A link or URL to the Specification at this location.
+2. The copyright notice as shown in the Specification.
+
+BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and
+webMethods (collectively, the "Authors") each agree to grant you a
+license, under royalty-free and otherwise reasonable,
+non-discriminatory terms and conditions, to their respective essential
+patent claims that they deem necessary to implement the
+WS-MetadataExchange Specification.
+
+THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO
+REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
+LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE
+SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
+IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
+PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
+USE OR DISTRIBUTION OF THE SPECIFICATIONS.
+
+The name and trademarks of the Authors may NOT be used in any manner,
+including advertising or publicity pertaining to the Specifications or
+their contents without specific, written prior permission. Title to
+copyright in the Specifications will at all times remain with the
+Authors.
+
+No other rights are granted by implication, estoppel or otherwise.
+-->
+
+<xs:schema
+ targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex'
+ xmlns:tns='http://schemas.xmlsoap.org/ws/2004/09/mex'
+ xmlns:wsa10='http://www.w3.org/2005/08/addressing'
+ xmlns:wsa04='http://schemas.xmlsoap.org/ws/2004/08/addressing'
+ xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ elementFormDefault='qualified'
+ blockDefault='#all' >
+
+ <!-- Get Metadata request -->
+ <xs:element name='GetMetadata' >
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref='tns:Dialect' minOccurs='0' />
+ <xs:element ref='tns:Identifier' minOccurs='0' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name='Dialect' type='xs:anyURI' />
+ <xs:element name='Identifier' type='xs:anyURI' />
+
+ <!-- Get Metadata response -->
+ <xs:element name='Metadata' >
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref='tns:MetadataSection'
+ minOccurs='0'
+ maxOccurs='unbounded' />
+ <xs:any namespace='##other' processContents='lax'
+ minOccurs='0'
+ maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name='MetadataSection' >
+ <xs:complexType>
+ <xs:choice>
+ <xs:any namespace='##other' processContents='lax' />
+ <xs:element ref='tns:MetadataReference' />
+ <xs:element ref='tns:Location' />
+ </xs:choice>
+ <xs:attribute name='Dialect' type='xs:anyURI' use='required' />
+ <xs:attribute name='Identifier' type='xs:anyURI' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+ </xs:element>
+
+ <!--
+ Ideally, the type of the MetadataReference would have been
+ the union of wsa04:EndpointReferenceType and
+ wsa10:EndpointReferenceType but unfortunately xs:union only
+ works for simple types. As a result, we have to define
+ the mex:MetadataReference using xs:any.
+ -->
+
+ <xs:element name='MetadataReference'>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any minOccurs='1' maxOccurs='unbounded'
+ processContents='lax' namespace='##other' />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name='Location'
+ type='xs:anyURI' />
+</xs:schema>
diff --git a/schema/cs-sstc-schema-assertion-1.1.xsd b/schema/cs-sstc-schema-assertion-1.1.xsd new file mode 100644 index 0000000..26f9458 --- /dev/null +++ b/schema/cs-sstc-schema-assertion-1.1.xsd @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<schema targetNamespace="urn:oasis:names:tc:SAML:1.0:assertion" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.1"> + <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/> + <annotation> + <documentation> + Document identifier: sstc-saml-schema-assertion-1.1-draft-02 + Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=security + Revision history: + draft-01 (Eve Maler): + Note that V1.1 of this schema has the same namespace as V1.0. + Minor cosmetic updates. + Changed IDType to restrict from xsd:ID. + Changed IDReferenceType to restrict from xsd:IDREF. + Set version attribute on schema element to 1.1. + draft-02 (Prateek Mishra, Rob Philpott): + Added DoNotCacheCondition element and DoNotCacheConditionType + draft-03 (Scott Cantor) + Rebased ID content directly on XML Schema types + </documentation> + </annotation> + <simpleType name="DecisionType"> + <restriction base="string"> + <enumeration value="Permit"/> + <enumeration value="Deny"/> + <enumeration value="Indeterminate"/> + </restriction> + </simpleType> + <element name="AssertionIDReference" type="NCName"/> + <element name="Assertion" type="saml:AssertionType"/> + <complexType name="AssertionType"> + <sequence> + <element ref="saml:Conditions" minOccurs="0"/> + <element ref="saml:Advice" minOccurs="0"/> + <choice maxOccurs="unbounded"> + <element ref="saml:Statement"/> + <element ref="saml:SubjectStatement"/> + <element ref="saml:AuthenticationStatement"/> + <element ref="saml:AuthorizationDecisionStatement"/> + <element ref="saml:AttributeStatement"/> + </choice> + <element ref="ds:Signature" minOccurs="0"/> + </sequence> + <attribute name="MajorVersion" type="integer" use="required"/> + <attribute name="MinorVersion" type="integer" use="required"/> + <attribute name="AssertionID" type="ID" use="required"/> + <attribute name="Issuer" type="string" use="required"/> + <attribute name="IssueInstant" type="dateTime" use="required"/> + </complexType> + <element name="Conditions" type="saml:ConditionsType"/> + <complexType name="ConditionsType"> + <choice minOccurs="0" maxOccurs="unbounded"> + <element ref="saml:AudienceRestrictionCondition"/> + <element ref="saml:DoNotCacheCondition"/> + <element ref="saml:Condition"/> + </choice> + <attribute name="NotBefore" type="dateTime" use="optional"/> + <attribute name="NotOnOrAfter" type="dateTime" use="optional"/> + </complexType> + <element name="Condition" type="saml:ConditionAbstractType"/> + <complexType name="ConditionAbstractType" abstract="true"/> + <element name="AudienceRestrictionCondition" type="saml:AudienceRestrictionConditionType"/> + <complexType name="AudienceRestrictionConditionType"> + <complexContent> + <extension base="saml:ConditionAbstractType"> + <sequence> + <element ref="saml:Audience" maxOccurs="unbounded"/> + </sequence> + </extension> + </complexContent> + </complexType> + <element name="Audience" type="anyURI"/> + <element name="DoNotCacheCondition" type="saml:DoNotCacheConditionType" /> + <complexType name="DoNotCacheConditionType"> + <complexContent> + <extension base="saml:ConditionAbstractType"/> + </complexContent> + </complexType> + <element name="Advice" type="saml:AdviceType"/> + <complexType name="AdviceType"> + <choice minOccurs="0" maxOccurs="unbounded"> + <element ref="saml:AssertionIDReference"/> + <element ref="saml:Assertion"/> + <any namespace="##other" processContents="lax"/> + </choice> + </complexType> + <element name="Statement" type="saml:StatementAbstractType"/> + <complexType name="StatementAbstractType" abstract="true"/> + <element name="SubjectStatement" type="saml:SubjectStatementAbstractType"/> + <complexType name="SubjectStatementAbstractType" abstract="true"> + <complexContent> + <extension base="saml:StatementAbstractType"> + <sequence> + <element ref="saml:Subject"/> + </sequence> + </extension> + </complexContent> + </complexType> + <element name="Subject" type="saml:SubjectType"/> + <complexType name="SubjectType"> + <choice> + <sequence> + <element ref="saml:NameIdentifier"/> + <element ref="saml:SubjectConfirmation" minOccurs="0"/> + </sequence> + <element ref="saml:SubjectConfirmation"/> + </choice> + </complexType> + <element name="NameIdentifier" type="saml:NameIdentifierType"/> + <complexType name="NameIdentifierType"> + <simpleContent> + <extension base="string"> + <attribute name="NameQualifier" type="string" use="optional"/> + <attribute name="Format" type="anyURI" use="optional"/> + </extension> + </simpleContent> + </complexType> + <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/> + <complexType name="SubjectConfirmationType"> + <sequence> + <element ref="saml:ConfirmationMethod" maxOccurs="unbounded"/> + <element ref="saml:SubjectConfirmationData" minOccurs="0"/> + <element ref="ds:KeyInfo" minOccurs="0"/> + </sequence> + </complexType> + <element name="SubjectConfirmationData" type="anyType"/> + <element name="ConfirmationMethod" type="anyURI"/> + <element name="AuthenticationStatement" type="saml:AuthenticationStatementType"/> + <complexType name="AuthenticationStatementType"> + <complexContent> + <extension base="saml:SubjectStatementAbstractType"> + <sequence> + <element ref="saml:SubjectLocality" minOccurs="0"/> + <element ref="saml:AuthorityBinding" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <attribute name="AuthenticationMethod" type="anyURI" use="required"/> + <attribute name="AuthenticationInstant" type="dateTime" use="required"/> + </extension> + </complexContent> + </complexType> + <element name="SubjectLocality" type="saml:SubjectLocalityType"/> + <complexType name="SubjectLocalityType"> + <attribute name="IPAddress" type="string" use="optional"/> + <attribute name="DNSAddress" type="string" use="optional"/> + </complexType> + <element name="AuthorityBinding" type="saml:AuthorityBindingType"/> + <complexType name="AuthorityBindingType"> + <attribute name="AuthorityKind" type="QName" use="required"/> + <attribute name="Location" type="anyURI" use="required"/> + <attribute name="Binding" type="anyURI" use="required"/> + </complexType> + <element name="AuthorizationDecisionStatement" type="saml:AuthorizationDecisionStatementType"/> + <complexType name="AuthorizationDecisionStatementType"> + <complexContent> + <extension base="saml:SubjectStatementAbstractType"> + <sequence> + <element ref="saml:Action" maxOccurs="unbounded"/> + <element ref="saml:Evidence" minOccurs="0"/> + </sequence> + <attribute name="Resource" type="anyURI" use="required"/> + <attribute name="Decision" type="saml:DecisionType" use="required"/> + </extension> + </complexContent> + </complexType> + <element name="Action" type="saml:ActionType"/> + <complexType name="ActionType"> + <simpleContent> + <extension base="string"> + <attribute name="Namespace" type="anyURI"/> + </extension> + </simpleContent> + </complexType> + <element name="Evidence" type="saml:EvidenceType"/> + <complexType name="EvidenceType"> + <choice maxOccurs="unbounded"> + <element ref="saml:AssertionIDReference"/> + <element ref="saml:Assertion"/> + </choice> + </complexType> + <element name="AttributeStatement" type="saml:AttributeStatementType"/> + <complexType name="AttributeStatementType"> + <complexContent> + <extension base="saml:SubjectStatementAbstractType"> + <sequence> + <element ref="saml:Attribute" maxOccurs="unbounded"/> + </sequence> + </extension> + </complexContent> + </complexType> + <element name="AttributeDesignator" type="saml:AttributeDesignatorType"/> + <complexType name="AttributeDesignatorType"> + <attribute name="AttributeName" type="string" use="required"/> + <attribute name="AttributeNamespace" type="anyURI" use="required"/> + </complexType> + <element name="Attribute" type="saml:AttributeType"/> + <complexType name="AttributeType"> + <complexContent> + <extension base="saml:AttributeDesignatorType"> + <sequence> + <element ref="saml:AttributeValue" maxOccurs="unbounded"/> + </sequence> + </extension> + </complexContent> + </complexType> + <element name="AttributeValue" type="anyType"/> +</schema> diff --git a/schema/eidas-metadata-servicelist-1.0.xsd b/schema/eidas-metadata-servicelist-1.0.xsd new file mode 100644 index 0000000..dec7114 --- /dev/null +++ b/schema/eidas-metadata-servicelist-1.0.xsd @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xs:schema version="1.0" attributeFormDefault="unqualified" elementFormDefault="qualified" + targetNamespace="http://eidas.europa.eu/metadata/servicelist" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:ser="http://eidas.europa.eu/metadata/servicelist" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> + + <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" + schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/> + + <xs:annotation> + <xs:documentation> + Document identifier: eidas-metadata-servicelist-1.0 + </xs:documentation> + </xs:annotation> + + <xs:element name="MetadataServiceList" type="ser:MetadataServiceListType"/> + + <xs:complexType name="MetadataServiceListType"> + <xs:annotation> + <xs:documentation> + The MetadataServiceListType is the root type for representing a metadata service list. It holds + scheme information, metadata locations for each member state and optionally distribution point(s). + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="SchemeInformation" type="ser:SchemeInformationType"/> + <xs:element name="MetadataList" type="ser:MetadataSchemeEndpointListType" minOccurs="0" + maxOccurs="unbounded"/> + <xs:element name="DistributionPoints" type="ser:DistributionPointsType"/> + <xs:element ref="ds:Signature" minOccurs="0"/> + </xs:sequence> + <xs:attribute name="Version" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation> + The version of a metadata service list. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="IssueDate" type="xs:dateTime" use="required"> + <xs:annotation> + <xs:documentation> + Issuance time for a metadata service list. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="NextUpdate" type="xs:dateTime"> + <xs:annotation> + <xs:documentation> + Time when the next metadata service list will be published. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="ID" type="xs:ID"> + <xs:annotation> + <xs:documentation> + The unique ID for a metadata service list. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + + <xs:complexType name="SchemeInformationType"> + <xs:annotation> + <xs:documentation> + Scheme information about a published metadata service list, where the publisher + and territory are included. + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="IssuerName" type="xs:string"/> + <xs:element name="SchemeIdentifier" type="xs:anyURI"/> + <xs:element name="SchemeTerritory" type="xs:string"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="MetadataSchemeEndpointListType"> + <xs:annotation> + <xs:documentation> + Defines the metadata location(s) for a specific member state (territory). + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element type="ser:MetadataLocationType" name="MetadataLocation" minOccurs="0" + maxOccurs="unbounded"/> + </xs:sequence> + <xs:attribute name="Territory" type="xs:string" use="required"/> + <xs:anyAttribute namespace="##any" processContents="lax"/> + </xs:complexType> + + <xs:complexType name="DistributionPointsType"> + <xs:annotation> + <xs:documentation> + A list of distribution points. URLs from where the metadata service list can be downloaded. + </xs:documentation> + </xs:annotation> + <xs:sequence> + <xs:element name="DistributionPoint" type="xs:anyURI" minOccurs="1" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="MetadataLocationType"> + <xs:sequence> + <xs:element name="Endpoint" type="ser:MsEndpointType" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation> + A list of eIDAS endpoints (nodes) for the current location. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element ref="ds:KeyInfo" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Key material (usually a certificate) that should be used to verify the signature + of the downloaded metadata for this metadata location. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + <xs:attribute name="Location" type="xs:anyURI" use="required"> + <xs:annotation> + <xs:documentation> + The URL from where the metadata for the endpoint(s) can be obtained. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:anyAttribute namespace="##any" processContents="lax"/> + </xs:complexType> + + <xs:complexType name="MsEndpointType"> + <xs:annotation> + <xs:documentation> + Defines a member state "endpoint" (eIDAS node). + </xs:documentation> + </xs:annotation> + <xs:attribute name="EndpointType" type="xs:anyURI" use="required"> + <xs:annotation> + <xs:documentation> + The type of endpoint. Currently defined URI:s are: + http://eidas.europa.eu/metadata/ept/ProxyService for an eIDAS Proxy Service, and, + http://eidas.europa.eu/metadata/ept/Connector for an eIDAS Connector. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="EntityID" type="xs:anyURI" use="required"> + <xs:annotation> + <xs:documentation> + The SAML entityID of the endpoint. For an eIDAS connector this is the entityID for + the SP-part of the node, and for an eIDAS Proxy Service this is the entityID for the + IdP-part of the node. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:anyAttribute namespace="##any" processContents="lax"/> + </xs:complexType> + +</xs: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 index 0000000..0195d35 --- /dev/null +++ b/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd @@ -0,0 +1,195 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+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.
+Copyright © OASIS Open 2002-2004. All Rights Reserved.
+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.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+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.
+-->
+<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">
+ <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"/>
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+ <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
+ <xsd:complexType name="AttributedString">
+ <xsd:annotation>
+ <xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="PasswordString">
+ <xsd:annotation>
+ <xsd:documentation>This type is used for password elements per Section 4.1.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:AttributedString">
+ <xsd:attribute name="Type" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="EncodedString">
+ <xsd:annotation>
+ <xsd:documentation>This type is used for elements containing stringified binary data.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:AttributedString">
+ <xsd:attribute name="EncodingType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="UsernameTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a username token per Section 4.1</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="Username" type="wsse:AttributedString"/>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="BinarySecurityTokenType">
+ <xsd:annotation>
+ <xsd:documentation>A security token that is encoded in binary</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:EncodedString">
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="KeyIdentifierType">
+ <xsd:annotation>
+ <xsd:documentation>A security token key identifier</xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="wsse:EncodedString">
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:simpleType name="tUsage">
+ <xsd:annotation>
+ <xsd:documentation>Typedef to allow a list of usages (as URIs).</xsd:documentation>
+ </xsd:annotation>
+ <xsd:list itemType="xsd:anyURI"/>
+ </xsd:simpleType>
+ <xsd:attribute name="Usage" type="tUsage">
+ <xsd:annotation>
+ <xsd:documentation>This global attribute is used to indicate the usage of a referenced or indicated token within the containing context</xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:complexType name="ReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a reference to an external security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="URI" type="xsd:anyURI"/>
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="EmbeddedType">
+ <xsd:annotation>
+ <xsd:documentation>This type represents a reference to an embedded security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any processContents="lax"/>
+ </xsd:choice>
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="SecurityTokenReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This type is used reference a security token.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any processContents="lax"/>
+ </xsd:choice>
+ <xsd:attribute ref="wsu:Id"/>
+ <xsd:attribute ref="wsse:Usage"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="SecurityHeaderType">
+ <xsd:annotation>
+ <xsd:documentation>This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>The use of "any" is to allow extensibility and different forms of security data.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:any>
+ </xsd:sequence>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:complexType name="TransformationParametersType">
+ <xsd:annotation>
+ <xsd:documentation>This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>The use of "any" is to allow extensibility from any namespace.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:any>
+ </xsd:sequence>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+ <xsd:element name="UsernameToken" type="wsse:UsernameTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:UsernameToken element per Section 4.1.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:BinarySecurityToken element per Section 4.2.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Reference" type="wsse:ReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a security token reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Embedded" type="wsse:EmbeddedType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a security token embedded reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="KeyIdentifier" type="wsse:KeyIdentifierType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines a key identifier reference</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="SecurityTokenReference" type="wsse:SecurityTokenReferenceType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:SecurityTokenReference per Section 4.3.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Security" type="wsse:SecurityHeaderType">
+ <xsd:annotation>
+ <xsd:documentation>This element defines the wsse:Security SOAP header element per Section 4.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="TransformationParameters" type="wsse:TransformationParametersType">
+ <xsd:annotation>
+ <xsd:documentation>This element contains properties for transformations from any namespace, including DSIG.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Password" type="wsse:PasswordString"/>
+ <xsd:element name="Nonce" type="wsse:EncodedString"/>
+ <xsd:simpleType name="FaultcodeEnum">
+ <xsd:restriction base="xsd:QName">
+ <xsd:enumeration value="wsse:UnsupportedSecurityToken"/>
+ <xsd:enumeration value="wsse:UnsupportedAlgorithm"/>
+ <xsd:enumeration value="wsse:InvalidSecurity"/>
+ <xsd:enumeration value="wsse:InvalidSecurityToken"/>
+ <xsd:enumeration value="wsse:FailedAuthentication"/>
+ <xsd:enumeration value="wsse:FailedCheck"/>
+ <xsd:enumeration value="wsse:SecurityTokenUnavailable"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+</xsd:schema>
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 index 0000000..e088d13 --- /dev/null +++ b/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+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.
+Copyright © OASIS Open 2002-2004. All Rights Reserved.
+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.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+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.
+-->
+<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"
+
+
+
+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"
+elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
+ <!-- // Fault Codes /////////////////////////////////////////// -->
+ <xsd:simpleType name="tTimestampFault">
+ <xsd:annotation>
+ <xsd:documentation>
+This type defines the fault code value for Timestamp message expiration.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:QName">
+ <xsd:enumeration value="wsu:MessageExpired"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <!-- // Global attributes //////////////////////////////////// -->
+ <xsd:attribute name="Id" type="xsd:ID">
+ <xsd:annotation>
+ <xsd:documentation>
+This global attribute supports annotating arbitrary elements with an ID.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attributeGroup name="commonAtts">
+ <xsd:annotation>
+ <xsd:documentation>
+Convenience attribute group used to simplify this schema.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute ref="wsu:Id" use="optional"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:attributeGroup>
+ <!-- // Utility types //////////////////////////////////////// -->
+ <xsd:complexType name="AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <xsd:complexType name="AttributedURI">
+ <xsd:annotation>
+ <xsd:documentation>
+This type is for elements whose [children] is an anyURI and can have arbitrary attributes.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:anyURI">
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+ <!-- // Timestamp header components /////////////////////////// -->
+ <xsd:complexType name="TimestampType">
+ <xsd:annotation>
+ <xsd:documentation>
+This complex type ties together the timestamp related elements into a composite type.
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element ref="wsu:Created" minOccurs="0"/>
+ <xsd:element ref="wsu:Expires" minOccurs="0"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:any namespace="##other" processContents="lax"/>
+ </xsd:choice>
+ </xsd:sequence>
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
+ </xsd:complexType>
+ <xsd:element name="Timestamp" type="wsu:TimestampType">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows Timestamps to be applied anywhere element wildcards are present,
+including as a SOAP header.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <!-- global element decls to allow individual elements to appear anywhere -->
+ <xsd:element name="Expires" type="wsu:AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows an expiration time to be applied anywhere element wildcards are present.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="Created" type="wsu:AttributedDateTime">
+ <xsd:annotation>
+ <xsd:documentation>
+This element allows a creation time to be applied anywhere element wildcards are present.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+</xsd:schema>
diff --git a/schema/privacy.xsd b/schema/privacy.xsd new file mode 100644 index 0000000..cdf1b0b --- /dev/null +++ b/schema/privacy.xsd @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+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.
+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.
+Copyright © OASIS Open 2002-2007. All Rights Reserved.
+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.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+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.
+ -->
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ xmlns:tns='http://docs.oasis-open.org/wsfed/privacy/200706'
+ xmlns:wsa='http://www.w3.org/2005/08/addressing'
+ targetNamespace='http://docs.oasis-open.org/wsfed/privacy/200706'
+ elementFormDefault='qualified' >
+
+ <xs:import namespace='http://www.w3.org/2005/08/addressing' schemaLocation='ws-addr.xsd' />
+
+ <!-- Section 12.1 -->
+ <xs:element name='ProtectData' type='tns:ProtectDataType' />
+
+ <xs:complexType name='ProtectDataType' >
+ <xs:sequence>
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 12.2 -->
+ <xs:element name='EnumerateParameters' type='tns:EnumerateParametersType' />
+ <xs:simpleType name='ListOfQName'>
+ <xs:list itemType='xs:QName' />
+ </xs:simpleType>
+ <xs:complexType name='EnumerateParametersType' >
+ <xs:simpleContent>
+ <xs:extension base='tns:ListOfQName' >
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:element name='FaultOnUnacceptedRstParameters' type='tns:ExtensibleElement' />
+ <xs:element name='EnumerateAllClaims' type='tns:ExtensibleElement' />
+
+ <xs:complexType name='ExtensibleElement' >
+ <xs:sequence>
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 12.3 -->
+ <xs:element name='PrivacyPolicyEndpoint' type='tns:PrivacyPolicyEndpointType' />
+ <xs:complexType name='PrivacyPolicyEndpointType' >
+ <xs:complexContent>
+ <xs:extension base='wsa:EndpointReferenceType' >
+ <xs:attribute name='SupportsMex' type='xs:boolean' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
diff --git a/schema/saml-schema-assertion-2.0.xsd b/schema/saml-schema-assertion-2.0.xsd new file mode 100644 index 0000000..a00bf11 --- /dev/null +++ b/schema/saml-schema-assertion-2.0.xsd @@ -0,0 +1,281 @@ +<?xml version="1.0" encoding="US-ASCII"?>
+<schema
+ targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+ xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
+ 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"/>
+ <annotation>
+ <documentation>
+ Document identifier: saml-schema-assertion-2.0
+ Location: http://docs.oasis-open.org/security/saml/v2.0/
+ Revision history:
+ V1.0 (November, 2002):
+ Initial Standard Schema.
+ V1.1 (September, 2003):
+ Updates within the same V1.0 namespace.
+ V2.0 (March, 2005):
+ New assertion schema for SAML V2.0 namespace.
+ </documentation>
+ </annotation>
+ <attributeGroup name="IDNameQualifiers">
+ <attribute name="NameQualifier" type="string" use="optional"/>
+ <attribute name="SPNameQualifier" type="string" use="optional"/>
+ </attributeGroup>
+ <element name="BaseID" type="saml:BaseIDAbstractType"/>
+ <complexType name="BaseIDAbstractType" abstract="true">
+ <attributeGroup ref="saml:IDNameQualifiers"/>
+ </complexType>
+ <element name="NameID" type="saml:NameIDType"/>
+ <complexType name="NameIDType">
+ <simpleContent>
+ <extension base="string">
+ <attributeGroup ref="saml:IDNameQualifiers"/>
+ <attribute name="Format" type="anyURI" use="optional"/>
+ <attribute name="SPProvidedID" type="string" use="optional"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+ <complexType name="EncryptedElementType">
+ <sequence>
+ <element ref="xenc:EncryptedData"/>
+ <element ref="xenc:EncryptedKey" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="EncryptedID" type="saml:EncryptedElementType"/>
+ <element name="Issuer" type="saml:NameIDType"/>
+ <element name="AssertionIDRef" type="NCName"/>
+ <element name="AssertionURIRef" type="anyURI"/>
+ <element name="Assertion" type="saml:AssertionType"/>
+ <complexType name="AssertionType">
+ <sequence>
+ <element ref="saml:Issuer"/>
+ <element ref="ds:Signature" minOccurs="0"/>
+ <element ref="saml:Subject" minOccurs="0"/>
+ <element ref="saml:Conditions" minOccurs="0"/>
+ <element ref="saml:Advice" minOccurs="0"/>
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="saml:Statement"/>
+ <element ref="saml:AuthnStatement"/>
+ <element ref="saml:AuthzDecisionStatement"/>
+ <element ref="saml:AttributeStatement"/>
+ </choice>
+ </sequence>
+ <attribute name="Version" type="string" use="required"/>
+ <attribute name="ID" type="ID" use="required"/>
+ <attribute name="IssueInstant" type="dateTime" use="required"/>
+ </complexType>
+ <element name="Subject" type="saml:SubjectType"/>
+ <complexType name="SubjectType">
+ <choice>
+ <sequence>
+ <choice>
+ <element ref="saml:BaseID"/>
+ <element ref="saml:NameID"/>
+ <element ref="saml:EncryptedID"/>
+ </choice>
+ <element ref="saml:SubjectConfirmation" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <element ref="saml:SubjectConfirmation" maxOccurs="unbounded"/>
+ </choice>
+ </complexType>
+ <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/>
+ <complexType name="SubjectConfirmationType">
+ <sequence>
+ <choice minOccurs="0">
+ <element ref="saml:BaseID"/>
+ <element ref="saml:NameID"/>
+ <element ref="saml:EncryptedID"/>
+ </choice>
+ <element ref="saml:SubjectConfirmationData" minOccurs="0"/>
+ </sequence>
+ <attribute name="Method" type="anyURI" use="required"/>
+ </complexType>
+ <element name="SubjectConfirmationData" type="saml:SubjectConfirmationDataType"/>
+ <complexType name="SubjectConfirmationDataType" mixed="true">
+ <complexContent>
+ <restriction base="anyType">
+ <sequence>
+ <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="NotBefore" type="dateTime" use="optional"/>
+ <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
+ <attribute name="Recipient" type="anyURI" use="optional"/>
+ <attribute name="InResponseTo" type="NCName" use="optional"/>
+ <attribute name="Address" type="string" use="optional"/>
+ <anyAttribute namespace="##other" processContents="lax"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="KeyInfoConfirmationDataType" mixed="false">
+ <complexContent>
+ <restriction base="saml:SubjectConfirmationDataType">
+ <sequence>
+ <element ref="ds:KeyInfo" maxOccurs="unbounded"/>
+ </sequence>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <element name="Conditions" type="saml:ConditionsType"/>
+ <complexType name="ConditionsType">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="saml:Condition"/>
+ <element ref="saml:AudienceRestriction"/>
+ <element ref="saml:OneTimeUse"/>
+ <element ref="saml:ProxyRestriction"/>
+ </choice>
+ <attribute name="NotBefore" type="dateTime" use="optional"/>
+ <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
+ </complexType>
+ <element name="Condition" type="saml:ConditionAbstractType"/>
+ <complexType name="ConditionAbstractType" abstract="true"/>
+ <element name="AudienceRestriction" type="saml:AudienceRestrictionType"/>
+ <complexType name="AudienceRestrictionType">
+ <complexContent>
+ <extension base="saml:ConditionAbstractType">
+ <sequence>
+ <element ref="saml:Audience" maxOccurs="unbounded"/>
+ </sequence>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="Audience" type="anyURI"/>
+ <element name="OneTimeUse" type="saml:OneTimeUseType" />
+ <complexType name="OneTimeUseType">
+ <complexContent>
+ <extension base="saml:ConditionAbstractType"/>
+ </complexContent>
+ </complexType>
+ <element name="ProxyRestriction" type="saml:ProxyRestrictionType"/>
+ <complexType name="ProxyRestrictionType">
+ <complexContent>
+ <extension base="saml:ConditionAbstractType">
+ <sequence>
+ <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Count" type="nonNegativeInteger" use="optional"/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="Advice" type="saml:AdviceType"/>
+ <complexType name="AdviceType">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="saml:AssertionIDRef"/>
+ <element ref="saml:AssertionURIRef"/>
+ <element ref="saml:Assertion"/>
+ <element ref="saml:EncryptedAssertion"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </complexType>
+ <element name="EncryptedAssertion" type="saml:EncryptedElementType"/>
+ <element name="Statement" type="saml:StatementAbstractType"/>
+ <complexType name="StatementAbstractType" abstract="true"/>
+ <element name="AuthnStatement" type="saml:AuthnStatementType"/>
+ <complexType name="AuthnStatementType">
+ <complexContent>
+ <extension base="saml:StatementAbstractType">
+ <sequence>
+ <element ref="saml:SubjectLocality" minOccurs="0"/>
+ <element ref="saml:AuthnContext"/>
+ </sequence>
+ <attribute name="AuthnInstant" type="dateTime" use="required"/>
+ <attribute name="SessionIndex" type="string" use="optional"/>
+ <attribute name="SessionNotOnOrAfter" type="dateTime" use="optional"/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="SubjectLocality" type="saml:SubjectLocalityType"/>
+ <complexType name="SubjectLocalityType">
+ <attribute name="Address" type="string" use="optional"/>
+ <attribute name="DNSName" type="string" use="optional"/>
+ </complexType>
+ <element name="AuthnContext" type="saml:AuthnContextType"/>
+ <complexType name="AuthnContextType">
+ <sequence>
+ <choice>
+ <sequence>
+ <element ref="saml:AuthnContextClassRef"/>
+ <choice minOccurs="0">
+ <element ref="saml:AuthnContextDecl"/>
+ <element ref="saml:AuthnContextDeclRef"/>
+ </choice>
+ </sequence>
+ <choice>
+ <element ref="saml:AuthnContextDecl"/>
+ <element ref="saml:AuthnContextDeclRef"/>
+ </choice>
+ </choice>
+ <element ref="saml:AuthenticatingAuthority" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="AuthnContextClassRef" type="anyURI"/>
+ <element name="AuthnContextDeclRef" type="anyURI"/>
+ <element name="AuthnContextDecl" type="anyType"/>
+ <element name="AuthenticatingAuthority" type="anyURI"/>
+ <element name="AuthzDecisionStatement" type="saml:AuthzDecisionStatementType"/>
+ <complexType name="AuthzDecisionStatementType">
+ <complexContent>
+ <extension base="saml:StatementAbstractType">
+ <sequence>
+ <element ref="saml:Action" maxOccurs="unbounded"/>
+ <element ref="saml:Evidence" minOccurs="0"/>
+ </sequence>
+ <attribute name="Resource" type="anyURI" use="required"/>
+ <attribute name="Decision" type="saml:DecisionType" use="required"/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <simpleType name="DecisionType">
+ <restriction base="string">
+ <enumeration value="Permit"/>
+ <enumeration value="Deny"/>
+ <enumeration value="Indeterminate"/>
+ </restriction>
+ </simpleType>
+ <element name="Action" type="saml:ActionType"/>
+ <complexType name="ActionType">
+ <simpleContent>
+ <extension base="string">
+ <attribute name="Namespace" type="anyURI" use="required"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+ <element name="Evidence" type="saml:EvidenceType"/>
+ <complexType name="EvidenceType">
+ <choice maxOccurs="unbounded">
+ <element ref="saml:AssertionIDRef"/>
+ <element ref="saml:AssertionURIRef"/>
+ <element ref="saml:Assertion"/>
+ <element ref="saml:EncryptedAssertion"/>
+ </choice>
+ </complexType>
+ <element name="AttributeStatement" type="saml:AttributeStatementType"/>
+ <complexType name="AttributeStatementType">
+ <complexContent>
+ <extension base="saml:StatementAbstractType">
+ <choice maxOccurs="unbounded">
+ <element ref="saml:Attribute"/>
+ <element ref="saml:EncryptedAttribute"/>
+ </choice>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="Attribute" type="saml:AttributeType"/>
+ <complexType name="AttributeType">
+ <sequence>
+ <element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Name" type="string" use="required"/>
+ <attribute name="NameFormat" type="anyURI" use="optional"/>
+ <attribute name="FriendlyName" type="string" use="optional"/>
+ <anyAttribute namespace="##other" processContents="lax"/>
+ </complexType>
+ <element name="AttributeValue" type="anyType" nillable="true"/>
+ <element name="EncryptedAttribute" type="saml:EncryptedElementType"/>
+</schema>
diff --git a/schema/saml-schema-metadata-2.0.xsd b/schema/saml-schema-metadata-2.0.xsd new file mode 100644 index 0000000..17ec36a --- /dev/null +++ b/schema/saml-schema-metadata-2.0.xsd @@ -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> diff --git a/schema/shibboleth-metadata-1.0.xsd b/schema/shibboleth-metadata-1.0.xsd new file mode 100644 index 0000000..be1441d --- /dev/null +++ b/schema/shibboleth-metadata-1.0.xsd @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="US-ASCII"?> +<schema targetNamespace="urn:mace:shibboleth:metadata:1.0" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + elementFormDefault="unqualified" + attributeFormDefault="unqualified" + version="1.0"> + + <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/> + + <element name="Scope"> + <annotation> + <documentation> + SAML metadata extension used to regulate allowable attribute scopes. + </documentation> + </annotation> + <complexType> + <simpleContent> + <extension base="string"> + <attribute name="regexp" type="boolean" use="optional" default="false"/> + </extension> + </simpleContent> + </complexType> + </element> + + <element name="KeyAuthority"> + <annotation> + <documentation> + Binds keying authorities to the system entity/entities to which the enclosing + metadata element applies. + </documentation> + </annotation> + <complexType> + <sequence> + <element ref="ds:KeyInfo" maxOccurs="unbounded"/> + </sequence> + <attribute name="VerifyDepth" type="unsignedByte" use="optional" default="1"/> + <anyAttribute namespace="##other" processContents="lax"/> + </complexType> + </element> + +</schema> diff --git a/schema/shibboleth-trust-1.0.xsd b/schema/shibboleth-trust-1.0.xsd new file mode 100644 index 0000000..0e603a5 --- /dev/null +++ b/schema/shibboleth-trust-1.0.xsd @@ -0,0 +1,60 @@ +<schema targetNamespace="urn:mace:shibboleth:trust:1.0" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:trust="urn:mace:shibboleth:trust:1.0" + elementFormDefault="unqualified" + attributeFormDefault="unqualified" + version="1.0"> + + <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/> + + <annotation> + <documentation> + Trust metadata binds keys or authority lists to system entities. + The metadata consumer is responsible for associating the names of system entities + to the application context in an appropriate way. + </documentation> + </annotation> + + <element name="Trust"> + <annotation> + <documentation> + An optionally signed collection of trust binding elements. + ds:KeyInfo is by definition a binding of a key to a specific entity, + which may be specified in various ways such as KeyName or X509SubjectName. + </documentation> + </annotation> + <complexType> + <sequence> + <choice maxOccurs="unbounded"> + <element ref="ds:KeyInfo"/> + <element ref="trust:KeyAuthority"/> + </choice> + <element ref="ds:Signature" minOccurs="0"/> + </sequence> + <attribute name="lastChanged" type="dateTime" use="optional"/> + <attribute name="validUntil" type="dateTime" use="optional"/> + <attribute name="cacheDuration" type="duration" use="optional"/> + <anyAttribute namespace="##other" processContents="lax"/> + </complexType> + </element> + + <element name="KeyAuthority" type="trust:KeyAuthorityType"/> + <complexType name="KeyAuthorityType"> + <annotation> + <documentation> + Binds keying authorities to one or more named system entities. + Omitting ds:KeyName will apply the authorities to all transactions, unless + another specific match applies. This is risky, so use wisely, in conjunction + with constraints on acceptable messages using other forms of metadata or policy. + </documentation> + </annotation> + <sequence> + <element ref="ds:KeyName" minOccurs="0" maxOccurs="unbounded"/> + <element ref="ds:KeyInfo"/> + </sequence> + <attribute name="VerifyDepth" type="unsignedByte" use="optional"/> + <anyAttribute namespace="##other" processContents="lax"/> + </complexType> + +</schema> diff --git a/schema/shibboleth.xsd b/schema/shibboleth.xsd new file mode 100644 index 0000000..392fed4 --- /dev/null +++ b/schema/shibboleth.xsd @@ -0,0 +1,296 @@ +<?xml version="1.0" encoding="US-ASCII"?> +<schema targetNamespace="urn:mace:shibboleth:1.0" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:xml="http://www.w3.org/XML/1998/namespace" + xmlns:shib="urn:mace:shibboleth:1.0" + xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" + elementFormDefault="qualified" + attributeFormDefault="unqualified" + version="1.2"> + + <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/> + <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> + <import namespace="urn:oasis:names:tc:SAML:1.0:assertion" schemaLocation="cs-sstc-schema-assertion-1.1.xsd"/> + + <!-- Status-Related Information --> + + <!-- + The following SAML sub-status codes are defined in this namespace: + + "InvalidHandle" + Used with samlp:Requester, signals AA did not recognize handle as valid + --> + + <!-- + Relaxes SAML AttributeValue type definition. Xerces-C has a bug that prevents + anyAttribute content appearing on anyType. It works in 2.2 but not in later versions. + --> + + <complexType name="AttributeValueType" mixed="true"> + <annotation> + <documentation xml:lang="en"> + By convention, all Shibboleth 1.1 origin attribute values carry this unconstrained xsi:type. + </documentation> + </annotation> + <complexContent> + <extension base="anyType"/> + </complexContent> + </complexType> + + <!-- Attribute Acceptance Policies --> + + <simpleType name="AttributeRuleValueType"> + <restriction base="string"> + <enumeration value="literal"/> + <enumeration value="regexp"/> + <enumeration value="xpath"/> + </restriction> + </simpleType> + + <complexType name="SiteRuleType"> + <sequence> + <element name="Scope" minOccurs="0" maxOccurs="unbounded"> + <complexType> + <simpleContent> + <extension base="string"> + <attribute name="Accept" type="boolean" use="optional" default="true"/> + <attribute name="Type" type="shib:AttributeRuleValueType" use="optional" default="literal"/> + <anyAttribute namespace="##other" processContents="lax"/> + </extension> + </simpleContent> + </complexType> + </element> + <choice minOccurs="0"> + <element name="AnyValue"> + <complexType> + <sequence/> + <anyAttribute namespace="##other" processContents="lax"/> + </complexType> + </element> + <element name="Value" maxOccurs="unbounded"> + <complexType> + <simpleContent> + <extension base="string"> + <attribute name="Type" type="shib:AttributeRuleValueType" use="optional" default="literal"/> + <anyAttribute namespace="##other" processContents="lax"/> + </extension> + </simpleContent> + </complexType> + </element> + </choice> + </sequence> + </complexType> + + <element name="AnySite" type="shib:SiteRuleType"/> + <element name="SiteRule"> + <complexType> + <complexContent> + <extension base="shib:SiteRuleType"> + <attribute name="Name" type="string" use="required"/> + <anyAttribute namespace="##other" processContents="lax"/> + </extension> + </complexContent> + </complexType> + </element> + + <complexType name="AttributeRuleType"> + <sequence> + <element ref="shib:AnySite" minOccurs="0"/> + <element ref="shib:SiteRule" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <attribute name="Name" type="string" use="required"/> + <attribute name="Namespace" type="string" use="optional"/> + <attribute name="Factory" type="string" use="optional"/> + <attribute name="Alias" type="string" use="optional"/> + <attribute name="Header" type="string" use="optional"/> + <anyAttribute namespace="##other" processContents="lax"/> + </complexType> + + <element name="AttributeRule" type="shib:AttributeRuleType"> + <key name="SiteRuleKey"> + <selector xpath="./shib:SiteRule"/> + <field xpath="@Name"/> + </key> + </element> + + <element name="AttributeAcceptancePolicy"> + <complexType> + <sequence> + <element name="AnyAttribute" minOccurs="0"> + <complexType> + <sequence/> + </complexType> + </element> + <element ref="shib:AttributeRule" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <anyAttribute namespace="##other" processContents="lax"/> + </complexType> + </element> + + + <!-- Shibboleth Metadata --> + + <complexType name="SiteType"> + <annotation> + <documentation xml:lang="en">All sites have a Name attribute, plus optional i18n-ized aliases.</documentation> + </annotation> + <sequence> + <element name="Alias" minOccurs="0" maxOccurs="unbounded"> + <complexType> + <simpleContent> + <extension base="string"> + <attribute ref="xml:lang"/> + </extension> + </simpleContent> + </complexType> + </element> + <element name="Contact" type="shib:ContactType" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <attribute name="Name" type="string" use="required"/> + <attribute name="ErrorURL" type="anyURI" use="optional"/> + <anyAttribute namespace="##any" processContents="lax"/> + </complexType> + + <simpleType name="ContactTypeType"> + <restriction base="string"> + <enumeration value="technical"/> + <enumeration value="support"/> + <enumeration value="administrative"/> + <enumeration value="billing"/> + <enumeration value="other"/> + </restriction> + </simpleType> + + <complexType name="ContactType"> + <annotation><documentation xml:lang="en">A human contact for a site.</documentation></annotation> + <sequence/> + <attribute name="Type" type="shib:ContactTypeType" use="required"/> + <attribute name="Name" type="string" use="required"/> + <attribute name="Email" type="string" use="optional"/> + </complexType> + + <complexType name="regexp_string"> + <annotation> + <documentation xml:lang="en">A string element with an optional attribute signaling regexp content.</documentation> + </annotation> + <simpleContent> + <extension base="string"> + <attribute name="regexp" type="boolean" use="optional" default="false"/> + </extension> + </simpleContent> + </complexType> + + <complexType name="AuthorityType"> + <annotation> + <documentation xml:lang="en">Metadata about a SAML authority.</documentation> + </annotation> + <sequence/> + <attribute name="Name" type="string" use="required"/> + <attribute name="Location" type="anyURI" use="required"/> + <anyAttribute namespace="##any" processContents="lax"/> + </complexType> + + <complexType name="OriginSiteType"> + <annotation> + <documentation xml:lang="en"> + Origin sites add at least one handle service (with a name), plus optional domains trusted for attribute scoping. + </documentation> + </annotation> + <complexContent> + <extension base="shib:SiteType"> + <sequence> + <element name="HandleService" type="shib:AuthorityType" maxOccurs="unbounded"/> + <element name="AttributeAuthority" type="shib:AuthorityType" minOccurs="0" maxOccurs="unbounded"/> + <element name="Domain" type="shib:regexp_string" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + </extension> + </complexContent> + </complexType> + + <complexType name="DestinationSiteType"> + <annotation> + <documentation xml:lang="en"> + Destination sites add at least one attribute requester (with a name). + </documentation> + </annotation> + <complexContent> + <extension base="shib:SiteType"> + <sequence> + <element name="AssertionConsumerServiceURL" maxOccurs="unbounded"> + <complexType> + <sequence/> + <attribute name="Location" type="string" use="required"/> + <attribute name="Id" type="string" use="optional"/> + <anyAttribute namespace="##any" processContents="lax"/> + </complexType> + </element> + <element name="AttributeRequester" maxOccurs="unbounded"> + <complexType> + <sequence/> + <attribute name="Name" type="string" use="required"/> + <anyAttribute namespace="##any" processContents="lax"/> + </complexType> + </element> + </sequence> + </extension> + </complexContent> + </complexType> + + <complexType name="SiteGroupType"> + <annotation> + <documentation xml:lang="en">Used to logically group sites together, optionally signed.</documentation> + </annotation> + <sequence> + <choice maxOccurs="unbounded"> + <element ref="shib:OriginSite"/> + <element ref="shib:DestinationSite"/> + <element ref="shib:SiteGroup"/> + </choice> + <element ref="ds:Signature" minOccurs="0"/> + </sequence> + <attribute name="Name" type="string" use="required"/> + <attribute name="lastChanged" type="dateTime" use="optional"/> + <attribute name="validUntil" type="dateTime" use="optional"/> + <attribute name="cacheDuration" type="duration" use="optional"/> + <anyAttribute namespace="##any" processContents="lax"/> + </complexType> + + <element name="OriginSite" type="shib:OriginSiteType"/> + <element name="DestinationSite" type="shib:DestinationSiteType"/> + <element name="SiteGroup" type="shib:SiteGroupType"/> + + + <!-- Old (pre 1.2) Trust Metadata --> + + <complexType name="KeyAuthorityType"> + <annotation> + <documentation xml:lang="en"> + Binds a set of keying material to one or more named system entities. + </documentation> + </annotation> + <sequence> + <element ref="ds:KeyInfo"/> + <element name="Subject" type="shib:regexp_string" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <anyAttribute namespace="##any" processContents="lax"/> + </complexType> + <element name="KeyAuthority" type="shib:KeyAuthorityType"/> + + <element name="Trust"> + <annotation> + <documentation xml:lang="en">An optionally signed collection of KeyAuthority data.</documentation> + </annotation> + <complexType> + <sequence> + <element ref="shib:KeyAuthority" maxOccurs="unbounded"/> + <element ref="ds:Signature" minOccurs="0"/> + </sequence> + <attribute name="lastChanged" type="dateTime" use="optional"/> + <attribute name="validUntil" type="dateTime" use="optional"/> + <attribute name="cacheDuration" type="duration" use="optional"/> + <anyAttribute namespace="##any" processContents="lax"/> + </complexType> + </element> + +</schema> diff --git a/schema/sstc-metadata-attr.xsd b/schema/sstc-metadata-attr.xsd new file mode 100644 index 0000000..63c2c0a --- /dev/null +++ b/schema/sstc-metadata-attr.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<schema + targetNamespace="urn:oasis:names:tc:SAML:metadata:attribute" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" + xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" + elementFormDefault="unqualified" + attributeFormDefault="unqualified" + blockDefault="substitution" + version="2.0"> + + <annotation> + <documentation> + Document title: SAML V2.0 Metadata Extention for Entity Attributes Schema + Document identifier: sstc-metadata-attr.xsd + Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=security + Revision history: + V1.0 (November 2008): + Initial version. + </documentation> + </annotation> + + <import namespace="urn:oasis:names:tc:SAML:2.0:assertion" + schemaLocation="sstc-saml-schema-assertion-2.0.xsd"/> + + <element name="EntityAttributes" type="mdattr:EntityAttributesType"/> + <complexType name="EntityAttributesType"> + <choice maxOccurs="unbounded"> + <element ref="saml:Attribute"/> + <element ref="saml:Assertion"/> + </choice> + </complexType> + +</schema> + diff --git a/schema/sstc-saml-idp-discovery.xsd b/schema/sstc-saml-idp-discovery.xsd new file mode 100644 index 0000000..00da6a3 --- /dev/null +++ b/schema/sstc-saml-idp-discovery.xsd @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<schema xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns="http://www.w3.org/2001/XMLSchema" + targetNamespace="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol" + elementFormDefault="unqualified" + attributeFormDefault="unqualified" + blockDefault="substitution" + version="1.0"> + + <annotation> + <documentation> + Document identifier: sstc-saml-idp-discovery + Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=security + Revision history: + V1.0 (January 2007): + Initial version. + </documentation> + </annotation> + + <import namespace="urn:oasis:names:tc:SAML:2.0:metadata" schemaLocation="classpath:/schema/saml-schema-metadata-2.0.xsd" /> + + <element name="DiscoveryResponse" type="md:IndexedEndpointType" /> + +</schema> diff --git a/schema/sstc-saml-metadata-algsupport.xsd b/schema/sstc-saml-metadata-algsupport.xsd new file mode 100644 index 0000000..6c7167d --- /dev/null +++ b/schema/sstc-saml-metadata-algsupport.xsd @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<schema
+ targetNamespace="urn:oasis:names:tc:SAML:metadata:algsupport"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport"
+ elementFormDefault="unqualified"
+ attributeFormDefault="unqualified"
+ blockDefault="substitution"
+ version="2.0">
+
+ <annotation>
+ <documentation>
+ Document title: Metadata Extension Schema for SAML V2.0 Metadata Profile for Algorithm Support Version 1.0
+ Document identifier: sstc-saml-metadata-algsupport.xsd
+ Location: http://docs.oasis-open.org/security/saml/Post2.0/
+ Revision history:
+ V1.0 (June 2010):
+ Initial version.
+ </documentation>
+ </annotation>
+
+ <element name="DigestMethod" type="alg:DigestMethodType"/>
+ <complexType name="DigestMethodType">
+ <sequence>
+ <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ </complexType>
+
+ <element name="SigningMethod" type="alg:SigningMethodType"/>
+ <complexType name="SigningMethodType">
+ <sequence>
+ <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Algorithm" type="anyURI" use="required"/>
+ <attribute name="MinKeySize" type="positiveInteger"/>
+ <attribute name="MaxKeySize" type="positiveInteger"/>
+ </complexType>
+
+</schema>
+
diff --git a/schema/sstc-saml-metadata-ui-v1.0.xsd b/schema/sstc-saml-metadata-ui-v1.0.xsd new file mode 100644 index 0000000..5894cb5 --- /dev/null +++ b/schema/sstc-saml-metadata-ui-v1.0.xsd @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<schema
+ targetNamespace="urn:oasis:names:tc:SAML:metadata:ui"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
+ xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"
+ elementFormDefault="unqualified"
+ attributeFormDefault="unqualified"
+ blockDefault="substitution"
+ version="1.0">
+
+ <annotation>
+ <documentation>
+ Document title: Metadata Extension Schema for SAML V2.0 Metadata Extensions for Login and Discovery User Interface Version 1.0
+ Document identifier: sstc-saml-metadata-ui-v1.0.xsd
+ Location: http://docs.oasis-open.org/security/saml/Post2.0/
+ Revision history:
+ 01 November 2010
+ Changed filename.
+ September 2010:
+ Initial version.
+ </documentation>
+ </annotation>
+
+ <import namespace="urn:oasis:names:tc:SAML:2.0:metadata"
+ schemaLocation="saml-schema-metadata-2.0.xsd"/>
+ <import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
+ <element name="UIInfo" type="mdui:UIInfoType" />
+ <complexType name="UIInfoType">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="mdui:DisplayName"/>
+ <element ref="mdui:Description"/>
+ <element ref="mdui:Keywords"/>
+ <element ref="mdui:Logo"/>
+ <element ref="mdui:InformationURL"/>
+ <element ref="mdui:PrivacyStatementURL"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </complexType>
+
+ <element name="DisplayName" type="md:localizedNameType"/>
+ <element name="Description" type="md:localizedNameType"/>
+ <element name="InformationURL" type="md:localizedURIType"/>
+ <element name="PrivacyStatementURL" type="md:localizedURIType"/>
+
+ <element name="Keywords" type="mdui:KeywordsType"/>
+ <complexType name="KeywordsType">
+ <simpleContent>
+ <extension base="mdui:listOfStrings">
+ <attribute ref="xml:lang" use="required"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+
+ <simpleType name="listOfStrings">
+ <list itemType="string"/>
+ </simpleType>
+
+ <element name="Logo" type="mdui:LogoType"/>
+ <complexType name="LogoType">
+ <simpleContent>
+ <extension base="anyURI">
+ <attribute name="height" type="positiveInteger" use="required"/>
+ <attribute name="width" type="positiveInteger" use="required"/>
+ <attribute ref="xml:lang"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+
+ <element name="DiscoHints" type="mdui:DiscoHintsType"/>
+ <complexType name="DiscoHintsType">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="mdui:IPHint"/>
+ <element ref="mdui:DomainHint"/>
+ <element ref="mdui:GeolocationHint"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </complexType>
+
+ <element name="IPHint" type="string"/>
+ <element name="DomainHint" type="string"/>
+ <element name="GeolocationHint" type="anyURI"/>
+
+</schema>
+
diff --git a/schema/sstc-saml-schema-assertion-2.0.xsd b/schema/sstc-saml-schema-assertion-2.0.xsd new file mode 100644 index 0000000..3823307 --- /dev/null +++ b/schema/sstc-saml-schema-assertion-2.0.xsd @@ -0,0 +1,283 @@ +<?xml version="1.0" encoding="US-ASCII"?>
+<schema
+ targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+ xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
+ 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"/>
+ <annotation>
+ <documentation>
+ Document identifier: sstc-saml-schema-assertion-2.0
+ Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=security
+ Revision history:
+ V1.0 (November, 2002):
+ Initial Standard Schema.
+ V1.1 (September, 2003):
+ Updates within the same V1.0 namespace.
+ V2.0 CD-04 (January, 2005):
+ New assertion schema for SAML V2.0 namespace.
+ </documentation>
+ </annotation>
+ <attributeGroup name="IDNameQualifiers">
+ <attribute name="NameQualifier" type="string" use="optional"/>
+ <attribute name="SPNameQualifier" type="string" use="optional"/>
+ </attributeGroup>
+ <element name="BaseID" type="saml:BaseIDAbstractType"/>
+ <complexType name="BaseIDAbstractType" abstract="true">
+ <attributeGroup ref="saml:IDNameQualifiers"/>
+ </complexType>
+ <element name="NameID" type="saml:NameIDType"/>
+ <complexType name="NameIDType">
+ <simpleContent>
+ <extension base="string">
+ <attributeGroup ref="saml:IDNameQualifiers"/>
+ <attribute name="Format" type="anyURI" use="optional"/>
+ <attribute name="SPProvidedID" type="string" use="optional"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+ <complexType name="EncryptedElementType">
+ <sequence>
+ <element ref="xenc:EncryptedData"/>
+ <element ref="xenc:EncryptedKey" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="EncryptedID" type="saml:EncryptedElementType"/>
+ <element name="Issuer" type="saml:NameIDType"/>
+ <element name="AssertionIDRef" type="NCName"/>
+ <element name="AssertionURIRef" type="anyURI"/>
+ <element name="Assertion" type="saml:AssertionType"/>
+ <complexType name="AssertionType">
+ <sequence>
+ <element ref="saml:Issuer"/>
+ <element ref="ds:Signature" minOccurs="0"/>
+ <element ref="saml:Subject" minOccurs="0"/>
+ <element ref="saml:Conditions" minOccurs="0"/>
+ <element ref="saml:Advice" minOccurs="0"/>
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="saml:Statement"/>
+ <element ref="saml:AuthnStatement"/>
+ <element ref="saml:AuthzDecisionStatement"/>
+ <element ref="saml:AttributeStatement"/>
+ </choice>
+ </sequence>
+ <attribute name="Version" type="string" use="required"/>
+ <attribute name="ID" type="ID" use="required"/>
+ <attribute name="IssueInstant" type="dateTime" use="required"/>
+ </complexType>
+ <element name="Subject" type="saml:SubjectType"/>
+ <complexType name="SubjectType">
+ <choice>
+ <sequence>
+ <choice>
+ <element ref="saml:BaseID"/>
+ <element ref="saml:NameID"/>
+ <element ref="saml:EncryptedID"/>
+ </choice>
+ <element ref="saml:SubjectConfirmation" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <element ref="saml:SubjectConfirmation" maxOccurs="unbounded"/>
+ </choice>
+ </complexType>
+ <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/>
+ <complexType name="SubjectConfirmationType">
+ <sequence>
+ <choice minOccurs="0">
+ <element ref="saml:BaseID"/>
+ <element ref="saml:NameID"/>
+ <element ref="saml:EncryptedID"/>
+ </choice>
+ <element ref="saml:SubjectConfirmationData" minOccurs="0"/>
+ </sequence>
+ <attribute name="Method" type="anyURI" use="required"/>
+ </complexType>
+ <element name="SubjectConfirmationData" type="saml:SubjectConfirmationDataType"/>
+ <complexType name="SubjectConfirmationDataType" mixed="true">
+ <complexContent>
+ <restriction base="anyType">
+ <sequence>
+ <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="NotBefore" type="dateTime" use="optional"/>
+ <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
+ <attribute name="Recipient" type="anyURI" use="optional"/>
+ <attribute name="InResponseTo" type="NCName" use="optional"/>
+ <attribute name="Address" type="string" use="optional"/>
+ <anyAttribute namespace="##other" processContents="lax"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="KeyInfoConfirmationDataType" mixed="false">
+ <complexContent>
+ <restriction base="saml:SubjectConfirmationDataType">
+ <sequence>
+ <element ref="ds:KeyInfo" maxOccurs="unbounded"/>
+ </sequence>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <element name="Conditions" type="saml:ConditionsType"/>
+ <complexType name="ConditionsType">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="saml:Condition"/>
+ <element ref="saml:AudienceRestriction"/>
+ <element ref="saml:OneTimeUse"/>
+ <element ref="saml:ProxyRestriction"/>
+ </choice>
+ <attribute name="NotBefore" type="dateTime" use="optional"/>
+ <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
+ </complexType>
+ <element name="Condition" type="saml:ConditionAbstractType"/>
+ <complexType name="ConditionAbstractType" abstract="true"/>
+ <element name="AudienceRestriction" type="saml:AudienceRestrictionType"/>
+ <complexType name="AudienceRestrictionType">
+ <complexContent>
+ <extension base="saml:ConditionAbstractType">
+ <sequence>
+ <element ref="saml:Audience" maxOccurs="unbounded"/>
+ </sequence>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="Audience" type="anyURI"/>
+ <element name="OneTimeUse" type="saml:OneTimeUseType" />
+ <complexType name="OneTimeUseType">
+ <complexContent>
+ <extension base="saml:ConditionAbstractType"/>
+ </complexContent>
+ </complexType>
+ <element name="ProxyRestriction" type="saml:ProxyRestrictionType"/>
+ <complexType name="ProxyRestrictionType">
+ <complexContent>
+ <extension base="saml:ConditionAbstractType">
+ <sequence>
+ <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Count" type="nonNegativeInteger" use="optional"/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="Advice" type="saml:AdviceType"/>
+ <complexType name="AdviceType">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="saml:AssertionIDRef"/>
+ <element ref="saml:AssertionURIRef"/>
+ <element ref="saml:Assertion"/>
+ <element ref="saml:EncryptedAssertion"/>
+ <any namespace="##other" processContents="lax"/>
+ </choice>
+ </complexType>
+ <element name="EncryptedAssertion" type="saml:EncryptedElementType"/>
+ <element name="Statement" type="saml:StatementAbstractType"/>
+ <complexType name="StatementAbstractType" abstract="true"/>
+ <element name="AuthnStatement" type="saml:AuthnStatementType"/>
+ <complexType name="AuthnStatementType">
+ <complexContent>
+ <extension base="saml:StatementAbstractType">
+ <sequence>
+ <element ref="saml:SubjectLocality" minOccurs="0"/>
+ <element ref="saml:AuthnContext"/>
+ </sequence>
+ <attribute name="AuthnInstant" type="dateTime" use="required"/>
+ <attribute name="SessionIndex" type="string" use="optional"/>
+ <attribute name="SessionNotOnOrAfter" type="dateTime" use="optional"/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="SubjectLocality" type="saml:SubjectLocalityType"/>
+ <complexType name="SubjectLocalityType">
+ <attribute name="Address" type="string" use="optional"/>
+ <attribute name="DNSName" type="string" use="optional"/>
+ </complexType>
+ <element name="AuthnContext" type="saml:AuthnContextType"/>
+ <complexType name="AuthnContextType">
+ <sequence>
+ <choice>
+ <sequence>
+ <element ref="saml:AuthnContextClassRef"/>
+ <choice minOccurs="0">
+ <element ref="saml:AuthnContextDecl"/>
+ <element ref="saml:AuthnContextDeclRef"/>
+ </choice>
+ </sequence>
+ <choice>
+ <element ref="saml:AuthnContextDecl"/>
+ <element ref="saml:AuthnContextDeclRef"/>
+ </choice>
+ </choice>
+ <element ref="saml:AuthenticatingAuthority" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+ <element name="AuthnContextClassRef" type="anyURI"/>
+ <element name="AuthnContextDeclRef" type="anyURI"/>
+ <element name="AuthnContextDecl" type="anyType"/>
+ <element name="AuthenticatingAuthority" type="anyURI"/>
+ <element name="AuthzDecisionStatement" type="saml:AuthzDecisionStatementType"/>
+ <complexType name="AuthzDecisionStatementType">
+ <complexContent>
+ <extension base="saml:StatementAbstractType">
+ <sequence>
+ <element ref="saml:Action" maxOccurs="unbounded"/>
+ <element ref="saml:Evidence" minOccurs="0"/>
+ </sequence>
+ <attribute name="Resource" type="anyURI" use="required"/>
+ <attribute name="Decision" type="saml:DecisionType" use="required"/>
+ </extension>
+ </complexContent>
+ </complexType>
+ <simpleType name="DecisionType">
+ <restriction base="string">
+ <enumeration value="Permit"/>
+ <enumeration value="Deny"/>
+ <enumeration value="Indeterminate"/>
+ </restriction>
+ </simpleType>
+ <element name="Action" type="saml:ActionType"/>
+ <complexType name="ActionType">
+ <simpleContent>
+ <extension base="string">
+ <attribute name="Namespace" type="anyURI" use="required"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+ <element name="Evidence" type="saml:EvidenceType"/>
+ <complexType name="EvidenceType">
+ <choice maxOccurs="unbounded">
+ <element ref="saml:AssertionIDRef"/>
+ <element ref="saml:AssertionURIRef"/>
+ <element ref="saml:Assertion"/>
+ <element ref="saml:EncryptedAssertion"/>
+ </choice>
+ </complexType>
+ <element name="AttributeStatement" type="saml:AttributeStatementType"/>
+ <complexType name="AttributeStatementType">
+ <complexContent>
+ <extension base="saml:StatementAbstractType">
+ <choice maxOccurs="unbounded">
+ <element ref="saml:Attribute"/>
+ <element ref="saml:EncryptedAttribute"/>
+ </choice>
+ </extension>
+ </complexContent>
+ </complexType>
+ <element name="Attribute" type="saml:AttributeType"/>
+ <complexType name="AttributeType">
+ <sequence>
+ <element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="Name" type="string" use="required"/>
+ <attribute name="NameFormat" type="anyURI" use="optional"/>
+ <attribute name="FriendlyName" type="string" use="optional"/>
+ <anyAttribute namespace="##other" processContents="lax"/>
+ </complexType>
+ <element name="AttributeValue" type="anyType" nillable="true"/>
+ <element name="EncryptedAttribute" type="saml:EncryptedElementType"/>
+</schema>
diff --git a/schema/sstc-saml-schema-metadata-2.0.xsd b/schema/sstc-saml-schema-metadata-2.0.xsd new file mode 100644 index 0000000..19f4cb9 --- /dev/null +++ b/schema/sstc-saml-schema-metadata-2.0.xsd @@ -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: sstc-saml-schema-metadata-2.0 + Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=security + Revision history: + V2.0 CD-04 (January, 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> diff --git a/schema/ws-addr.xsd b/schema/ws-addr.xsd new file mode 100644 index 0000000..47362ed --- /dev/null +++ b/schema/ws-addr.xsd @@ -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 index 0000000..c52670d --- /dev/null +++ b/schema/ws-authorization.xsd @@ -0,0 +1,144 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!--
+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.
+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.
+Copyright © OASIS Open 2002-2007. All Rights Reserved.
+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.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+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.
+ -->
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'
+ xmlns:tns='http://docs.oasis-open.org/wsfed/authorization/200706'
+ targetNamespace='http://docs.oasis-open.org/wsfed/authorization/200706'
+ elementFormDefault='qualified' >
+ <xs:import namespace='http://www.w3.org/2001/04/xmlenc#' schemaLocation='xenc-schema.xsd'/>
+
+ <!-- Section 9.2 -->
+ <xs:element name='AdditionalContext' type='tns:AdditionalContextType' />
+ <xs:complexType name='AdditionalContextType' >
+ <xs:sequence>
+ <xs:element name='ContextItem' type='tns:ContextItemType' minOccurs='0' maxOccurs='unbounded' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='ContextItemType' >
+ <xs:choice minOccurs='0'>
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
+ </xs:choice>
+ <xs:attribute name='Name' type='xs:anyURI' use='required' />
+ <xs:attribute name='Scope' type='xs:anyURI' use='optional' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 9.3 -->
+ <xs:element name='ClaimType' type='tns:ClaimType' />
+ <xs:complexType name='ClaimType' >
+ <xs:sequence>
+ <xs:element name="DisplayName" type="tns:DisplayNameType" minOccurs="0" maxOccurs="1" />
+ <xs:element name="Description" type="tns:DescriptionType" minOccurs="0" maxOccurs="1" />
+ <xs:element name="DisplayValue" type="tns:DisplayValueType" minOccurs="0" maxOccurs="1" />
+ <xs:choice minOccurs='0'>
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
+ <xs:element name='EncryptedValue' type='tns:EncryptedValueType' minOccurs='1' maxOccurs='1' />
+ <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />
+ <xs:element name='ConstrainedValue' type='tns:ConstrainedValueType' minOccurs='1' maxOccurs='1' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name='Uri' type='xs:anyURI' use='required' />
+ <xs:attribute name='Optional' type='xs:boolean' use='optional' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name="DisplayNameType">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:anyAttribute namespace="##other" processContents="lax" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:complexType name="DescriptionType">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:anyAttribute namespace="##other" processContents="lax" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:complexType name="DisplayValueType">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:anyAttribute namespace="##other" processContents="lax" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="EncryptedValueType">
+ <xs:sequence>
+ <xs:element ref="xenc:EncryptedData" minOccurs="1" maxOccurs="1"/>
+ </xs:sequence>
+ <xs:attribute name="DecryptionCondition" type="xs:anyURI" use="optional"/>
+ </xs:complexType>
+
+ <xs:complexType name="StructuredValueType">
+ <xs:sequence>
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 9.3.1 -->
+
+ <xs:complexType name='ConstrainedValueType'>
+ <xs:sequence>
+ <xs:choice minOccurs='1'>
+ <xs:element name='ValueLessThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
+ <xs:element name='ValueLessThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
+ <xs:element name='ValueGreaterThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
+ <xs:element name='ValueGreaterThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
+ <xs:element name='ValueInRangen' type='tns:ValueInRangeType' minOccurs='1' maxOccurs='1'/>
+ <xs:element name='ValueOneOf' type='tns:ConstrainedManyValueType' minOccurs='1' maxOccurs='1'/>
+ </xs:choice>
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute name='AssertConstraint' type='xs:boolean' use='optional' />
+ </xs:complexType>
+ <xs:complexType name='ValueInRangeType'>
+ <xs:sequence>
+ <xs:element name='ValueUpperBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
+ <xs:element name='ValueLowerBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name='ConstrainedSingleValueType'>
+ <xs:choice minOccurs='0'>
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
+ <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />
+ </xs:choice>
+ </xs:complexType>
+
+ <xs:complexType name='ConstrainedManyValueType'>
+ <xs:choice minOccurs='0'>
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='unbounded' />
+ <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='unbounded' />
+ </xs:choice>
+ </xs:complexType>
+
+</xs:schema>
diff --git a/schema/ws-federation.xsd b/schema/ws-federation.xsd new file mode 100644 index 0000000..1337dc3 --- /dev/null +++ b/schema/ws-federation.xsd @@ -0,0 +1,464 @@ +<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+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.
+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.
+Copyright © OASIS Open 2002-2007. All Rights Reserved.
+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.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+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.
+ -->
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ xmlns:sp='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'
+ xmlns:tns='http://docs.oasis-open.org/wsfed/federation/200706'
+ xmlns:wsa='http://www.w3.org/2005/08/addressing'
+ xmlns:mex='http://schemas.xmlsoap.org/ws/2004/09/mex'
+ xmlns:wsse='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:md='urn:oasis:names:tc:SAML:2.0:metadata'
+ xmlns:auth='http://docs.oasis-open.org/wsfed/authorization/200706'
+ targetNamespace='http://docs.oasis-open.org/wsfed/federation/200706'
+ elementFormDefault='qualified' >
+
+ <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' />
+ <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' />
+ <xs:import namespace='http://www.w3.org/2005/08/addressing' schemaLocation='ws-addr.xsd' />
+ <xs:import namespace='http://schemas.xmlsoap.org/ws/2004/09/mex' schemaLocation='MetadataExchange.xsd' />
+ <xs:import namespace='urn:oasis:names:tc:SAML:2.0:metadata' schemaLocation='saml-schema-metadata-2.0.xsd' />
+ <xs:import namespace='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702' schemaLocation='ws-securitypolicy-1.2.xsd'/>
+ <xs:import namespace='http://docs.oasis-open.org/wsfed/authorization/200706' schemaLocation='ws-authorization.xsd'/>
+
+ <!-- Section 3.1 -->
+ <!-- Note: Use of this root element is discouraged in favor of use of md:EntitiesDescriptor or md EntityDescriptor -->
+ <xs:element name='FederationMetadata' type='tns:FederationMetadataType' />
+
+ <xs:complexType name='FederationMetadataType' >
+ <xs:sequence>
+ <!--
+ *** Accurate content model is nondeterministic ***
+ <xs:element name='Federation' type='tns:FederationType' minOccurs='1' maxOccurs='unbounded' />
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ -->
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='FederationType' >
+ <xs:sequence>
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute name='FederationID' type='xs:anyURI' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 3.1.2.1 -->
+ <xs:complexType name="WebServiceDescriptorType" abstract="true">
+ <xs:complexContent>
+ <xs:extension base="md:RoleDescriptorType">
+ <xs:sequence>
+ <xs:element ref="tns:LogicalServiceNamesOffered" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="tns:TokenTypesOffered" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="tns:ClaimDialectsOffered" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="tns:ClaimTypesOffered" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="tns:ClaimTypesRequested" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="tns:AutomaticPseudonyms" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="tns:TargetScopes" minOccurs="0" maxOccurs="1"/>
+ </xs:sequence>
+ <xs:attribute name="ServiceDisplayName" type="xs:string" use="optional"/>
+ <xs:attribute name="ServiceDescription" type="xs:string" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name='LogicalServiceNamesOffered' type='tns:LogicalServiceNamesOfferedType' />
+ <xs:element name='TokenTypesOffered' type='tns:TokenTypesOfferedType' />
+ <xs:element name='ClaimDialectsOffered' type='tns:ClaimDialectsOfferedType' />
+ <xs:element name='ClaimTypesOffered' type='tns:ClaimTypesOfferedType' />
+ <xs:element name='ClaimTypesRequested' type='tns:ClaimTypesRequestedType' />
+ <xs:element name="AutomaticPseudonyms" type="xs:boolean"/>
+ <xs:element name='TargetScopes' type='tns:EndpointType'/>
+
+ <!-- Section 3.1.2.2 -->
+ <xs:complexType name="SecurityTokenServiceType">
+ <xs:complexContent>
+ <xs:extension base="tns:WebServiceDescriptorType">
+ <xs:sequence>
+ <xs:element ref="tns:SecurityTokenServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
+ <xs:element ref="tns:SingleSignOutSubscriptionEndpoint" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="tns:PassiveRequestorEndpoint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="SecurityTokenServiceEndpoint" type="tns:EndpointType"/>
+ <xs:element name="SingleSignOutSubscriptionEndpoint" type="tns:EndpointType"/>
+ <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/>
+ <xs:element name="PassiveRequestorEndpoint" type="tns:EndpointType"/>
+
+ <!-- Section 3.1.2.3 -->
+ <xs:complexType name="PseudonymServiceType">
+ <xs:complexContent>
+ <xs:extension base="tns:WebServiceDescriptorType">
+ <xs:sequence>
+ <xs:element ref="tns:PseudonymServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
+ <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name="PseudonymServiceEndpoint" type="tns:EndpointType"/>
+ <!-- Defined above -->
+ <!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->
+
+ <!-- Section 3.1.2.4 -->
+ <xs:complexType name="AttributeServiceType">
+ <xs:complexContent>
+ <xs:extension base="tns:WebServiceDescriptorType">
+ <xs:sequence>
+ <xs:element ref="tns:AttributeServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
+ <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="AttributeServiceEndpoint" type="tns:EndpointType"/>
+ <!-- Defined above -->
+ <!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->
+
+ <!-- Section 3.1.2.5 -->
+ <xs:complexType name="ApplicationServiceType">
+ <xs:complexContent>
+ <xs:extension base="tns:WebServiceDescriptorType">
+ <xs:sequence>
+ <xs:element ref="tns:ApplicationServiceEndpoint" minOccurs="1" maxOccurs="unbounded"/>
+ <xs:element ref="tns:SingleSignOutNotificationEndpoint" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="tns:PassiveRequestorEndpoint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="ApplicationServiceEndpoint" type="tns:EndpointType"/>
+ <!-- Defined above -->
+ <!-- <xs:element name="SingleSignOutNotificationEndpoint" type="tns:EndpointType"/> -->
+ <!-- <xs:element name="PassiveRequestorEndpoint" type="tns:EndpointType"/> -->
+
+
+ <!-- Section 3.1.3 -->
+ <!-- Defined above -->
+ <!--<xs:element name='LogicalServiceNamesOffered' type='tns:LogicalServiceNamesOfferedType' />-->
+
+ <xs:complexType name='LogicalServiceNamesOfferedType' >
+ <xs:sequence>
+ <xs:element name='IssuerName' type='tns:IssuerNameType' minOccurs='1' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='IssuerNameType' >
+ <xs:attribute name='Uri' type='xs:anyURI' use='required' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 3.1.4 -->
+ <xs:element name='PsuedonymServiceEndpoints' type='tns:EndpointType' />
+ <xs:complexType name='EndpointType' >
+ <xs:sequence>
+ <xs:element ref='wsa:EndpointReference' minOccurs='1' maxOccurs='unbounded'/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <!-- Section 3.1.5 -->
+ <xs:element name='AttributeServiceEndpoints' type='tns:EndpointType' />
+
+ <!-- Section 3.1.6 -->
+ <xs:element name='SingleSignOutSubscriptionEndpoints' type='tns:EndpointType' />
+
+ <!-- Section 3.1.7 -->
+ <xs:element name='SingleSignOutNotificationEndpoints' type='tns:EndpointType' />
+
+ <!-- Section 3.1.8 -->
+ <!-- Defined above -->
+ <!--<xs:element name='TokenTypesOffered' type='tns:TokenTypesOfferedType' />-->
+ <xs:complexType name='TokenTypesOfferedType' >
+ <xs:sequence>
+ <xs:element name='TokenType' type='tns:TokenType' minOccurs='1' maxOccurs='unbounded' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='TokenType' >
+ <xs:sequence>
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute name='Uri' type='xs:anyURI' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 3.1.9 -->
+ <!-- Defined above -->
+ <!-- <xs:element name='ClaimTypesOffered' type='tns:ClaimTypesOfferedType' /> -->
+ <xs:complexType name='ClaimTypesOfferedType'>
+ <xs:sequence>
+ <xs:element ref='auth:ClaimType' minOccurs='1' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 3.1.10 -->
+ <!-- Defined above -->
+ <!-- <xs:element name='ClaimTypesRequested' ype='tns:ClaimTypesRequestedType' /> -->
+ <xs:complexType name='ClaimTypesRequestedType'>
+ <xs:sequence>
+ <xs:element ref='auth:ClaimType' minOccurs='1' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 3.1.11 -->
+ <!-- Defined above -->
+ <!--<xs:element name='ClaimDialectsOffered' type='tns:ClaimDialectsOfferedType' />-->
+ <xs:complexType name='ClaimDialectsOfferedType'>
+ <xs:sequence>
+ <xs:element name='ClaimDialect' type='tns:ClaimDialectType' minOccurs='1' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='ClaimDialectType' >
+ <xs:sequence>
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute name='Uri' type='xs:anyURI' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 3.1.12 -->
+ <!-- Defined above -->
+ <!-- <xs:element name='AutomaticPseudonyms' type='xs:boolean' /> -->
+
+ <!-- Section 3.1.13 -->
+ <xs:element name='PassiveRequestorEnpoints' type='tns:EndpointType'/>
+
+ <!-- Section 3.1.14 -->
+ <!-- Defined above -->
+ <!--<xs:element name='TargetScopes' type='tns:EndpointType'/>-->
+
+ <!-- Section 3.2.4 -->
+ <xs:element name='FederationMetadataHandler' type='tns:FederationMetadataHandlerType' />
+ <xs:complexType name='FederationMetadataHandlerType' >
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 4.1 -->
+ <xs:element name='SignOut' type='tns:SignOutType' />
+ <xs:complexType name='SignOutType' >
+ <xs:sequence>
+ <xs:element ref='tns:Realm' minOccurs='0' />
+ <xs:element name='SignOutBasis' type='tns:SignOutBasisType' minOccurs='1' maxOccurs='1' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute ref='wsu:Id' use='optional' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='SignOutBasisType' >
+ <xs:sequence>
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 4.2 -->
+ <xs:element name='Realm' type='xs:anyURI' />
+
+ <!-- Section 6.1 -->
+ <xs:element name='FilterPseudonyms' type='tns:FilterPseudonymsType' />
+ <xs:complexType name='FilterPseudonymsType' >
+ <xs:sequence>
+ <xs:element ref='tns:PseudonymBasis' minOccurs='0' maxOccurs='1' />
+ <xs:element ref='tns:RelativeTo' minOccurs='0' maxOccurs='1' />
+ <xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:element name='PseudonymBasis' type='tns:PseudonymBasisType' />
+ <xs:complexType name='PseudonymBasisType' >
+ <xs:sequence>
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:element name='RelativeTo' type='tns:RelativeToType' />
+ <xs:complexType name='RelativeToType' >
+ <xs:sequence>
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 6.2 -->
+ <xs:element name='Pseudonym' type='tns:PseudonymType' />
+
+ <xs:complexType name='PseudonymType' >
+ <xs:sequence>
+ <!--
+ *** Accurate content model is nondeterministic ***
+ <xs:element ref='tns:PseudonymBasis' minOccurs='1' maxOccurs='1' />
+ <xs:element ref='tns:RelativeTo' minOccurs='1' maxOccurs='1' />
+ <xs:element ref='wsu:Expires' minOccurs='0' maxOccurs='1' />
+ <xs:element ref='tns:SecurityToken' minOccurs='0' maxOccurs='unbounded' />
+ <xs:element ref='tns:ProofToken' minOccurs='0' maxOccurs='unbounded' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ -->
+
+ <xs:element ref='tns:PseudonymBasis' minOccurs='1' maxOccurs='1' />
+ <xs:element ref='tns:RelativeTo' minOccurs='1' maxOccurs='1' />
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:element name='SecurityToken' type='tns:SecurityTokenType' />
+ <xs:complexType name='SecurityTokenType' >
+ <xs:sequence>
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:element name='ProofToken' type='tns:ProofTokenType' />
+ <xs:complexType name='ProofTokenType' >
+ <xs:sequence>
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 7.1 -->
+ <xs:element name='RequestPseudonym' type='tns:RequestPseudonymType' />
+ <xs:complexType name='RequestPseudonymType' >
+ <xs:sequence>
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute name='SingleUse' type='xs:boolean' use='optional' />
+ <xs:attribute name='Lookup' type='xs:boolean' use='optional' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 8.1 -->
+ <xs:element name='ReferenceToken' type='tns:ReferenceTokenType' />
+ <xs:complexType name='ReferenceTokenType'>
+ <xs:sequence>
+ <xs:element name='ReferenceEPR' type='wsa:EndpointReferenceType' minOccurs='1' maxOccurs='unbounded' />
+ <xs:element name='ReferenceDigest' type='tns:ReferenceDigestType' minOccurs='0' maxOccurs='1' />
+ <xs:element name='ReferenceType' type='tns:AttributeExtensibleURI' minOccurs='0' maxOccurs='1' />
+ <xs:element name='SerialNo' type='tns:AttributeExtensibleURI' minOccurs='0' maxOccurs='1' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='ReferenceDigestType' >
+ <xs:simpleContent>
+ <xs:extension base='xs:base64Binary' >
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:complexType name='AttributeExtensibleURI' >
+ <xs:simpleContent>
+ <xs:extension base='xs:anyURI' >
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <!-- Section 8.2 -->
+ <xs:element name='FederationID' type='tns:AttributeExtensibleURI' />
+
+ <!-- Section 8.3 -->
+ <xs:element name='RequestProofToken' type='tns:RequestProofTokenType' />
+ <xs:complexType name='RequestProofTokenType' >
+ <xs:sequence>
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 8.4 -->
+ <xs:element name='ClientPseudonym' type='tns:ClientPseudonymType' />
+ <xs:complexType name='ClientPseudonymType' >
+ <xs:sequence>
+ <xs:element name='PPID' type='tns:AttributeExtensibleString' minOccurs='0' />
+ <xs:element name='DisplayName' type='tns:AttributeExtensibleString' minOccurs='0' />
+ <xs:element name='EMail' type='tns:AttributeExtensibleString' minOccurs='0' />
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='AttributeExtensibleString' >
+ <xs:simpleContent>
+ <xs:extension base='xs:string' >
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <!-- Section 8.5 -->
+ <xs:element name='Freshness' type='tns:Freshness' />
+ <xs:complexType name='Freshness'>
+ <xs:simpleContent>
+ <xs:extension base='xs:unsignedInt' >
+ <xs:attribute name='AllowCache' type='xs:boolean' use='optional' />
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <!-- Section 14.1 -->
+ <xs:element name='RequireReferenceToken' type='sp:TokenAssertionType' />
+ <xs:element name='ReferenceToken11' type='tns:AssertionType' />
+
+ <xs:complexType name='AssertionType' >
+ <xs:sequence>
+ <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <!-- Section 14.2 -->
+ <xs:element name='WebBinding' type='sp:NestedPolicyType' />
+ <xs:element name='AuthenticationToken' type='sp:NestedPolicyType' />
+ <!-- ReferenceToken defined above -->
+ <xs:element name='RequireSignedTokens' type='tns:AssertionType' />
+ <xs:element name='RequireBearerTokens' type='tns:AssertionType' />
+ <xs:element name='RequireSharedCookies' type='tns:AssertionType' />
+
+
+ <!-- Section 14.3 -->
+ <xs:element name='RequiresGenericClaimDialect' type='tns:AssertionType' />
+ <xs:element name='IssuesSpecificPolicyFault' type='tns:AssertionType' />
+ <xs:element name='AdditionalContextProcessed' type='tns:AssertionType' />
+
+
+</xs:schema>
+
diff --git a/schema/ws-securitypolicy-1.2.xsd b/schema/ws-securitypolicy-1.2.xsd new file mode 100644 index 0000000..fd170c2 --- /dev/null +++ b/schema/ws-securitypolicy-1.2.xsd @@ -0,0 +1,1204 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!--
+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.
+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.
+Copyright © OASIS Open 2002-2007. All Rights Reserved.
+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.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+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.
+-->
+<xs:schema
+ targetNamespace='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'
+ xmlns:tns='http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702'
+ xmlns:wsa="http://www.w3.org/2005/08/addressing"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ blockDefault="#all" >
+
+ <xs:import namespace="http://www.w3.org/2005/08/addressing" schemaLocation="ws-addr.xsd" />
+
+ <!--
+ 4. Protection Assertions
+ -->
+ <xs:element name="SignedParts" type="tns:SePartsType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 4.1.1 SignedParts Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="EncryptedParts" type="tns:SePartsType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 4.2.1 EncryptedParts Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="SePartsType">
+ <xs:sequence>
+ <xs:element name="Body" type="tns:EmptyType" minOccurs="0" />
+ <xs:element name="Header" type="tns:HeaderType" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element name="Attachments" type="tns:EmptyType" minOccurs="0" />
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+ <xs:complexType name="EmptyType" />
+ <xs:complexType name="HeaderType" >
+ <xs:attribute name="Name" type="xs:QName" use="optional" />
+ <xs:attribute name="Namespace" type="xs:anyURI" use="required" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="SignedElements" type="tns:SerElementsType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en" >
+ 4.1.2 SignedElements Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="EncryptedElements" type="tns:SerElementsType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 4.2.2 EncryptedElements Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequiredElements" type="tns:SerElementsType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en" >
+ 4.3.1 RequiredElements Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="SerElementsType">
+ <xs:sequence>
+ <xs:element name="XPath" type="xs:string" minOccurs="1" maxOccurs="unbounded" />
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>
+ </xs:sequence>
+ <xs:attribute name="XPathVersion" type="xs:anyURI" use="optional" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+ <!--
+ 5. Token Assertions
+ -->
+ <xs:attribute name="IncludeToken" type="tns:IncludeTokenOpenType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.1 Token Inclusion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:simpleType name="IncludeTokenOpenType">
+ <xs:union memberTypes="tns:IncludeTokenType xs:anyURI" />
+ </xs:simpleType>
+ <xs:simpleType name="IncludeTokenType">
+ <xs:restriction base="xs:anyURI" >
+ <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/Never" />
+ <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/Once" />
+ <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/AlwaysToRecipient" />
+ <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/AlwaysToInitiator" />
+ <xs:enumeration value="http://docs.oasis-open.org/ws-sx/ws-trust/200702/ws-securitypolicy/IncludeToken/Always" />
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="UsernameToken" type="tns:TokenAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en" >
+ 5.4.1 UsernameToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="TokenAssertionType">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element name="Issuer" type="wsa:EndpointReferenceType" />
+ <xs:element name="IssuerName" type="xs:anyURI" />
+ </xs:choice>
+ <!--
+ Actual content model is non-deterministic, hence wildcard. The following shows intended content model:
+ <xs:element ref="wsp:Policy" minOccurs="0" />
+ -->
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>
+ </xs:sequence>
+ <xs:attribute ref="tns:IncludeToken" use="optional" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="NoPassword" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.1 UsernameToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="HashPassword" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.1 UsernameToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssUsernameToken10" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.1 UsernameToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssUsernameToken11" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.1 UsernameToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- RequireDerivedKeys defined below. -->
+ <!-- RequireImpliedDerivedKeys defined below. -->
+ <!-- RequireExplicitDerivedKeys defined below. -->
+
+ <xs:complexType name="QNameAssertionType">
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="IssuedToken" type="tns:IssuedTokenType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.2 IssuedToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="IssuedTokenType">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element name="Issuer" type="wsa:EndpointReferenceType" />
+ <xs:element name="IssuerName" type="xs:anyURI" />
+ </xs:choice>
+ <xs:element name="RequestSecurityTokenTemplate" type="tns:RequestSecurityTokenTemplateType" />
+ <!--
+ Actual content model is non-deterministic, hence wildcard. The following shows intended content model:
+ <xs:element ref="wsp:Policy" minOccurs="0" />
+ -->
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />
+ </xs:sequence>
+ <xs:attribute ref="tns:IncludeToken" use="optional" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+ <xs:complexType name="RequestSecurityTokenTemplateType">
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />
+ </xs:sequence>
+ <xs:attribute name="TrustVersion" type="xs:anyURI" use="optional" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="RequireDerivedKeys" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.2 IssuedToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireImpliedDerivedKeys" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.2 IssuedToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireExplicitDerivedKeys" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.2 IssuedToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireExternalReference" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.2 IssuedToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireInternalReference" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.2 IssuedToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="X509Token" type="tns:TokenAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- RequireDerivedKeys defined above. -->
+ <!-- RequireImpliedDerivedKeys defined above. -->
+ <!-- RequireExplicitDerivedKeys defined above. -->
+
+ <xs:element name="RequireKeyIdentifierReference" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireIssuerSerialReference" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireEmbeddedTokenReference" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireThumbprintReference" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssX509V3Token10" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssX509Pkcs7Token10" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssX509PkiPathV1Token10" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssX509V1Token11" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssX509V3Token11" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssX509Pkcs7Token11" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssX509PkiPathV1Token11" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.3 X509Token Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="KerberosToken" type="tns:TokenAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.4 KerberosToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- RequireDerivedKeys defined above. -->
+ <!-- RequireImpliedDerivedKeys defined above. -->
+ <!-- RequireExplicitDerivedKeys defined above. -->
+ <!-- RequireKeyIdentifierReference defined above. -->
+
+ <xs:element name="WssKerberosV5ApReqToken11" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.4 KerberosToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssGssKerberosV5ApReqToken11" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.4 KerberosToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="SpnegoContextToken" type="tns:SpnegoContextTokenType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en" >
+ 5.4.5 SpnegoContextToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="SpnegoContextTokenType">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element name="Issuer" type="wsa:EndpointReferenceType" />
+ <xs:element name="IssuerName" type="xs:anyURI" />
+ </xs:choice>
+ <!--
+ Actual content model is non-deterministic, hence wildcard. The following shows intended content model:
+ <xs:element ref="wsp:Policy" minOccurs="0" />
+ -->
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />
+ </xs:sequence>
+ <xs:attribute ref="tns:IncludeToken" use="optional" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+ <!-- RequireDerivedKeys defined above. -->
+ <!-- RequireImpliedDerivedKeys defined above. -->
+ <!-- RequireExplicitDerivedKeys defined above. -->
+ <xs:element name="MustNotSendCancel" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.5 SpnegoContextToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustNotSendAmend" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.5 SpnegoContextToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustNotSendRenew" type="tns:QNameAssertionType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.5 SpnegoContextToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="SecurityContextToken" type="tns:TokenAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.6 SecurityContextToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- RequireDerivedKeys defined above. -->
+ <!-- RequireImpliedDerivedKeys defined above. -->
+ <!-- RequireExplicitDerivedKeys defined above. -->
+
+ <xs:element name="RequireExternalUriReference" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.6 SecurityContextToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="SC13SecurityContextToken" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.6 SecurityContextToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="SecureConversationToken" type="tns:SecureConversationTokenType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.7 SecureConversationToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="SecureConversationTokenType">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element name="Issuer" type="wsa:EndpointReferenceType" />
+ <xs:element name="IssuerName" type="xs:anyURI" />
+ </xs:choice>
+ <!--
+ Actual content model is non-deterministic, hence wildcard. The following shows intended content model:
+ <xs:element ref="wsp:Policy" minOccurs="0" />
+ -->
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />
+ </xs:sequence>
+ <xs:attribute ref="tns:IncludeToken" use="optional" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+ <!-- RequireDerivedKeys defined above. -->
+ <!-- RequireImpliedDerivedKeys defined above. -->
+ <!-- RequireExplicitDerivedKeys defined above. -->
+ <!-- RequireExternalUriReference defined above. -->
+ <!-- SC13SecurityContextToken defined above. -->
+ <!-- MustNotSendCancel defined above. -->
+ <!-- MustNotSendAmend defined above. -->
+ <!-- MustNotSendRenew defined above. -->
+
+ <xs:element name="BootstrapPolicy" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.7 SecureConversationToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="SamlToken" type="tns:TokenAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en" >
+ 5.4.8 SamlToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- RequireDerivedKeys defined above. -->
+ <!-- RequireImpliedDerivedKeys defined above. -->
+ <!-- RequireExplicitDerivedKeys defined above. -->
+ <!-- RequireKeyIdentifierReference defined above. -->
+
+ <xs:element name="WssSamlV11Token10" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.8 SamlToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssSamlV11Token11" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.8 SamlToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssSamlV20Token11" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.8 SamlToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="RelToken" type="tns:TokenAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.9 RelToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- RequireDerivedKeys defined above. -->
+ <!-- RequireImpliedDerivedKeys defined above. -->
+ <!-- RequireExplicitDerivedKeys defined above. -->
+ <!-- RequireKeyIdentifierReference defined above. -->
+
+ <xs:element name="WssRelV10Token10" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.9 RelToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssRelV20Token10" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.9 RelToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssRelV10Token11" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.9 RelToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="WssRelV20Token11" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.9 RelToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="HttpsToken" type="tns:TokenAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.10 HttpsToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="HttpBasicAuthentication" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.10 HttpsToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="HttpDigestAuthentication" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.10 HttpsToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireClientCertificate" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.10 HttpsToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="KeyValueToken" type="tns:KeyValueTokenType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.11 KeyValueToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="KeyValueTokenType">
+ <xs:sequence>
+ <!--
+ Actual content model is non-deterministic, hence wildcard. The following shows intended content model:
+ <xs:element ref="wsp:Policy" minOccurs="0" />
+ -->
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />
+ </xs:sequence>
+ <xs:attribute ref="tns:IncludeToken" use="optional" />
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+ <xs:element name="RsaKeyValue" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 5.4.11 KeyValueToken Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <!--
+ 7. Security Binding Assertions
+ -->
+ <xs:element name="AlgorithmSuite" type="tns:NestedPolicyType" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="NestedPolicyType">
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##any" processContents="lax" />
+ </xs:complexType>
+
+ <xs:element name="Basic256" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic192" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic128" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="TripleDes" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic256Rsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic192Rsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic128Rsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="TripleDesRsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic256Sha256" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic192Sha256" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic128Sha256" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="TripleDesSha256" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic256Sha256Rsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic192Sha256Rsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Basic128Sha256Rsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="TripleDesSha256Rsa15" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="InclusiveC14N" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="SOAPNormalization10" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="STRTransform10" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="XPath10" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="XPathFilter20" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="AbsXPath" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.1 AlgorithmSuite Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="Layout" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.2 Layout Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="Strict" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.2 Layout Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="Lax" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.2 Layout Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="LaxTsFirst" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.2 Layout Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="LaxTsLast" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.2 Layout Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="TransportBinding" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.3 TransportBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="TransportToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.3 TransportBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- Layout defined above. -->
+
+ <xs:element name="IncludeTimestamp" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.3 TransportBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="SymmetricBinding" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="EncryptionToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="SignatureToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8=7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="ProtectionToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- Layout defined above. -->
+ <!-- IncludeTimestamp defined above. -->
+
+ <xs:element name="EncryptBeforeSigning" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="EncryptSignature" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="ProtectTokens" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="OnlySignEntireHeadersAndBody" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.4 SymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="AsymmetricBinding" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.5 AsymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="InitiatorToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.5 AsymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="InitiatorSignatureToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.5 AsymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="InitiatorEncryptionToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.5 AsymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="RecipientToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.5 AsymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="RecipientSignatureToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.5 AsymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="RecipientEncryptionToken" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 7.5 AsymmetricBinding Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- Layout defined above. -->
+ <!-- IncludeTimestamp defined above. -->
+ <!-- EncryptBeforeSigning defined above. -->
+ <!-- EncryptSignature defined above. -->
+ <!-- ProtectTokens defined above. -->
+ <!-- OnlySignEntireHeadersAndBody defined above. -->
+
+ <!--
+ 8. Supporting Tokens
+ -->
+ <xs:element name="SupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.1 SupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <xs:element name="SignedSupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.2 SignedSupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <xs:element name="EndorsingSupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.3 EndorsingSupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <xs:element name="SignedEndorsingSupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.4 SignedEndorsingSupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <xs:element name="SignedEncryptedSupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.5 SignedEncryptedSupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <xs:element name="EncryptedSupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.6 EncryptedSupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <xs:element name="EndorsingEncryptedSupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.7 EndorsingEncryptedSupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <xs:element name="SignedEndorsingEncryptedSupportingTokens" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 8.8 SignedEndorsingEncryptedSupportingTokens Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- AlgorithmSuite defined above. -->
+ <!-- SignedParts defined above. -->
+ <!-- SignedElements defined above. -->
+ <!-- EncryptedParts defined above. -->
+ <!-- EncryptedElements defined above. -->
+
+ <!--
+ 9. WSS: SOAP Message Security Options
+ -->
+ <xs:element name="Wss10" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.1 Wss10 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="MustSupportRefKeyIdentifier" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.1 Wss10 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustSupportRefIssuerSerial" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.1 Wss10 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustSupportRefExternalURI" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.1 Wss10 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustSupportRefEmbeddedToken" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.1 Wss10 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="Wss11" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.2 Wss11 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <!-- MustSupportRefKeyIdentifier defined above. -->
+ <!-- MustSupportRefIssuerSerial defined above. -->
+ <!-- MustSupportRefExternalURI defined above. -->
+ <!-- MustSupportRefEmbeddedToken defined above. -->
+
+ <xs:element name="MustSupportRefThumbprint" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.2 Wss11 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustSupportRefEncryptedKey" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.2 Wss11 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireSignatureConfirmation" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 9.2 Wss11 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <!--
+ 10. WS-Trust Options
+ -->
+ <xs:element name="Trust13" type="tns:NestedPolicyType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="MustSupportClientChallenge" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustSupportServerChallenge" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireClientEntropy" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireServerEntropy" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="MustSupportIssuedTokens" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireRequestSecurityTokenCollection" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="RequireAppiesTo" type="tns:QNameAssertionType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 10.1 Trust13 Assertion
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+</xs:schema>
diff --git a/schema/xenc-schema.xsd b/schema/xenc-schema.xsd new file mode 100644 index 0000000..64de6f2 --- /dev/null +++ b/schema/xenc-schema.xsd @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="utf-8"?> + + +<schema xmlns='http://www.w3.org/2001/XMLSchema' version='1.0' + xmlns:xenc='http://www.w3.org/2001/04/xmlenc#' + xmlns:ds='http://www.w3.org/2000/09/xmldsig#' + targetNamespace='http://www.w3.org/2001/04/xmlenc#' + elementFormDefault='qualified'> + + <import namespace='http://www.w3.org/2000/09/xmldsig#' schemaLocation='xmldsig-core-schema.xsd'/> + + <complexType name='EncryptedType' abstract='true'> + <sequence> + <element name='EncryptionMethod' type='xenc:EncryptionMethodType' + minOccurs='0'/> + <element ref='ds:KeyInfo' minOccurs='0'/> + <element ref='xenc:CipherData'/> + <element ref='xenc:EncryptionProperties' minOccurs='0'/> + </sequence> + <attribute name='Id' type='ID' use='optional'/> + <attribute name='Type' type='anyURI' use='optional'/> + <attribute name='MimeType' type='string' use='optional'/> + <attribute name='Encoding' type='anyURI' use='optional'/> + </complexType> + + <complexType name='EncryptionMethodType' mixed='true'> + <sequence> + <element name='KeySize' minOccurs='0' type='xenc:KeySizeType'/> + <element name='OAEPparams' minOccurs='0' type='base64Binary'/> + <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/> + </sequence> + <attribute name='Algorithm' type='anyURI' use='required'/> + </complexType> + + <simpleType name='KeySizeType'> + <restriction base="integer"/> + </simpleType> + + <element name='CipherData' type='xenc:CipherDataType'/> + <complexType name='CipherDataType'> + <choice> + <element name='CipherValue' type='base64Binary'/> + <element ref='xenc:CipherReference'/> + </choice> + </complexType> + + <element name='CipherReference' type='xenc:CipherReferenceType'/> + <complexType name='CipherReferenceType'> + <choice> + <element name='Transforms' type='xenc:TransformsType' minOccurs='0'/> + </choice> + <attribute name='URI' type='anyURI' use='required'/> + </complexType> + + <complexType name='TransformsType'> + <sequence> + <element ref='ds:Transform' maxOccurs='unbounded'/> + </sequence> + </complexType> + + + <element name='EncryptedData' type='xenc:EncryptedDataType'/> + <complexType name='EncryptedDataType'> + <complexContent> + <extension base='xenc:EncryptedType'> + </extension> + </complexContent> + </complexType> + + <!-- Children of ds:KeyInfo --> + + <element name='EncryptedKey' type='xenc:EncryptedKeyType'/> + <complexType name='EncryptedKeyType'> + <complexContent> + <extension base='xenc:EncryptedType'> + <sequence> + <element ref='xenc:ReferenceList' minOccurs='0'/> + <element name='CarriedKeyName' type='string' minOccurs='0'/> + </sequence> + <attribute name='Recipient' type='string' + use='optional'/> + </extension> + </complexContent> + </complexType> + + <element name="AgreementMethod" type="xenc:AgreementMethodType"/> + <complexType name="AgreementMethodType" mixed="true"> + <sequence> + <element name="KA-Nonce" minOccurs="0" type="base64Binary"/> + <!-- <element ref="ds:DigestMethod" minOccurs="0"/> --> + <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/> + <element name="OriginatorKeyInfo" minOccurs="0" type="ds:KeyInfoType"/> + <element name="RecipientKeyInfo" minOccurs="0" type="ds:KeyInfoType"/> + </sequence> + <attribute name="Algorithm" type="anyURI" use="required"/> + </complexType> + + <!-- End Children of ds:KeyInfo --> + + <element name='ReferenceList'> + <complexType> + <choice minOccurs='1' maxOccurs='unbounded'> + <element name='DataReference' type='xenc:ReferenceType'/> + <element name='KeyReference' type='xenc:ReferenceType'/> + </choice> + </complexType> + </element> + + <complexType name='ReferenceType'> + <sequence> + <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/> + </sequence> + <attribute name='URI' type='anyURI' use='required'/> + </complexType> + + + <element name='EncryptionProperties' type='xenc:EncryptionPropertiesType'/> + <complexType name='EncryptionPropertiesType'> + <sequence> + <element ref='xenc:EncryptionProperty' maxOccurs='unbounded'/> + </sequence> + <attribute name='Id' type='ID' use='optional'/> + </complexType> + + <element name='EncryptionProperty' type='xenc:EncryptionPropertyType'/> + <complexType name='EncryptionPropertyType' mixed='true'> + <choice maxOccurs='unbounded'> + <any namespace='##other' processContents='lax'/> + </choice> + <attribute name='Target' type='anyURI' use='optional'/> + <attribute name='Id' type='ID' use='optional'/> + <anyAttribute namespace="http://www.w3.org/XML/1998/namespace"/> + </complexType> + +</schema> + diff --git a/schema/xml.xsd b/schema/xml.xsd new file mode 100644 index 0000000..aea7d0d --- /dev/null +++ b/schema/xml.xsd @@ -0,0 +1,287 @@ +<?xml version='1.0'?> +<?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?> +<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns ="http://www.w3.org/1999/xhtml" + xml:lang="en"> + + <xs:annotation> + <xs:documentation> + <div> + <h1>About the XML namespace</h1> + + <div class="bodytext"> + <p> + This schema document describes the XML namespace, in a form + suitable for import by other schema documents. + </p> + <p> + See <a href="http://www.w3.org/XML/1998/namespace.html"> + http://www.w3.org/XML/1998/namespace.html</a> and + <a href="http://www.w3.org/TR/REC-xml"> + http://www.w3.org/TR/REC-xml</a> for information + about this namespace. + </p> + <p> + Note that local names in this namespace are intended to be + defined only by the World Wide Web Consortium or its subgroups. + The names currently defined in this namespace are listed below. + They should not be used with conflicting semantics by any Working + Group, specification, or document instance. + </p> + <p> + See further below in this document for more information about <a + href="#usage">how to refer to this schema document from your own + XSD schema documents</a> and about <a href="#nsversioning">the + namespace-versioning policy governing this schema document</a>. + </p> + </div> + </div> + </xs:documentation> + </xs:annotation> + + <xs:attribute name="lang"> + <xs:annotation> + <xs:documentation> + <div> + + <h3>lang (as an attribute name)</h3> + <p> + denotes an attribute whose value + is a language code for the natural language of the content of + any element; its value is inherited. This name is reserved + by virtue of its definition in the XML specification.</p> + + </div> + <div> + <h4>Notes</h4> + <p> + Attempting to install the relevant ISO 2- and 3-letter + codes as the enumerated possible values is probably never + going to be a realistic possibility. + </p> + <p> + See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt"> + http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a> + and the IANA language subtag registry at + <a href="http://www.iana.org/assignments/language-subtag-registry"> + http://www.iana.org/assignments/language-subtag-registry</a> + for further information. + </p> + <p> + The union allows for the 'un-declaration' of xml:lang with + the empty string. + </p> + </div> + </xs:documentation> + </xs:annotation> + <xs:simpleType> + <xs:union memberTypes="xs:language"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value=""/> + </xs:restriction> + </xs:simpleType> + </xs:union> + </xs:simpleType> + </xs:attribute> + + <xs:attribute name="space"> + <xs:annotation> + <xs:documentation> + <div> + + <h3>space (as an attribute name)</h3> + <p> + denotes an attribute whose + value is a keyword indicating what whitespace processing + discipline is intended for the content of the element; its + value is inherited. This name is reserved by virtue of its + definition in the XML specification.</p> + + </div> + </xs:documentation> + </xs:annotation> + <xs:simpleType> + <xs:restriction base="xs:NCName"> + <xs:enumeration value="default"/> + <xs:enumeration value="preserve"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + + <xs:attribute name="base" type="xs:anyURI"> <xs:annotation> + <xs:documentation> + <div> + + <h3>base (as an attribute name)</h3> + <p> + denotes an attribute whose value + provides a URI to be used as the base for interpreting any + relative URIs in the scope of the element on which it + appears; its value is inherited. This name is reserved + by virtue of its definition in the XML Base specification.</p> + + <p> + See <a + href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a> + for information about this attribute. + </p> + </div> + </xs:documentation> + </xs:annotation> + </xs:attribute> + + <xs:attribute name="id" type="xs:ID"> + <xs:annotation> + <xs:documentation> + <div> + + <h3>id (as an attribute name)</h3> + <p> + denotes an attribute whose value + should be interpreted as if declared to be of type ID. + This name is reserved by virtue of its definition in the + xml:id specification.</p> + + <p> + See <a + href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a> + for information about this attribute. + </p> + </div> + </xs:documentation> + </xs:annotation> + </xs:attribute> + + <xs:attributeGroup name="specialAttrs"> + <xs:attribute ref="xml:base"/> + <xs:attribute ref="xml:lang"/> + <xs:attribute ref="xml:space"/> + <xs:attribute ref="xml:id"/> + </xs:attributeGroup> + + <xs:annotation> + <xs:documentation> + <div> + + <h3>Father (in any context at all)</h3> + + <div class="bodytext"> + <p> + denotes Jon Bosak, the chair of + the original XML Working Group. This name is reserved by + the following decision of the W3C XML Plenary and + XML Coordination groups: + </p> + <blockquote> + <p> + In appreciation for his vision, leadership and + dedication the W3C XML Plenary on this 10th day of + February, 2000, reserves for Jon Bosak in perpetuity + the XML name "xml:Father". + </p> + </blockquote> + </div> + </div> + </xs:documentation> + </xs:annotation> + + <xs:annotation> + <xs:documentation> + <div xml:id="usage" id="usage"> + <h2><a name="usage">About this schema document</a></h2> + + <div class="bodytext"> + <p> + This schema defines attributes and an attribute group suitable + for use by schemas wishing to allow <code>xml:base</code>, + <code>xml:lang</code>, <code>xml:space</code> or + <code>xml:id</code> attributes on elements they define. + </p> + <p> + To enable this, such a schema must import this schema for + the XML namespace, e.g. as follows: + </p> + <pre> + <schema . . .> + . . . + <import namespace="http://www.w3.org/XML/1998/namespace" + schemaLocation="http://www.w3.org/2001/xml.xsd"/> + </pre> + <p> + or + </p> + <pre> + <import namespace="http://www.w3.org/XML/1998/namespace" + schemaLocation="http://www.w3.org/2009/01/xml.xsd"/> + </pre> + <p> + Subsequently, qualified reference to any of the attributes or the + group defined below will have the desired effect, e.g. + </p> + <pre> + <type . . .> + . . . + <attributeGroup ref="xml:specialAttrs"/> + </pre> + <p> + will define a type which will schema-validate an instance element + with any of those attributes. + </p> + </div> + </div> + </xs:documentation> + </xs:annotation> + + <xs:annotation> + <xs:documentation> + <div id="nsversioning" xml:id="nsversioning"> + <h2><a name="nsversioning">Versioning policy for this schema document</a></h2> + <div class="bodytext"> + <p> + In keeping with the XML Schema WG's standard versioning + policy, this schema document will persist at + <a href="http://www.w3.org/2009/01/xml.xsd"> + http://www.w3.org/2009/01/xml.xsd</a>. + </p> + <p> + At the date of issue it can also be found at + <a href="http://www.w3.org/2001/xml.xsd"> + http://www.w3.org/2001/xml.xsd</a>. + </p> + <p> + The schema document at that URI may however change in the future, + in order to remain compatible with the latest version of XML + Schema itself, or with the XML namespace itself. In other words, + if the XML Schema or XML namespaces change, the version of this + document at <a href="http://www.w3.org/2001/xml.xsd"> + http://www.w3.org/2001/xml.xsd + </a> + will change accordingly; the version at + <a href="http://www.w3.org/2009/01/xml.xsd"> + http://www.w3.org/2009/01/xml.xsd + </a> + will not change. + </p> + <p> + Previous dated (and unchanging) versions of this schema + document are at: + </p> + <ul> + <li><a href="http://www.w3.org/2009/01/xml.xsd"> + http://www.w3.org/2009/01/xml.xsd</a></li> + <li><a href="http://www.w3.org/2007/08/xml.xsd"> + http://www.w3.org/2007/08/xml.xsd</a></li> + <li><a href="http://www.w3.org/2004/10/xml.xsd"> + http://www.w3.org/2004/10/xml.xsd</a></li> + <li><a href="http://www.w3.org/2001/03/xml.xsd"> + http://www.w3.org/2001/03/xml.xsd</a></li> + </ul> + </div> + </div> + </xs:documentation> + </xs:annotation> + +</xs:schema> + diff --git a/schema/xmldsig-core-schema.xsd b/schema/xmldsig-core-schema.xsd new file mode 100644 index 0000000..8e55626 --- /dev/null +++ b/schema/xmldsig-core-schema.xsd @@ -0,0 +1,317 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE schema + [ + <!ATTLIST schema + xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#"> + <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'> + <!ENTITY % p ''> + <!ENTITY % s ''> + ]> + +<!-- Schema for XML Signatures + http://www.w3.org/2000/09/xmldsig# + $Revision: 1.1 $ on $Date: 2005/03/16 17:40:08 $ by $Author: iay $ + + Copyright 2001 The Internet Society and W3C (Massachusetts Institute + of Technology, Institut National de Recherche en Informatique et en + Automatique, Keio University). All Rights Reserved. + http://www.w3.org/Consortium/Legal/ + + This document is governed by the W3C Software License [1] as described + in the FAQ [2]. + + [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720 + [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD +--> + + +<schema xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + targetNamespace="http://www.w3.org/2000/09/xmldsig#" + version="0.1" elementFormDefault="qualified"> + +<!-- Basic Types Defined for Signatures --> + +<simpleType name="CryptoBinary"> + <restriction base="base64Binary"> + </restriction> +</simpleType> + +<!-- Start Signature --> + +<element name="Signature" type="ds:SignatureType"/> +<complexType name="SignatureType"> + <sequence> + <element ref="ds:SignedInfo"/> + <element ref="ds:SignatureValue"/> + <element ref="ds:KeyInfo" minOccurs="0"/> + <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <attribute name="Id" type="ID" use="optional"/> +</complexType> + + <element name="SignatureValue" type="ds:SignatureValueType"/> + <complexType name="SignatureValueType"> + <simpleContent> + <extension base="base64Binary"> + <attribute name="Id" type="ID" use="optional"/> + </extension> + </simpleContent> + </complexType> + +<!-- Start SignedInfo --> + +<element name="SignedInfo" type="ds:SignedInfoType"/> +<complexType name="SignedInfoType"> + <sequence> + <element ref="ds:CanonicalizationMethod"/> + <element ref="ds:SignatureMethod"/> + <element ref="ds:Reference" maxOccurs="unbounded"/> + </sequence> + <attribute name="Id" type="ID" use="optional"/> +</complexType> + + <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/> + <complexType name="CanonicalizationMethodType" mixed="true"> + <sequence> + <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> + <!-- (0,unbounded) elements from (1,1) namespace --> + </sequence> + <attribute name="Algorithm" type="anyURI" use="required"/> + </complexType> + + <element name="SignatureMethod" type="ds:SignatureMethodType"/> + <complexType name="SignatureMethodType" mixed="true"> + <sequence> + <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/> + <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/> + <!-- (0,unbounded) elements from (1,1) external namespace --> + </sequence> + <attribute name="Algorithm" type="anyURI" use="required"/> + </complexType> + +<!-- Start Reference --> + +<element name="Reference" type="ds:ReferenceType"/> +<complexType name="ReferenceType"> + <sequence> + <element ref="ds:Transforms" minOccurs="0"/> + <element ref="ds:DigestMethod"/> + <element ref="ds:DigestValue"/> + </sequence> + <attribute name="Id" type="ID" use="optional"/> + <attribute name="URI" type="anyURI" use="optional"/> + <attribute name="Type" type="anyURI" use="optional"/> +</complexType> + + <element name="Transforms" type="ds:TransformsType"/> + <complexType name="TransformsType"> + <sequence> + <element ref="ds:Transform" maxOccurs="unbounded"/> + </sequence> + </complexType> + + <element name="Transform" type="ds:TransformType"/> + <complexType name="TransformType" mixed="true"> + <choice minOccurs="0" maxOccurs="unbounded"> + <any namespace="##other" processContents="lax"/> + <!-- (1,1) elements from (0,unbounded) namespaces --> + <element name="XPath" type="string"/> + </choice> + <attribute name="Algorithm" type="anyURI" use="required"/> + </complexType> + +<!-- End Reference --> + +<element name="DigestMethod" type="ds:DigestMethodType"/> +<complexType name="DigestMethodType" mixed="true"> + <sequence> + <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </sequence> + <attribute name="Algorithm" type="anyURI" use="required"/> +</complexType> + +<element name="DigestValue" type="ds:DigestValueType"/> +<simpleType name="DigestValueType"> + <restriction base="base64Binary"/> +</simpleType> + +<!-- End SignedInfo --> + +<!-- Start KeyInfo --> + +<element name="KeyInfo" type="ds:KeyInfoType"/> +<complexType name="KeyInfoType" mixed="true"> + <choice maxOccurs="unbounded"> + <element ref="ds:KeyName"/> + <element ref="ds:KeyValue"/> + <element ref="ds:RetrievalMethod"/> + <element ref="ds:X509Data"/> + <element ref="ds:PGPData"/> + <element ref="ds:SPKIData"/> + <element ref="ds:MgmtData"/> + <any processContents="lax" namespace="##other"/> + <!-- (1,1) elements from (0,unbounded) namespaces --> + </choice> + <attribute name="Id" type="ID" use="optional"/> +</complexType> + + <element name="KeyName" type="string"/> + <element name="MgmtData" type="string"/> + + <element name="KeyValue" type="ds:KeyValueType"/> + <complexType name="KeyValueType" mixed="true"> + <choice> + <element ref="ds:DSAKeyValue"/> + <element ref="ds:RSAKeyValue"/> + <any namespace="##other" processContents="lax"/> + </choice> + </complexType> + + <element name="RetrievalMethod" type="ds:RetrievalMethodType"/> + <complexType name="RetrievalMethodType"> + <sequence> + <element ref="ds:Transforms" minOccurs="0"/> + </sequence> + <attribute name="URI" type="anyURI"/> + <attribute name="Type" type="anyURI" use="optional"/> + </complexType> + +<!-- Start X509Data --> + +<element name="X509Data" type="ds:X509DataType"/> +<complexType name="X509DataType"> + <sequence maxOccurs="unbounded"> + <choice> + <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/> + <element name="X509SKI" type="base64Binary"/> + <element name="X509SubjectName" type="string"/> + <element name="X509Certificate" type="base64Binary"/> + <element name="X509CRL" type="base64Binary"/> + <any namespace="##other" processContents="lax"/> + </choice> + </sequence> +</complexType> + +<complexType name="X509IssuerSerialType"> + <sequence> + <element name="X509IssuerName" type="string"/> + <element name="X509SerialNumber" type="integer"/> + </sequence> +</complexType> + +<!-- End X509Data --> + +<!-- Begin PGPData --> + +<element name="PGPData" type="ds:PGPDataType"/> +<complexType name="PGPDataType"> + <choice> + <sequence> + <element name="PGPKeyID" type="base64Binary"/> + <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/> + <any namespace="##other" processContents="lax" minOccurs="0" + maxOccurs="unbounded"/> + </sequence> + <sequence> + <element name="PGPKeyPacket" type="base64Binary"/> + <any namespace="##other" processContents="lax" minOccurs="0" + maxOccurs="unbounded"/> + </sequence> + </choice> +</complexType> + +<!-- End PGPData --> + +<!-- Begin SPKIData --> + +<element name="SPKIData" type="ds:SPKIDataType"/> +<complexType name="SPKIDataType"> + <sequence maxOccurs="unbounded"> + <element name="SPKISexp" type="base64Binary"/> + <any namespace="##other" processContents="lax" minOccurs="0"/> + </sequence> +</complexType> + +<!-- End SPKIData --> + +<!-- End KeyInfo --> + +<!-- Start Object (Manifest, SignatureProperty) --> + +<element name="Object" type="ds:ObjectType"/> +<complexType name="ObjectType" mixed="true"> + <sequence minOccurs="0" maxOccurs="unbounded"> + <any namespace="##any" processContents="lax"/> + </sequence> + <attribute name="Id" type="ID" use="optional"/> + <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet --> + <attribute name="Encoding" type="anyURI" use="optional"/> +</complexType> + +<element name="Manifest" type="ds:ManifestType"/> +<complexType name="ManifestType"> + <sequence> + <element ref="ds:Reference" maxOccurs="unbounded"/> + </sequence> + <attribute name="Id" type="ID" use="optional"/> +</complexType> + +<element name="SignatureProperties" type="ds:SignaturePropertiesType"/> +<complexType name="SignaturePropertiesType"> + <sequence> + <element ref="ds:SignatureProperty" maxOccurs="unbounded"/> + </sequence> + <attribute name="Id" type="ID" use="optional"/> +</complexType> + + <element name="SignatureProperty" type="ds:SignaturePropertyType"/> + <complexType name="SignaturePropertyType" mixed="true"> + <choice maxOccurs="unbounded"> + <any namespace="##other" processContents="lax"/> + <!-- (1,1) elements from (1,unbounded) namespaces --> + </choice> + <attribute name="Target" type="anyURI" use="required"/> + <attribute name="Id" type="ID" use="optional"/> + </complexType> + +<!-- End Object (Manifest, SignatureProperty) --> + +<!-- Start Algorithm Parameters --> + +<simpleType name="HMACOutputLengthType"> + <restriction base="integer"/> +</simpleType> + +<!-- Start KeyValue Element-types --> + +<element name="DSAKeyValue" type="ds:DSAKeyValueType"/> +<complexType name="DSAKeyValueType"> + <sequence> + <sequence minOccurs="0"> + <element name="P" type="ds:CryptoBinary"/> + <element name="Q" type="ds:CryptoBinary"/> + </sequence> + <element name="G" type="ds:CryptoBinary" minOccurs="0"/> + <element name="Y" type="ds:CryptoBinary"/> + <element name="J" type="ds:CryptoBinary" minOccurs="0"/> + <sequence minOccurs="0"> + <element name="Seed" type="ds:CryptoBinary"/> + <element name="PgenCounter" type="ds:CryptoBinary"/> + </sequence> + </sequence> +</complexType> + +<element name="RSAKeyValue" type="ds:RSAKeyValueType"/> +<complexType name="RSAKeyValueType"> + <sequence> + <element name="Modulus" type="ds:CryptoBinary"/> + <element name="Exponent" type="ds:CryptoBinary"/> + </sequence> +</complexType> + +<!-- End KeyValue Element-types --> + +<!-- End Signature --> + +</schema> diff --git a/scripts/bump-tag b/scripts/bump-tag new file mode 100755 index 0000000..af4ee40 --- /dev/null +++ b/scripts/bump-tag @@ -0,0 +1,46 @@ +#!/bin/sh + +set -e + +test -f .env && . ./.env + +git pull + +deftag=`basename $PWD` +tagpfx=${tag:="$deftag"} + +last_tag=`git tag -l "${tagpfx}-*"|sort|tail -1` + +echo "Verifying last tag $last_tag:" +(git tag -v $last_tag | grep ^gpg:) || true +# again to not mask exit status of git with grep +git tag -v $last_tag > /dev/null 2>&1 +echo "" + +echo "Differences between tag $last_tag and what you are about to sign:" +PAGER=cat git diff $last_tag..master + +iter=1 +ok= +while test -z "$ok"; do + this_tag=$(date +${tagpfx}-%Y-%m-%d-v`printf "%02d" $iter`) + iter=`expr $iter + 1` + case `(echo $this_tag; echo $last_tag) | sort | tail -1` in + $last_tag) + ;; + $this_tag) + ok=yes + ;; + esac +done + +echo "" +echo "Using new tag $this_tag" +echo ONLY SIGN IF YOU APPROVE OF VERIFICATION AND DIFF ABOVE + +# GITTAGEXTRA is for putting things like "-u 2117364A" + +git tag $GITTAGEXTRA -m bump. -s $this_tag + +git push +git push --tags diff --git a/scripts/do-update.sh b/scripts/do-update.sh new file mode 100755 index 0000000..555d9ab --- /dev/null +++ b/scripts/do-update.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cd /var/cache/metadata_r1 && make update diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh new file mode 100755 index 0000000..3d97561 --- /dev/null +++ b/scripts/get-metadata.sh @@ -0,0 +1,80 @@ +#!/bin/bash +# +# Fetch Service Provider metadata and save into entityid filename +# + +error() +{ + echo "Error: $*" 1>&2 + exit 1 +} + +metadataurl=$1 +if [ -z "$metadataurl" ] ; then + cat <<EOF +Usage: `basename $0` <metadataurl> +Ex: `basename $0` https://shibsp.mysite.com/Shibboleth.sso/Metadata + `basename $0` https://shibidp.mysite.com/idp/profile/Metadata/SAML + `basename $0` some-downloaded-metadata.xml + `basename $0` reep:<entityid> + `basename $0` mdq:<entityid> + `basename $0` <hostname> (tries to pull from standard locations) +EOF + exit 1 +fi + +script_cwd=`dirname "$0"` +if test -d md ; then + echo "Moving into md/" + cd md + echo "$script_cwd" | grep -q ^/ || script_cwd=../$script_cwd +fi + +if echo "$metadataurl" | grep -qE '^http://|^https://' ; then + metadata=`curl -L -s -k -f "$metadataurl"` +elif echo "$metadataurl" | grep -qE '^reep:' ; then + id=`echo -n "$metadataurl" | sed 's/^reep://' | sha1sum | awk '{print $1}'` + metadataurl="http://md.reep.refeds.org/entities/%7Bsha1%7D$id" + metadata=`curl -L -s -k -f "$metadataurl"` +elif echo "$metadataurl" | grep -qE '^mdq:' ; then + id=`echo -n "$metadataurl" | sed 's/^mdq://' | sha1sum | awk '{print $1}'` + metadataurl="$MDQ/%7Bsha1%7D$id" + metadata=`curl -L -s -k -f "$metadataurl"` +else + if [ -s "${metadataurl}" ]; then + metadata=`cat "$metadataurl"` + else + urls="https://${metadataurl}/idp/shibboleth https://${metadataurl}/Shibboleth.sso/Metadata https://${metadataurl}/saml/index/sp-metadata https://${metadataurl}/saml/metadata" + for i in ${urls}; do + metadata=`curl -L -s -k -f "${i}"` + [ -n "${metadata}" ] && break + done + fi +fi +[ -n "$metadata" ] || error "Failed to fetch metadata from $metadataurl" + +entityid=`echo "$metadata" | sed -n 's/.*entityID=['\''"]\([^"]*\)['\''"].*/\1/p'` +[ -n "$entityid" ] || error "Failed to find entityID in metadata" +[ `echo "$entityid" | wc -l` = 1 ] || error "Multiple entityid:s found: `echo $entityid`" + +entityidfn=`echo "$entityid" | sed 's;https*://;;' | tr 'A-Z' 'a-z' | sed 's;/$;;' | sed 's/[^a-z0-9_.-]/-/g' | sed 's/\.xml$//;s/$/.xml/'` +[ -n "$entityidfn" ] || error "Failed to generate filename from entityid $entityid" + +[ -r "$entityidfn" ] && new=false || new=true +if $new ; then + echo -n "Save metadata into $entityidfn [Y/n]? " +else + echo -n "Replace $entityidfn with metadata [Y/n]? " +fi +read x +case $x in + Y|y|"") + echo "$metadata" > $entityidfn + tmp=`mktemp` + xsltproc $script_cwd/../xslt/clean-entitydescriptor.xsl ${entityidfn} > ${tmp} && mv ${tmp} ${entityidfn} + ;; + *) + echo "Nothing done" + ;; +esac + diff --git a/scripts/tidy b/scripts/tidy new file mode 100755 index 0000000..0cbd3e8 --- /dev/null +++ b/scripts/tidy @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Tidy one XML file +# +if [ -z "$1" ]; then + echo "Usage $0 <file to tidy>" + exit +fi + +if [ ! -r $1 ]; then + echo "Cant find $1" + exit +fi + +xsltproc xslt/clean-entitydescriptor.xsl $1 > $1.c && mv $1.c $1 + diff --git a/scripts/update-trust b/scripts/update-trust new file mode 100755 index 0000000..9ff7e78 --- /dev/null +++ b/scripts/update-trust @@ -0,0 +1,29 @@ +#!/bin/bash + +export GNUPGHOME=/etc/metadata/gnupg +mkdir -p $GNUPGHOME +chmod 0700 $GNUPGHOME +export GPG=gpg2 + +# Install new keys discovered in the keys directory +for k in keys/*.pub; do + fp=`$GPG --with-colons --with-fingerprint < $k | awk -F: '$1 == "pub" {print $5}'` + fp_in_db=`$GPG --with-colons --fingerprint | grep ":$fp:"` + if [ "x`echo $fp_in_db | grep '^pub:e:'`" != "x" ]; then + echo "$0: Key expired, will re-import it from $k" + $GPG --fingerprint $fp + fi + # The removal of any ^pub:e: entrys means to ignore expired keys - thereby importing them again. + echo $fp_in_db | grep -v "^pub:e:" | grep -q ":$fp:" || $GPG --import < $k +done + +# Delete keys no longer present in keys directory +for fp in `$GPG --with-colons --fingerprint | awk -F: '$1 == "pub" {print $5}'`; do + seen="no" + for k in keys/*.pub; do + $GPG --with-colons --with-fingerprint < $k | grep -q ":$fp:" && seen="yes" + done + if [ "x$seen" = "xno" ]; then + $GPG --yes --batch --delete-key $fp || true + fi +done diff --git a/scripts/verify-tag b/scripts/verify-tag new file mode 100755 index 0000000..b482e9d --- /dev/null +++ b/scripts/verify-tag @@ -0,0 +1,14 @@ +#!/bin/bash + +export GNUPGHOME=/etc/metadata/gnupg +mkdir -p $GNUPGHOME +export GPG=gpg2 + +git config --global gpg.program gpg2 + +tag=$(git tag -l "md-[0-9]*" | sort | tail -1) +if [ -z "$tag" ]; then + echo "no matching tag found" + exit 1 +fi +git checkout $tag && git tag -v $tag diff --git a/xslt/clean-entitydescriptor.xsl b/xslt/clean-entitydescriptor.xsl new file mode 100644 index 0000000..c1c31df --- /dev/null +++ b/xslt/clean-entitydescriptor.xsl @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + <xsl:param name="indent-increment" select="' '"/> + <xsl:strip-space elements="*" /> + + <xsl:template match="@ID"/> + <xsl:template match="@validUntil"/> + <xsl:template match="@cacheDuration"/> + <xsl:template match="ds:Signature"/> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/dbg-summary.xslt b/xslt/dbg-summary.xslt new file mode 100644 index 0000000..2550ae0 --- /dev/null +++ b/xslt/dbg-summary.xslt @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:import href="summary.xslt"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <xsl:apply-templates select="md:EntityDescriptor"/> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/entity_id_list.xslt b/xslt/entity_id_list.xslt new file mode 100644 index 0000000..bda1bb7 --- /dev/null +++ b/xslt/entity_id_list.xslt @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="text" indent="yes" encoding="UTF-8"/> + + <xsl:template match="md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="md:EntityDescriptor"/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xsl:text>- </xsl:text><xsl:value-of select="@entityID"/><xsl:text> +</xsl:text> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/extract-idp.xslt b/xslt/extract-idp.xslt new file mode 100644 index 0000000..3282438 --- /dev/null +++ b/xslt/extract-idp.xslt @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="md:EntityDescriptor[md:IDPSSODescriptor]"/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xi:include><xsl:attribute name="href"><xsl:value-of select="@xml:base"/></xsl:attribute></xi:include> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/extract-non-idp.xslt b/xslt/extract-non-idp.xslt new file mode 100644 index 0000000..b12c587 --- /dev/null +++ b/xslt/extract-non-idp.xslt @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="md:EntityDescriptor[not(md:IDPSSODescriptor)]"/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xi:include><xsl:attribute name="href"><xsl:value-of select="@xml:base"/></xsl:attribute></xi:include> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/filter-idp.xslt b/xslt/filter-idp.xslt new file mode 100644 index 0000000..868bc1a --- /dev/null +++ b/xslt/filter-idp.xslt @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="md:EntityDescriptor[md:IDPSSODescriptor]"/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + + +</xsl:stylesheet> diff --git a/xslt/full-summary.xslt b/xslt/full-summary.xslt new file mode 100644 index 0000000..bf127df --- /dev/null +++ b/xslt/full-summary.xslt @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:import href="http://mds.swamid.se/xslt/summary.xslt"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <xsl:apply-templates select="md:EntityDescriptor"/> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/idp-list.xslt b/xslt/idp-list.xslt new file mode 100644 index 0000000..0d18be8 --- /dev/null +++ b/xslt/idp-list.xslt @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="md:EntityDescriptor[md:IDPSSODescriptor]"/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xi:include><xsl:attribute name="href"><xsl:value-of select="@xml:base"/></xsl:attribute></xi:include> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/idp-summary.xslt b/xslt/idp-summary.xslt new file mode 100644 index 0000000..90e57ad --- /dev/null +++ b/xslt/idp-summary.xslt @@ -0,0 +1,112 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion" + xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" + xmlns:remd="http://refeds.org/metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="text"/> + <xsl:variable name="eol"> +<xsl:text>|</xsl:text><xsl:text> +</xsl:text> + </xsl:variable> + + <xsl:template name="entity-name"> + <xsl:variable name="h"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> + <xsl:if test="contains($h,'/')"> + <xsl:value-of select="substring-before($h,'/')"/> + </xsl:if> + <xsl:if test="not(contains($h,'/'))"> + <xsl:value-of select="$h"/> + </xsl:if> + </xsl:template> + + <xsl:template match="/md:EntitiesDescriptor"> + <xsl:text>||EntityID||Organization||Technical Contact||Support Contact||Security Contact||Administrative Contact||Scopes||Entity category support||Assurance Certification|| +</xsl:text> + <xsl:apply-templates select="md:EntityDescriptor[md:IDPSSODescriptor]"/> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xsl:text> | </xsl:text><xsl:value-of select="@entityID"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Organization"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='support']"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@remd:contactType='http://refeds.org/metadata/contactType/security']"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:IDPSSODescriptor"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category-support']/samla:AttributeValue"/><xsl:text> </xsl:text> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='urn:oasis:names:tc:SAML:attribute:assurance-certification']/samla:AttributeValue"/><xsl:text> </xsl:text> + <xsl:text> | +</xsl:text> + </xsl:template> + + <xsl:template match="md:ContactPerson"> + <xsl:apply-templates select="md:EmailAddress"/> + </xsl:template> + + <xsl:template match="md:Organization"> + <xsl:text>[</xsl:text> + <xsl:apply-templates select="md:OrganizationDisplayName[1]"/><xsl:text>|</xsl:text><xsl:apply-templates select="md:OrganizationURL[1]"/><xsl:text>]</xsl:text> + </xsl:template> + + <xsl:template match="md:IDPSSODescriptor"> + <xsl:apply-templates select="md:Extensions/shibmd:Scope"/> + </xsl:template> + + <xsl:template match="md:EmailAddress"> + <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text><xsl:text> \\</xsl:text> + </xsl:template> + + <xsl:template match="md:OrganizationDisplayName"> + <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="md:OrganizationURL"> + <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="shibmd:Scope"> + <xsl:value-of select="text()"/><xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="samla:AttributeValue"> + <xsl:call-template name="string-replace-all"> + <xsl:with-param name="text" select="text()" /> + <xsl:with-param name="replace" select="'-'" /> + <xsl:with-param name="by" select="'&#x2011;'" /> + </xsl:call-template> + <xsl:text> \\</xsl:text> + </xsl:template> + + <xsl:template match="*"/> + <xsl:template match="text()"/> + + <xsl:template name="string-replace-all"> + <xsl:param name="text" /> + <xsl:param name="replace" /> + <xsl:param name="by" /> + <xsl:choose> + <xsl:when test="contains($text, $replace)"> + <xsl:value-of select="substring-before($text,$replace)" /> + <xsl:value-of select="$by" /> + <xsl:call-template name="string-replace-all"> + <xsl:with-param name="text" select="substring-after($text,$replace)" /> + <xsl:with-param name="replace" select="$replace" /> + <xsl:with-param name="by" select="$by" /> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$text" /> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/import-mdservicelist.xsl b/xslt/import-mdservicelist.xsl new file mode 100644 index 0000000..fb7522b --- /dev/null +++ b/xslt/import-mdservicelist.xsl @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:ser="http://eidas.europa.eu/metadata/servicelist" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/ser:MetadataServiceList"> + <xsl:apply-templates select="ser:MetadataList"/> + </xsl:template> + + <xsl:template match="ser:MetadataList"> + <xsl:variable name="country"> + <xsl:value-of select="@Territory"/> + </xsl:variable> + + <xsl:variable name="file" select="concat($output,'/',$country,'.xml')"/> + <exsl:document method="xml" indent="yes" href="{$file}"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </exsl:document> + </xsl:template> + + <xsl:template match="@ID"/> + <xsl:template match="ds:Signature"/> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/import-metadata.xsl b/xslt/import-metadata.xsl new file mode 100644 index 0000000..2edf7ed --- /dev/null +++ b/xslt/import-metadata.xsl @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template name="string-replace-all"> + <xsl:param name="text" /> + <xsl:param name="replace" /> + <xsl:param name="by" /> + <xsl:choose> + <xsl:when test="contains($text, $replace)"> + <xsl:value-of select="substring-before($text,$replace)" /> + <xsl:value-of select="$by" /> + <xsl:call-template name="string-replace-all"> + <xsl:with-param name="text" select="substring-after($text,$replace)" /> + <xsl:with-param name="replace" select="$replace" /> + <xsl:with-param name="by" select="$by" /> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$text" /> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="/md:EntitiesDescriptor"> + <xsl:apply-templates select="md:EntityDescriptor"> + <!-- xsl:with-param name="output"><xsl:value-of select="$output"/></xsl:with-param --> + </xsl:apply-templates> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <!-- xsl:param name="output"/ --> + <xsl:variable name="uri"> + <xsl:choose> + <xsl:when test="contains(@entityID,'://')"> + <xsl:value-of select="substring-after(@entityID,'://')"/> + </xsl:when> + <xsl:otherwise><xsl:value-of select="@entityID"/></xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="hostStr"> + <xsl:call-template name="string-replace-all"> + <xsl:with-param name="text" select="$uri" /> + <xsl:with-param name="replace" select="'%2F'" /> + <xsl:with-param name="by" select="'/'" /> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="host"> + <xsl:value-of select="normalize-space(translate($hostStr,'/?=:','----'))"/> + </xsl:variable> + <xsl:variable name="file" select="concat($output,'/',$host,'.xml')"/> + <exsl:document method="xml" indent="yes" href="{$file}"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </exsl:document> + </xsl:template> + + <xsl:template match="@ID"/> + <xsl:template match="ds:Signature"/> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/list-locations.xslt b/xslt/list-locations.xslt new file mode 100644 index 0000000..fd22fac --- /dev/null +++ b/xslt/list-locations.xslt @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="text"/> + + <xsl:template match="//*[@Location]"> + <xsl:value-of select="@Location"/><xsl:text> +</xsl:text> + </xsl:template> + <xsl:template match="text()"/> + +</xsl:stylesheet> diff --git a/xslt/mdslgen.xsl b/xslt/mdslgen.xsl new file mode 100644 index 0000000..ac0110a --- /dev/null +++ b/xslt/mdslgen.xsl @@ -0,0 +1,54 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:ser="http://eidas.europa.eu/metadata/servicelist" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + <xsl:param name="type"/> + + <xsl:template match="//xi:include"> + <xsl:apply-templates select="document(@href)"> + <with-param name="type"><xsl:value-of select="@type"/></with-param> + </xsl:apply-templates> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <ser:MetadataLocation> + <xsl:attribute name="Location"><xsl:value-of select="@entityID"/></xsl:attribute> + <ser:Endpoint> + <xsl:attribute name="EndpointType"><xsl:value-of select="$type"/></xsl:attribute> + <xsl:attribute name="EntityID"><xsl:value-of select="@entityID"/></xsl:attribute> + </ser:Endpoint> + <xsl:apply-templates select="ds:Signature"/> + </ser:MetadataLocation> + </xsl:template> + + <xsl:template match="ds:Signature"> + <xsl:apply-templates select="ds:KeyInfo"/> + </xsl:template> + + <xsl:template match="ds:KeyInfo"> + <xsl:copy> + <xsl:apply-templates/> + </xsl:copy> + </xsl:template> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/normalize.xsl b/xslt/normalize.xsl new file mode 100644 index 0000000..015f841 --- /dev/null +++ b/xslt/normalize.xsl @@ -0,0 +1,124 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:exsl="http://exslt.org/common" + xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <xsl:if test="$tou='true'"><xsl:comment> + + IMPORTANT NOTICE: READ CAREFULLY + +You are reading this because You wish to use the technical information (the “Metadata”) +published on behalf of the Registrars. These Terms of Access and Use (these “Terms”) govern +the use of the Metadata. By accessing or using the Metadata You accept that the access and +use will be on and subject to these Terms. These Terms will be binding and enforceable on +You as contractual obligations. + +The SWAMID Metadata Terms of Access and Use can be found here: + +- http://mds.swamid.se/md/swamid-tou-sv.txt Swedish version - Legally Binding! +- http://mds.swamid.se/md/swamid-tou-en.txt English version - Non-normative translation + +If You do not accept these Terms, then You must not continue to use this Metadata. + + </xsl:comment></xsl:if> + <md:EntitiesDescriptor> + <xsl:attribute name="ID"><xsl:value-of select="$ID"/></xsl:attribute> + <xsl:attribute name="Name"> + <xsl:choose> + <xsl:when test="$target"><xsl:value-of select="$target"/></xsl:when> + <xsl:otherwise><xsl:value-of select="@Name"/></xsl:otherwise> + </xsl:choose> + </xsl:attribute> + <xsl:if test="@cacheDuration"> + <xsl:attribute name="cacheDuration"><xsl:value-of select="@cacheDuration"/></xsl:attribute> + </xsl:if> + <xsl:if test="@validUntil"> + <xsl:attribute name="validUntil"><xsl:value-of select="$date"/></xsl:attribute> + </xsl:if> + <xsl:if test="$target"> + <md:Extensions><xsl:call-template name="add-swamid-pi"/></md:Extensions> + </xsl:if> + <xsl:apply-templates/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xsl:variable name="path"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> + <xsl:variable name="host"> + <xsl:if test="contains($path,'/')"> + <xsl:value-of select="substring-before($path,'/')"/> + </xsl:if> + <xsl:if test="not(contains($path,'/'))"> + <xsl:value-of select="$path"/> + </xsl:if> + </xsl:variable> + <xsl:variable name="domain"> + <xsl:value-of select="substring-after($host,'.')"/> + </xsl:variable> + <xsl:variable name="orginfo"> + <xsl:value-of select="concat('../organization','/',$domain,'.xml')"/> + </xsl:variable> + <md:EntityDescriptor> + <xsl:apply-templates select="@*"/> + <xsl:if test="$rpi='true' and not(md:Extensions)"> + <md:Extensions><xsl:call-template name="add-swamid-ri"/></md:Extensions> + </xsl:if> + <xsl:apply-templates select="text()|comment()|md:Extensions|md:RoleDescriptor|md:IDPSSODescriptor|md:SPSSODescriptor|md:AuthnAuthorityDescriptor|md:AttributeAuthorityDescriptor|md:PDPDescriptor|md:AffiliationDescriptor"/> + <xsl:if test="$org='true' and not(md:Organization)"> + <xsl:apply-templates select="document($orginfo)"/> + </xsl:if> + <xsl:apply-templates select="md:Organization"/> + <xsl:if test="$defaultContact='true' and not(md:ContactPerson)"> + <md:ContactPerson contactType="technical"><md:EmailAddress>operations@swamid.se</md:EmailAddress></md:ContactPerson> + </xsl:if> + <xsl:apply-templates select="md:ContactPerson"/> + <xsl:apply-templates select="md:AdditionalMetadataLocation"/> + </md:EntityDescriptor> + </xsl:template> + + <xsl:template match="md:EntityDescriptor/md:Extensions"> + <md:Extensions> + <xsl:call-template name="add-swamid-ri"/> + <xsl:apply-templates select="text()|comment()|node()"/> + </md:Extensions> + </xsl:template> + + <xsl:template name="add-swamid-ri"> + <xsl:if test="$rpi='true' and not(mdrpi:RegistrationInfo[@registrationAuthority='http://swamid.se/'])"> + <mdrpi:RegistrationInfo registrationAuthority="http://www.swamid.se/"> + <mdrpi:RegistrationPolicy xml:lang="en">https://www.sunet.se/wp-content/uploads/2016/08/SWAMID-Metadata-Registration-Practice-Statement-v2.pdf</mdrpi:RegistrationPolicy> + </mdrpi:RegistrationInfo> + </xsl:if> + </xsl:template> + + <xsl:template name="add-swamid-pi"> + <mdrpi:PublicationInfo> + <xsl:attribute name="creationInstant"><xsl:value-of select="$now"/></xsl:attribute> + <xsl:attribute name="publisher"><xsl:value-of select="$target"/></xsl:attribute> + <mdrpi:UsagePolicy xml:lang="en">https://www.sunet.se/wp-content/uploads/2015/12/SWAMID-Terms-of-Use-20110714.pdf</mdrpi:UsagePolicy> + </mdrpi:PublicationInfo> + </xsl:template> + + <xsl:template match="@xml:base|@ID|@validUntil|@cacheDuration"/> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/sign-luna-sha256-excl.xsl b/xslt/sign-luna-sha256-excl.xsl new file mode 100644 index 0000000..08e4827 --- /dev/null +++ b/xslt/sign-luna-sha256-excl.xsl @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:exsl="http://exslt.org/common" + xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="@*|text()|comment()"/> + <ds:Signature> + <ds:SignedInfo> + <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> + <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /> + <ds:Reference> + <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> + <ds:Transforms> + <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> + <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> + </ds:Transforms> + <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /> + <ds:DigestValue></ds:DigestValue> + </ds:Reference> + </ds:SignedInfo> + <ds:SignatureValue/> + </ds:Signature> + <xsl:apply-templates/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/sign-luna-sha256.xsl b/xslt/sign-luna-sha256.xsl new file mode 100644 index 0000000..293bb96 --- /dev/null +++ b/xslt/sign-luna-sha256.xsl @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:exsl="http://exslt.org/common" + xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="@*|text()|comment()"/> + <ds:Signature> + <ds:SignedInfo> + <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> + <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /> + <ds:Reference> + <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> + <ds:Transforms> + <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> + <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> + </ds:Transforms> + <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /> + <ds:DigestValue></ds:DigestValue> + </ds:Reference> + </ds:SignedInfo> + <ds:SignatureValue/> + </ds:Signature> + <xsl:apply-templates/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/sign-luna.xsl b/xslt/sign-luna.xsl new file mode 100644 index 0000000..4836451 --- /dev/null +++ b/xslt/sign-luna.xsl @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:exsl="http://exslt.org/common" + xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="@*|text()|comment()"/> + <ds:Signature> + <ds:SignedInfo> + <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> + <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> + <ds:Reference> + <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> + <ds:Transforms> + <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> + <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> + </ds:Transforms> + <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> + <ds:DigestValue></ds:DigestValue> + </ds:Reference> + </ds:SignedInfo> + <ds:SignatureValue/> + </ds:Signature> + <xsl:apply-templates/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/sign.xsl b/xslt/sign.xsl new file mode 100644 index 0000000..51d2492 --- /dev/null +++ b/xslt/sign.xsl @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:exsl="http://exslt.org/common" + xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="xml" indent="yes" encoding="UTF-8"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <md:EntitiesDescriptor> + <xsl:apply-templates select="@*|text()|comment()"/> + <ds:Signature> + <ds:SignedInfo> + <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> + <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> + <ds:Reference> + <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> + <ds:Transforms> + <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> + <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> + </ds:Transforms> + <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> + <ds:DigestValue></ds:DigestValue> + </ds:Reference> + </ds:SignedInfo> + <ds:SignatureValue/> + <ds:KeyInfo> + <ds:X509Data> + </ds:X509Data> + </ds:KeyInfo> + </ds:Signature> + <xsl:apply-templates/> + </md:EntitiesDescriptor> + </xsl:template> + + <xsl:template match="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/sp-summary.xslt b/xslt/sp-summary.xslt new file mode 100644 index 0000000..d54141c --- /dev/null +++ b/xslt/sp-summary.xslt @@ -0,0 +1,126 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" + xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="text"/> + <xsl:variable name="eol"> +<xsl:text>|</xsl:text><xsl:text> +</xsl:text> + </xsl:variable> + + <xsl:template name="entity-name"> + <xsl:variable name="h"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> + <xsl:if test="contains($h,'/')"> + <xsl:value-of select="substring-before($h,'/')"/> + </xsl:if> + <xsl:if test="not(contains($h,'/'))"> + <xsl:value-of select="$h"/> + </xsl:if> + </xsl:template> + + <xsl:template match="/md:EntitiesDescriptor"> + <xsl:text>||EntityID||Service Name||Service Description||Organization||Technical Contact||Administrative Contact||Entity Categories|| +</xsl:text> + <xsl:apply-templates select="md:EntityDescriptor[md:SPSSODescriptor]"/> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xsl:text> | </xsl:text><xsl:value-of select="@entityID"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceName"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceDescription"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Organization"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/> + <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category']/samla:AttributeValue"/><xsl:text> | +</xsl:text> + </xsl:template> + + <xsl:template match="md:AttributeConsumingService"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="md:ServiceDescription"> + <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="md:ServiceName"> + <xsl:call-template name="string-replace-all"> + <xsl:with-param name="text" select="text()" /> + <xsl:with-param name="replace" select="'|'" /> + <xsl:with-param name="by" select="'\|'" /> + </xsl:call-template> + </xsl:template> + + <xsl:template match="samla:AttributeValue"> + <xsl:call-template name="string-replace-all"> + <xsl:with-param name="text" select="substring-after(text(),'/category/')" /> + <xsl:with-param name="replace" select="'-'" /> + <xsl:with-param name="by" select="'&#x2011;'" /> + </xsl:call-template> + <xsl:text> \\</xsl:text> + </xsl:template> + + <xsl:template match="md:ContactPerson"> + <xsl:apply-templates select="md:EmailAddress"/> + </xsl:template> + + <xsl:template match="md:Organization"> + <xsl:text>[</xsl:text> + <xsl:apply-templates select="md:OrganizationDisplayName[1]"/><xsl:text>|</xsl:text> + <xsl:apply-templates select="md:OrganizationURL[1]"/><xsl:text>]</xsl:text> + </xsl:template> + + <xsl:template match="md:SPPSSODescriptor"> + <xsl:apply-templates select="md:Extensions/shibmd:Scope"/> + </xsl:template> + + <xsl:template match="md:EmailAddress"> + <xsl:value-of select="text()"/><xsl:text> \\</xsl:text> + </xsl:template> + + <xsl:template match="md:OrganizationDisplayName"> + <xsl:value-of select="normalize-space(text())"/> + </xsl:template> + + <xsl:template match="md:OrganizationURL"> + <xsl:value-of select="normalize-space(text())"/> + </xsl:template> + + <xsl:template match="shibmd:Scope"> + <xsl:value-of select="text()"/><xsl:text> </xsl:text> + </xsl:template> + + + <xsl:template match="*"/> + <xsl:template match="text()"/> + + <xsl:template name="string-replace-all"> + <xsl:param name="text" /> + <xsl:param name="replace" /> + <xsl:param name="by" /> + <xsl:choose> + <xsl:when test="contains($text, $replace)"> + <xsl:value-of select="substring-before($text,$replace)" /> + <xsl:value-of select="$by" /> + <xsl:call-template name="string-replace-all"> + <xsl:with-param name="text" select="substring-after($text,$replace)" /> + <xsl:with-param name="replace" select="$replace" /> + <xsl:with-param name="by" select="$by" /> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$text" /> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/summary.xslt b/xslt/summary.xslt new file mode 100644 index 0000000..05152d1 --- /dev/null +++ b/xslt/summary.xslt @@ -0,0 +1,102 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="text"/> + <xsl:variable name="eol"> +<xsl:text>|</xsl:text><xsl:text> +</xsl:text> + </xsl:variable> + + <xsl:template name="entity-name"> + <xsl:variable name="h"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> + <xsl:if test="contains($h,'/')"> + <xsl:value-of select="substring-before($h,'/')"/> + </xsl:if> + <xsl:if test="not(contains($h,'/'))"> + <xsl:value-of select="$h"/> + </xsl:if> + </xsl:template> + + <xsl:template match="md:EntityDescriptor"> + <xsl:text>h2. </xsl:text><xsl:call-template name="entity-name"/><xsl:text> +</xsl:text> + <xsl:text>||EntityID|</xsl:text><xsl:value-of select="@entityID"/><xsl:value-of select="$eol"/> + <xsl:apply-templates select="md:IDPSSODescriptor"/> + <xsl:apply-templates select="md:SPSSODescriptor"/> + <xsl:apply-templates select="md:Organization"/> + <xsl:apply-templates select="md:ContactPerson"/> + <xsl:text> +</xsl:text> + <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService"/><xsl:text> +</xsl:text> + <xsl:text>[Supplemental documentation|</xsl:text><xsl:call-template name="entity-name"/><xsl:text>] +</xsl:text> + <xsl:text> +</xsl:text> + </xsl:template> + + <xsl:template match="md:ContactPerson[@contactType='technical']"> + <xsl:text>||Technical contact|</xsl:text> + <xsl:apply-templates select="md:EmailAddress"/> + <xsl:value-of select="$eol"/> + </xsl:template> + + <xsl:template match="md:ContactPerson[@contactType='administrative']"> + <xsl:text>||Administrative contact|</xsl:text> + <xsl:apply-templates select="md:EmailAddress"/> + <xsl:value-of select="$eol"/> + </xsl:template> + + <xsl:template match="md:Organization"> + <xsl:text>||Organization|[</xsl:text> + <xsl:apply-templates select="md:OrganizationDisplayName[1]"/><xsl:text>|</xsl:text><xsl:apply-templates select="md:OrganizationURL[1]"/><xsl:text>]</xsl:text> + <xsl:value-of select="$eol"/> + </xsl:template> + + <xsl:template match="md:SPSSODescriptor"> + <xsl:text>||Role|Service Provider</xsl:text><xsl:value-of select="$eol"/> + </xsl:template> + + <xsl:template match="md:AttributeConsumingService"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="md:ServiceDescription"> + <xsl:text>{info}</xsl:text><xsl:value-of select="text()"/><xsl:text>{info}</xsl:text> + </xsl:template> + + <xsl:template match="md:IDPSSODescriptor"> + <xsl:text>||Role|Identity Provider</xsl:text><xsl:value-of select="$eol"/> + <xsl:text>||Scopes|</xsl:text><xsl:apply-templates select="md:Extensions/shibmd:Scope"/><xsl:value-of select="$eol"/> + </xsl:template> + + <xsl:template match="md:EmailAddress"> + <xsl:value-of select="text()"/> + </xsl:template> + + <xsl:template match="md:OrganizationDisplayName"> + <xsl:value-of select="text()"/> + </xsl:template> + + <xsl:template match="md:OrganizationURL"> + <xsl:value-of select="text()"/> + </xsl:template> + + <xsl:template match="shibmd:Scope"> + <xsl:text>* </xsl:text><xsl:value-of select="text()"/><xsl:text> +</xsl:text> + </xsl:template> + + + <xsl:template match="*"/> + <xsl:template match="text()"/> + +</xsl:stylesheet> diff --git a/xslt/tidy.xsl b/xslt/tidy.xsl new file mode 100644 index 0000000..043ef07 --- /dev/null +++ b/xslt/tidy.xsl @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="2.0" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + <xsl:template match="@ID"/> + <xsl:template match="@validUntil"/> + <xsl:template match="@cacheDuration"/> + <xsl:template match="@xml:base"/> + <xsl:template match="md:OrganizationName|md:OrganizationURL|md:OrganizationDisplayName"> + <xsl:if test="normalize-space(text()) != ''"> + <xsl:copy><xsl:apply-templates select="node()|@*"/></xsl:copy> + </xsl:if> + </xsl:template> + + <xsl:template match="text()|comment()|@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + + <xsl:template match="/*"> + <xsl:element name="md:{local-name()}" namespace="urn:oasis:names:tc:SAML:2.0:metadata"> + <!-- xsl:namespace name="xsi" select="'http://www.w3.org/2001/XMLSchema-instance'"/ --> + <xsl:namespace name="xs" select="'http://www.w3.org/2001/XMLSchema'"/> + <xsl:apply-templates select="@*|node()"/> + </xsl:element> + </xsl:template> + +</xsl:stylesheet> |