Commit e640c0d7 authored by Laurent Velez's avatar Laurent Velez
Browse files

inital commit

parent 93320c4b
Loading
Loading
Loading
Loading
+116 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- CapabilityAndSecurityInformation (REMS capabilities) -->

<!--                  ****** NOTICE ******
The present document is part of ETSI EN 319 532-4 and represents:
  1. the namespaces definitions and
  2. the required imports and
  3. the schema definitions for REM baseline Capability and Security Information (CSI) are composed of:
     - Capability Information (CI)
         - CapabilityMetadata
             - ERDSMetadata
     - Security Information (SI)
         - SecurityMetadata
             - CapabilityBasedSecurity
-->

<xsd:schema targetNamespace="http://uri.etsi.org/19532/v1#"
		xmlns="http://uri.etsi.org/19532/v1#"
		xmlns:xsd="http://www.w3.org/2001/XMLSchema"
		xmlns:tl="http://uri.etsi.org/02231/v2#"
		xmlns:ci="http://uri.etsi.org/19522/v1#"
		xmlns:si="http://uri.etsi.org/19532/v1#"
		xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
		elementFormDefault="qualified" attributeFormDefault="unqualified">

	<!-- *** Imports facility section *** -->

	<!-- schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/> -->
	<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
		schemaLocation="xmldsig-core-schema.xsd"/>

	<!-- schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/> -->
	<xsd:import namespace="http://www.w3.org/2001/04/xmlenc#"
		schemaLocation="xenc-schema.xsd"/>

	<!-- schemaLocation="http://www.w3.org/2001/xml.xsd"/> -->
	<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
		schemaLocation="xml.xsd"/>

	<!-- schemaLocation="http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd"/> -->
	<xsd:import namespace="urn:oasis:names:tc:SAML:2.0:assertion"
		schemaLocation="saml-schema-assertion-2.0.xsd"/>

	<xsd:import namespace="http://uri.etsi.org/19522/v1#"
		schemaLocation="1952203xmlSchema.xsd"/>

	<!-- schemaLocation="https://uri.etsi.org/19612/v2.2.1/ts_119612v020201_201601xsd.xsd"/> -->
	<xsd:import namespace="http://uri.etsi.org/02231/v2#"
		schemaLocation="ts_119612v020201_201601xsd.xsd"/>

	<!-- ROOT Element: CapabilityAndSecurityInformation (CSI) -->
	<xsd:element name="CapabilityAndSecurityInformation" type="CapabilityAndSecurityInformationType"/>
		
	<xsd:complexType name="CapabilityAndSecurityInformationType">
		<xsd:sequence>
			<xsd:element ref="SchemeData"/>		
			<xsd:element ref="CapabilityMetadata"/>
			<xsd:element ref="SecurityMetadata"/>
			<xsd:element ref="ds:Signature" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="version" type="xsd:string" use="required"/>
		<xsd:attribute name="Id" type="xsd:ID" use="optional"/>
	</xsd:complexType>

	<!-- Capability and Security Information: Scheme data  -->
	<xsd:element name="SchemeData" type="SchemeDataType"/>
	<xsd:complexType name="SchemeDataType">
		<xsd:sequence>
			<xsd:element name="CSIVersionIdentifier" type="xsd:integer"/>
			<xsd:element name="CSISequenceNumber" type="xsd:positiveInteger"/>
			<xsd:element name="CSISchemeOperatorName" type="tl:InternationalNamesType"/>
			<xsd:element name="CSISchemeOperatorAddress" type="tl:AddressType"/>
			<xsd:element name="CSISchemeInformationURI" type="tl:NonEmptyMultiLangURIListType"/>
			<xsd:element name="CSISchemePolicyCommunityRules" type="tl:NonEmptyMultiLangURIListType"/>
			<xsd:element name="CSIPointerToTL" type="tl:NonEmptyURIType"/>
			<xsd:element name="CSIIssueDateTime" type="xsd:dateTime"/>
			<xsd:element name="CSINextUpdate" type="tl:NextUpdateType"/>
			<xsd:element name="CSIDistributionPoints" type="tl:NonEmptyURIListType"/>
			<xsd:element name="CSIPointersToOtherMetadata" type="tl:NonEmptyURIListType" minOccurs="0"/>
			<xsd:element name="CSISchemeExtensions" type="tl:ExtensionsListType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<!-- Capability Information (CI) -->
	<xsd:element name="CapabilityMetadata" type="CapabilityMetadataType"/>
	<xsd:complexType name="CapabilityMetadataType">
		<xsd:sequence>
			<!-- The following is from ETSI EN 319 532-4, clause C.2.3.4.2 -->
			<xsd:element ref="ci:ERDSMetadata"/>
			<xsd:element name="CISchemeExtensions" type="tl:ExtensionsListType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<!-- Security Information (SI) -->
	<xsd:element name="SecurityMetadata" type="SecurityMetadataType"/>
	<xsd:complexType name="SecurityMetadataType">
		<xsd:sequence>
			<!-- The following is from ETSI EN 319 532-4, clause C.2.3.4.4 -->
			<xsd:element ref="si:CapabilityBasedSecurity"/>
			<xsd:element name="SISchemeExtensions" type="tl:ExtensionsListType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:element name="CapabilityBasedSecurity" type="si:CapabilityBasedSecurityType"/>
	<xsd:complexType name="CapabilityBasedSecurityType">
		<xsd:sequence>
			<!-- X509Certificate used for TLS specified in EN 319 532-4, clause C.2.3.4.4 for Basic handshake -->
			<xsd:element name="TLSCertificate" type="xsd:base64Binary"/>
			<!-- X509Certificate used for Domain Signature specified in EN 319 532-4, clause C.2.3.4.4 -->
			<xsd:element name="DomainSignCertificate" type="xsd:base64Binary" minOccurs="0"/>
			<xsd:element name="CBSSchemeExtensions" type="tl:ExtensionsListType" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="version" use="required"/>
	</xsd:complexType>

