1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN"
3 "http://www.w3.org/2001/XMLSchema.dtd"
6 xmlns:xenc CDATA #FIXED 'http://www.w3.org/2001/04/xmlenc#'
7 xmlns:ds CDATA #FIXED 'http://www.w3.org/2000/09/xmldsig#'>
8 <!ENTITY xenc 'http://www.w3.org/2001/04/xmlenc#'>
13 <schema xmlns='http://www.w3.org/2001/XMLSchema' version='1.0'
14 xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'
15 xmlns:ds='http://www.w3.org/2000/09/xmldsig#'
16 targetNamespace='http://www.w3.org/2001/04/xmlenc#'
17 elementFormDefault='qualified'>
19 <import namespace='http://www.w3.org/2000/09/xmldsig#'
20 schemaLocation='http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd'/>
22 <complexType name='EncryptedType' abstract='true'>
24 <element name='EncryptionMethod' type='xenc:EncryptionMethodType'
26 <element ref='ds:KeyInfo' minOccurs='0'/>
27 <element ref='xenc:CipherData'/>
28 <element ref='xenc:EncryptionProperties' minOccurs='0'/>
30 <attribute name='Id' type='ID' use='optional'/>
31 <attribute name='Type' type='anyURI' use='optional'/>
32 <attribute name='MimeType' type='string' use='optional'/>
33 <attribute name='Encoding' type='anyURI' use='optional'/>
36 <complexType name='EncryptionMethodType' mixed='true'>
38 <element name='KeySize' minOccurs='0' type='xenc:KeySizeType'/>
39 <element name='OAEPparams' minOccurs='0' type='base64Binary'/>
40 <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
42 <attribute name='Algorithm' type='anyURI' use='required'/>
45 <simpleType name='KeySizeType'>
46 <restriction base="integer"/>
49 <element name='CipherData' type='xenc:CipherDataType'/>
50 <complexType name='CipherDataType'>
52 <element name='CipherValue' type='base64Binary'/>
53 <element ref='xenc:CipherReference'/>
57 <element name='CipherReference' type='xenc:CipherReferenceType'/>
58 <complexType name='CipherReferenceType'>
60 <element name='Transforms' type='xenc:TransformsType' minOccurs='0'/>
62 <attribute name='URI' type='anyURI' use='required'/>
65 <complexType name='TransformsType'>
67 <element ref='ds:Transform' maxOccurs='unbounded'/>
72 <element name='EncryptedData' type='xenc:EncryptedDataType'/>
73 <complexType name='EncryptedDataType'>
75 <extension base='xenc:EncryptedType'>
80 <!-- Children of ds:KeyInfo -->
82 <element name='EncryptedKey' type='xenc:EncryptedKeyType'/>
83 <complexType name='EncryptedKeyType'>
85 <extension base='xenc:EncryptedType'>
87 <element ref='xenc:ReferenceList' minOccurs='0'/>
88 <element name='CarriedKeyName' type='string' minOccurs='0'/>
90 <attribute name='Recipient' type='string'
96 <element name="AgreementMethod" type="xenc:AgreementMethodType"/>
97 <complexType name="AgreementMethodType" mixed="true">
99 <element name="KA-Nonce" minOccurs="0" type="base64Binary"/>
100 <!-- <element ref="ds:DigestMethod" minOccurs="0"/> -->
101 <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
102 <element name="OriginatorKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
103 <element name="RecipientKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
105 <attribute name="Algorithm" type="anyURI" use="required"/>
108 <!-- End Children of ds:KeyInfo -->
110 <element name='ReferenceList'>
112 <choice minOccurs='1' maxOccurs='unbounded'>
113 <element name='DataReference' type='xenc:ReferenceType'/>
114 <element name='KeyReference' type='xenc:ReferenceType'/>
119 <complexType name='ReferenceType'>
121 <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
123 <attribute name='URI' type='anyURI' use='required'/>
127 <element name='EncryptionProperties' type='xenc:EncryptionPropertiesType'/>
128 <complexType name='EncryptionPropertiesType'>
130 <element ref='xenc:EncryptionProperty' maxOccurs='unbounded'/>
132 <attribute name='Id' type='ID' use='optional'/>
135 <element name='EncryptionProperty' type='xenc:EncryptionPropertyType'/>
136 <complexType name='EncryptionPropertyType' mixed='true'>
137 <choice maxOccurs='unbounded'>
138 <any namespace='##other' processContents='lax'/>
140 <attribute name='Target' type='anyURI' use='optional'/>
141 <attribute name='Id' type='ID' use='optional'/>
142 <anyAttribute namespace="http://www.w3.org/XML/1998/namespace"/>