-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXDPMessages.xsd
executable file
·133 lines (125 loc) · 5.5 KB
/
XDPMessages.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="urn:com.XDP.XDPMessages"
elementFormDefault="qualified"
xmlns="urn:com.XDP.XDPMessages"
xmlns:msg="urn:com.XDP.XDPMessages"
xmlns:xdp="urn:com.XDP.XDPData"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:import namespace="urn:com.XDP.XDPData" schemaLocation="XDP.xsd" />
<xs:element name="XDPKeys">
<xs:annotation>
<xs:documentation>This element holds the unencrypted versions of the symmetric encryption and symmetric signature keys</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="XDPEncryptionKey" type="xs:hexBinary" />
<xs:element name="XDPSignatureKey" type="xs:hexBinary" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="XDPRequestDomainHeader">
<xs:annotation>
<xs:documentation>This message is sent by XDP Service to request an XDPInternalDomainHeader and XDPInternalDomainHeaderSignature from the XDP Domain Service</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="xdp:XDPInternalCommonHeader" />
<xs:element ref="xdp:XDPAuthorizedIdentities" />
<xs:element ref="msg:XDPKeys" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="XDPResponseDomainHeader">
<xs:annotation>
<xs:documentation>This message is sent by the XDP Domain Service in response to the XDPRequestDomainHeader message</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="xdp:XDPInternalDomainHeader" />
<xs:element ref="xdp:XDPInternalHeaderDomainSignature" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="XDPRequestDecryptionKey">
<xs:annotation>
<xs:documentation>This message is sent by XDP Service to request the XDPKeys from the XDP Domain Service</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="xdp:XDPInternalCommonHeader" />
<xs:element ref="xdp:XDPInternalDomainHeader" />
<xs:element ref="xdp:XDPInternalHeaderDomainSignature" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="XDPResponseDecryptionKey">
<xs:complexType>
<xs:annotation>
<xs:documentation>This message is sent by the XDP Domain Service in response to the XDPRequestDecryptionKey message</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="msg:XDPKeys" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="XDPException">
<xs:annotation>
<xs:documentation>This message is sent if an error occurs</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element name="XDPUpdateCommonHeader">
<xs:annotation>
<xs:documentation>This is sent only by the XDP Domain Service if it wants to update the cryptographic algorithms used by an XDP Service</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="xdp:XDPInternalCommonHeader">
<xs:annotation>
<xs:documentation>The whole element is used but only the XDPEncryptionAlgorithm, XDPEncryptionMode and XDPSignatureAlgorithm are read</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="XDPUnknownIdentity" type="xs:string">
<xs:annotation>
<xs:documentation>This exception is returned in response to a XDPRequestDomainHeader with an XDPAuthorizedIdentity that the Domain does recognise</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="XDPBadSignature" type="xs:string">
<xs:annotation>
<xs:documentation>This exception is returned in response to a XDPRequestDecryptionKey with a signature that does not validate</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="XDPNotAuthorized" type="xs:string">
<xs:annotation>
<xs:documentation>This exception is returned in response to a XDPRequestDecryptionKey where the identified caller is not authorized to decrypt</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="XDPBadParameter">
<xs:complexType>
<xs:sequence>
<xs:element name="Parameter" type="xs:string">
<xs:annotation>
<xs:documentation>The name of the parameter that caused the error</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Reason" type="xs:string">
<xs:annotation>
<xs:documentation>The reason the parameter caused the error</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="XDPGeneralException" type="xs:string">
<xs:annotation>
<xs:documentation>A string describing the exception that occurred</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>