</xsd:schema>
+86 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>

<!--                  ****** NOTICE ******
The present document is part of ETSI EN 319 532-4 and represents:
  1. the namespaces definitions and
  2. the required imports for REM baseline ERDS evidence schema (Evidence) are composed of:
     - ERDSEvidence
     - ERDSExtensions
     - eIDAS SAML Attribute Profile for Legal and Natural PersonIdentifier
-->

<xs:schema targetNamespace="http://uri.etsi.org/19532/v1#"
		xmlns="http://uri.etsi.org/19532/v1#"
		xmlns:xs="http://www.w3.org/2001/XMLSchema"
		elementFormDefault="qualified" attributeFormDefault="unqualified">

	<!-- *** Imports facility section *** -->

	<!-- schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/> -->
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#"
		schemaLocation="xmldsig-core-schema.xsd"/>

	<!-- schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/> -->
	<xs:import namespace="http://www.w3.org/2001/04/xmlenc#"
		schemaLocation="xenc-schema.xsd"/>

	<!-- schemaLocation="http://www.w3.org/2001/xml.xsd"/> -->
	<xs:import namespace="http://www.w3.org/XML/1998/namespace"
		schemaLocation="xml.xsd"/>

	<!-- schemaLocation="http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd"/> -->
	<xs:import namespace="urn:oasis:names:tc:SAML:2.0:assertion"
		schemaLocation="saml-schema-assertion-2.0.xsd"/>

	<!-- schemaLocation="http://uri.etsi.org/19612/v2.2.1/ts_119612v020201_201601xsd.xsd"/> -->
	<xs:import namespace="http://uri.etsi.org/02231/v2#"
		schemaLocation="ts_119612v020201_201601xsd.xsd"/>

	<!-- xsd from 'eIDAS SAML Attribute Profile v1.2.pdf' for Legal PersonIdentifier definitions, section 2.3.2 - Figure 11 -->
	<xs:import namespace="http://eidas.europa.eu/attributes/legalperson"
		schemaLocation="eIDAS_SAML_Attribute_Profile-LegalPersonIdentifiers-v1.1.2.xsd"/>

	<!-- xsd from 'eIDAS SAML Attribute Profile v1.2.pdf' for Natural PersonIdentifier definitions, section 2.2.2 - Figure 1 -->
	<xs:import namespace="http://eidas.europa.eu/attributes/naturalperson"
		schemaLocation="eIDAS_SAML_Attribute_Profile-NaturalPersonIdentifiers-v1.1.2.xsd"/>

	<!-- Note: the document 'eIDAS SAML Attribute Profile v1.2.pdf' containing the xsd for the previous two imports is available at: https://ec.europa.eu/cefdigital/wiki/download/attachments/82773108/eIDAS%20SAML%20Attribute%20Profile%20v1.2%20Final.pdf?version=2&modificationDate=1571068651772&api=v2 -->

	<!-- *** ROOT Element: Evidence *** -->
	<xs:import namespace="http://uri.etsi.org/19522/v1#"
		schemaLocation="1952203xmlSchema.xsd"/>
	<!-- Note: the xsd for the previous import is available at: https://forge.etsi.org/rep/esi/x19_52203_ERDS/raw/v1.2.1/1952203xmlSchema.xsd -->

	<!-- *** (ERDS evidence) EXTENSIONS *** -->

	<!-- *** GeneralEvidenceInfo Element: General ERDS evidence extension elements *** -->

	<xs:element name="GeneralEvidenceInfo" type="GeneralEvidenceInfoType"/>

	<xs:complexType name="GeneralEvidenceInfoType">
		<xs:annotation>
			<xs:documentation>The GeneralEvidenceInfo's Subject child element contains the Subject of the original message. Each UntrustedPathToRecipient child element identifies, with a integer reference, the recipient among all the recipients whose reachability by CSI is not verified.
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Subject" type="xs:string" minOccurs="0"/>
			<xs:element name="UntrustedPathToRecipient" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>


	<!-- *** RelayEvidenceInfo Element: Relay ERDS evidence extension elements *** -->

	<xs:element name="RelayEvidenceInfo" type="RelayEvidenceInfoType"/>

	<xs:complexType name="RelayEvidenceInfoType">
		<xs:annotation>
			<xs:documentation>Each RelayEvidenceRefersTo child element identifies, with a integer reference, one of the intended recipients whose the relay evidence refers to, among all the RecipientDetails occurrences. 
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="RelayEvidenceRefersTo" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

</xs:schema>