sepafm 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +35 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +8 -0
  6. data/README.md +236 -0
  7. data/Rakefile +10 -0
  8. data/lib/danske_get_bank_certificate_test.rb +15 -0
  9. data/lib/sepa/application_request.rb +182 -0
  10. data/lib/sepa/application_response.rb +123 -0
  11. data/lib/sepa/client.rb +79 -0
  12. data/lib/sepa/danske_testing/keys/danske_encryption.crt +24 -0
  13. data/lib/sepa/filedescriptor.rb +7 -0
  14. data/lib/sepa/filetypeservice.rb +6 -0
  15. data/lib/sepa/nordea_testing/keys/CSR.csr +0 -0
  16. data/lib/sepa/nordea_testing/keys/nordea.crt +27 -0
  17. data/lib/sepa/nordea_testing/keys/nordea.key +19 -0
  18. data/lib/sepa/nordea_testing/response/content_053.xml +998 -0
  19. data/lib/sepa/nordea_testing/response/content_054.xml +1 -0
  20. data/lib/sepa/nordea_testing/response/download_file_response.xml +14 -0
  21. data/lib/sepa/nordea_testing/response/download_filelist_response.xml +14 -0
  22. data/lib/sepa/nordea_testing/response/get_user_info_response.xml +14 -0
  23. data/lib/sepa/nordea_testing/response/upload_file_response.xml +14 -0
  24. data/lib/sepa/response.rb +177 -0
  25. data/lib/sepa/sender_verifier.rb +15 -0
  26. data/lib/sepa/signature.rb +7 -0
  27. data/lib/sepa/soap_builder.rb +395 -0
  28. data/lib/sepa/soap_danske.rb +47 -0
  29. data/lib/sepa/soap_nordea.rb +68 -0
  30. data/lib/sepa/userfiletype.rb +16 -0
  31. data/lib/sepa/version.rb +3 -0
  32. data/lib/sepa/wsdl/wsdl_danske.xml +234 -0
  33. data/lib/sepa/wsdl/wsdl_danske_cert.xml +280 -0
  34. data/lib/sepa/wsdl/wsdl_nordea.xml +234 -0
  35. data/lib/sepa/wsdl/wsdl_nordea_cert.xml +187 -0
  36. data/lib/sepa/xml_parser.rb +291 -0
  37. data/lib/sepa/xml_schemas/application_request.xsd +135 -0
  38. data/lib/sepa/xml_schemas/application_response.xsd +311 -0
  39. data/lib/sepa/xml_schemas/cert_application_request.xsd +107 -0
  40. data/lib/sepa/xml_schemas/danske_pki.xsd +334 -0
  41. data/lib/sepa/xml_schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd +195 -0
  42. data/lib/sepa/xml_schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd +108 -0
  43. data/lib/sepa/xml_schemas/soap.xsd +126 -0
  44. data/lib/sepa/xml_schemas/wsdl.xml +310 -0
  45. data/lib/sepa/xml_schemas/xml.xsd +287 -0
  46. data/lib/sepa/xml_schemas/xmldsig-core-schema.xsd +318 -0
  47. data/lib/sepa/xml_templates/application_request/create_certificate.xml +10 -0
  48. data/lib/sepa/xml_templates/application_request/danske_get_bank_certificate.xml +10 -0
  49. data/lib/sepa/xml_templates/application_request/download_file.xml +32 -0
  50. data/lib/sepa/xml_templates/application_request/download_file_list.xml +29 -0
  51. data/lib/sepa/xml_templates/application_request/get_certificate.xml +10 -0
  52. data/lib/sepa/xml_templates/application_request/get_user_info.xml +26 -0
  53. data/lib/sepa/xml_templates/application_request/upload_file.xml +29 -0
  54. data/lib/sepa/xml_templates/soap/create_certificate.xml +15 -0
  55. data/lib/sepa/xml_templates/soap/danske_get_bank_certificate.xml +14 -0
  56. data/lib/sepa/xml_templates/soap/download_file.xml +16 -0
  57. data/lib/sepa/xml_templates/soap/download_file_list.xml +16 -0
  58. data/lib/sepa/xml_templates/soap/get_certificate.xml +13 -0
  59. data/lib/sepa/xml_templates/soap/get_user_info.xml +16 -0
  60. data/lib/sepa/xml_templates/soap/header.xml +37 -0
  61. data/lib/sepa/xml_templates/soap/upload_file.xml +16 -0
  62. data/lib/sepa.rb +21 -0
  63. data/lib/sepa_client_testing_mika.rb +32 -0
  64. data/lib/sepa_client_testing_tiere.rb +80 -0
  65. data/sepa.gemspec +29 -0
  66. data/test/sepa/application_request_test.rb +423 -0
  67. data/test/sepa/application_response_test.rb +238 -0
  68. data/test/sepa/cert_application_request_test.rb +99 -0
  69. data/test/sepa/client_test.rb +425 -0
  70. data/test/sepa/danske_test_keys/danskeroot.pem +25 -0
  71. data/test/sepa/danske_test_keys/encryption_pkcs.csr +0 -0
  72. data/test/sepa/danske_test_keys/signing_key.pem +27 -0
  73. data/test/sepa/danske_test_keys/signing_pkcs.csr +0 -0
  74. data/test/sepa/nordea_cert_request_soap_builder_test.rb +112 -0
  75. data/test/sepa/nordea_generic_soap_builder_test.rb +427 -0
  76. data/test/sepa/nordea_test_keys/nordea.crt +27 -0
  77. data/test/sepa/nordea_test_keys/nordea.key +19 -0
  78. data/test/sepa/nordea_test_keys/root_cert.cer +0 -0
  79. data/test/sepa/nordea_test_keys/testcert.csr +0 -0
  80. data/test/sepa/response_test.rb +269 -0
  81. data/test/sepa/sepa_test.rb +20 -0
  82. data/test/sepa/test_files/invalid.wsdl +1 -0
  83. data/test/sepa/test_files/test_responses/df.xml +20 -0
  84. data/test/sepa/test_files/test_responses/dfl.xml +20 -0
  85. data/test/sepa/test_files/test_responses/gui.xml +20 -0
  86. data/test/sepa/test_files/test_responses/uf.xml +20 -0
  87. data/test/sepa/user_file_type_test.rb +21 -0
  88. data/test/sepa/xml_parser_test.rb +73 -0
  89. data/test/test_helper.rb +9 -0
  90. metadata +256 -0
@@ -0,0 +1,334 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by Danske Bank (Danske Bank A/S) -->
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:tns="http://danskebank.dk/PKI/PKIFactoryService/elements" xmlns:xml="http://www.w3.org/XML/1998/namespace" targetNamespace="http://danskebank.dk/PKI/PKIFactoryService/elements" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
+ <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"/>
5
+ <!--xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="store:///schemas/xmldsig-core-schema.xsd"/-->
6
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml_id.xsd"/>
7
+ <!-- SHARED TYPES SECTION -->
8
+ <!-- GENERIC TYPES -->
9
+ <xs:simpleType name="string10">
10
+ <xs:restriction base="xs:string">
11
+ <xs:minLength value="0"/>
12
+ <xs:maxLength value="10"/>
13
+ </xs:restriction>
14
+ </xs:simpleType>
15
+ <xs:simpleType name="string50">
16
+ <xs:restriction base="xs:string">
17
+ <xs:minLength value="0"/>
18
+ <xs:maxLength value="50"/>
19
+ </xs:restriction>
20
+ </xs:simpleType>
21
+ <xs:simpleType name="RequestIdType">
22
+ <xs:restriction base="tns:string10"/>
23
+ </xs:simpleType>
24
+ <xs:simpleType name="ReturncodeType">
25
+ <xs:restriction base="tns:string10"/>
26
+ </xs:simpleType>
27
+ <xs:simpleType name="ReturnTextType">
28
+ <xs:restriction base="tns:string50"/>
29
+ </xs:simpleType>
30
+ <xs:simpleType name="AdditionalReturnTextType">
31
+ <xs:restriction base="xs:string">
32
+ <xs:minLength value="0"/>
33
+ <xs:maxLength value="1000"/>
34
+ </xs:restriction>
35
+ </xs:simpleType>
36
+ <!-- SPECIFIC TYPES -->
37
+ <xs:simpleType name="InterfaceVersionType">
38
+ <xs:restriction base="xs:string">
39
+ <xs:minLength value="1"/>
40
+ <xs:maxLength value="10"/>
41
+ </xs:restriction>
42
+ </xs:simpleType>
43
+ <xs:simpleType name="CRLReasonType">
44
+ <xs:restriction base="xs:integer">
45
+ <xs:enumeration value="0"/>
46
+ <xs:enumeration value="1"/>
47
+ <xs:enumeration value="2"/>
48
+ <xs:enumeration value="3"/>
49
+ <xs:enumeration value="4"/>
50
+ <xs:enumeration value="5"/>
51
+ <xs:enumeration value="9"/>
52
+ <!-- Values taken from X.509v3 specification -->
53
+ </xs:restriction>
54
+ </xs:simpleType>
55
+ <xs:simpleType name="CertificateIdType">
56
+ <xs:restriction base="xs:string">
57
+ <xs:minLength value="1"/>
58
+ <xs:maxLength value="64"/>
59
+ </xs:restriction>
60
+ </xs:simpleType>
61
+ <xs:simpleType name="CertificateType">
62
+ <xs:restriction base="xs:base64Binary">
63
+ <xs:minLength value="1"/>
64
+ <xs:maxLength value="10000"/>
65
+ </xs:restriction>
66
+ </xs:simpleType>
67
+ <xs:simpleType name="Pkcs10requestType">
68
+ <xs:restriction base="xs:base64Binary">
69
+ <xs:minLength value="1"/>
70
+ <xs:maxLength value="10000"/>
71
+ </xs:restriction>
72
+ </xs:simpleType>
73
+ <xs:simpleType name="CustomerIdType">
74
+ <xs:restriction base="xs:string">
75
+ <xs:minLength value="6"/>
76
+ <xs:maxLength value="6"/>
77
+ </xs:restriction>
78
+ </xs:simpleType>
79
+ <xs:simpleType name="KeyGeneratorTypeType">
80
+ <xs:annotation>
81
+ <xs:documentation>Indicates the machine (hardware or software) used to create the keys in a certificate request. The value 'HSM' indicates that a Hardware Security Module generated the keys, while the value 'software' indicates that the keys were generated in software.</xs:documentation>
82
+ </xs:annotation>
83
+ <xs:restriction base="xs:string">
84
+ <xs:enumeration value="HSM"/>
85
+ <xs:enumeration value="software"/>
86
+ </xs:restriction>
87
+ </xs:simpleType>
88
+ <xs:simpleType name="EnvironmentType">
89
+ <xs:restriction base="xs:string">
90
+ <xs:enumeration value="production"/>
91
+ <xs:enumeration value="customertest"/>
92
+ <xs:enumeration value="systemtest"/>
93
+ <xs:enumeration value="test"/>
94
+ </xs:restriction>
95
+ </xs:simpleType>
96
+ <xs:simpleType name="CertificateTypeType">
97
+ <xs:restriction base="xs:string">
98
+ <xs:enumeration value="signing"/>
99
+ <xs:enumeration value="encryption"/>
100
+ </xs:restriction>
101
+ </xs:simpleType>
102
+ <xs:complexType name="CertificateStatusType">
103
+ <xs:sequence>
104
+ <xs:element name="CertificateSerialNo" type="tns:CertificateIdType"/>
105
+ <xs:element name="CertificateType" type="tns:CertificateTypeType"/>
106
+ <xs:element name="MatchingCertificateSerialNo" type="tns:CertificateIdType"/>
107
+ <xs:element name="Status">
108
+ <xs:complexType>
109
+ <xs:choice>
110
+ <xs:element name="good">
111
+ <xs:complexType>
112
+ <xs:attribute name="expiryDate" type="xs:dateTime" use="optional"/>
113
+ </xs:complexType>
114
+ </xs:element>
115
+ <xs:element name="expires_soon">
116
+ <xs:complexType>
117
+ <xs:attribute name="expiryDate" type="xs:dateTime" use="optional"/>
118
+ </xs:complexType>
119
+ </xs:element>
120
+ <xs:element name="expired">
121
+ <xs:complexType>
122
+ <xs:attribute name="expiryDate" type="xs:dateTime" use="optional"/>
123
+ </xs:complexType>
124
+ </xs:element>
125
+ <xs:element name="revoked">
126
+ <xs:complexType>
127
+ <xs:attribute name="revocationDate" type="xs:dateTime" use="optional"/>
128
+ <xs:attribute name="CRLReason" type="tns:CRLReasonType" use="optional"/>
129
+ </xs:complexType>
130
+ </xs:element>
131
+ </xs:choice>
132
+ </xs:complexType>
133
+ </xs:element>
134
+ </xs:sequence>
135
+ </xs:complexType>
136
+ <!-- ELEMENTS SECTION -->
137
+ <xs:element name="CreateCertificateRequest">
138
+ <xs:annotation>
139
+ <xs:documentation>Request to create a signing certificate and an encryption certificate for the customer. The customer is identified by an agreement number and a CAID.</xs:documentation>
140
+ </xs:annotation>
141
+ <xs:complexType>
142
+ <xs:sequence>
143
+ <xs:element name="CustomerId" type="tns:CustomerIdType"/>
144
+ <xs:element name="KeyGeneratorType" type="tns:KeyGeneratorTypeType"/>
145
+ <xs:element name="EncryptionCertPKCS10" type="tns:Pkcs10requestType"/>
146
+ <xs:element name="SigningCertPKCS10" type="tns:Pkcs10requestType"/>
147
+ <xs:element name="Timestamp" type="xs:dateTime"/>
148
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
149
+ <xs:element name="Environment" type="tns:EnvironmentType" minOccurs="0"/>
150
+ <xs:element name="PIN" type="tns:string10"/>
151
+ </xs:sequence>
152
+ <xs:attribute ref="xml:id"/>
153
+ </xs:complexType>
154
+ </xs:element>
155
+ <xs:element name="CreateCertificateResponse">
156
+ <xs:annotation>
157
+ <xs:documentation>Response to a CreateCertificateRequest.</xs:documentation>
158
+ </xs:annotation>
159
+ <xs:complexType>
160
+ <xs:sequence>
161
+ <xs:element name="ReturnCode" type="tns:ReturncodeType"/>
162
+ <xs:element name="ReturnText" type="tns:ReturnTextType"/>
163
+ <xs:element name="EncryptionCert" type="tns:CertificateType"/>
164
+ <xs:element name="SigningCert" type="tns:CertificateType"/>
165
+ <xs:element name="CACert" type="tns:CertificateType"/>
166
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
167
+ <xs:element name="Environment" type="tns:EnvironmentType" minOccurs="0"/>
168
+ <!-- Enveloped signature, signing the CreateCertificateResponse element -->
169
+ <xs:element ref="ds:Signature" minOccurs="0"/>
170
+ </xs:sequence>
171
+ <xs:attribute ref="xml:id"/>
172
+ </xs:complexType>
173
+ </xs:element>
174
+ <xs:element name="RenewCertificateRequest">
175
+ <xs:annotation>
176
+ <xs:documentation>Request to renew a signing certificate and an encryption certificate for the customer. The customer is identified by an agreement number and a name. The request is signed with the customers old signing certificate.</xs:documentation>
177
+ </xs:annotation>
178
+ <xs:complexType>
179
+ <xs:sequence>
180
+ <xs:element name="CustomerId" type="tns:CustomerIdType"/>
181
+ <xs:element name="KeyGeneratorType" type="tns:KeyGeneratorTypeType"/>
182
+ <xs:element name="EncryptionCertPKCS10" type="tns:Pkcs10requestType"/>
183
+ <xs:element name="SigningCertPKCS10" type="tns:Pkcs10requestType"/>
184
+ <xs:element name="Timestamp" type="xs:dateTime"/>
185
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
186
+ <xs:element name="Environment" type="tns:EnvironmentType" minOccurs="0"/>
187
+ <!-- Enveloped signature, signing the RenewCertificateRequest element. The signature should be based on the old signing cert -->
188
+ <xs:element ref="ds:Signature" minOccurs="0"/>
189
+ </xs:sequence>
190
+ <xs:attribute ref="xml:id"/>
191
+ </xs:complexType>
192
+ </xs:element>
193
+ <xs:element name="RenewCertificateResponse">
194
+ <xs:annotation>
195
+ <xs:documentation>Response to a RenewCertificateRequest.</xs:documentation>
196
+ </xs:annotation>
197
+ <xs:complexType>
198
+ <xs:sequence>
199
+ <xs:element name="ReturnCode" type="tns:ReturncodeType"/>
200
+ <xs:element name="ReturnText" type="tns:ReturnTextType"/>
201
+ <xs:element name="EncryptionCert" type="tns:CertificateType"/>
202
+ <xs:element name="SigningCert" type="tns:CertificateType"/>
203
+ <xs:element name="CACert" type="tns:CertificateType"/>
204
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
205
+ <xs:element name="Environment" type="tns:EnvironmentType" minOccurs="0"/>
206
+ <!-- Enveloped signature, signing the RenewCertificateResponse element. -->
207
+ <xs:element ref="ds:Signature" minOccurs="0"/>
208
+ </xs:sequence>
209
+ <xs:attribute ref="xml:id"/>
210
+ </xs:complexType>
211
+ </xs:element>
212
+ <xs:element name="RevokeCertificateRequest">
213
+ <xs:complexType>
214
+ <xs:sequence>
215
+ <xs:element name="KeyGeneratorType" type="tns:KeyGeneratorTypeType"/>
216
+ <xs:element name="CustomerId" type="tns:CustomerIdType"/>
217
+ <xs:choice>
218
+ <xs:element name="RevokeAll">
219
+ <xs:complexType>
220
+ <xs:sequence>
221
+ <xs:element name="ExceptCertificateSerialNo" minOccurs="0" maxOccurs="10"/>
222
+ </xs:sequence>
223
+ </xs:complexType>
224
+ </xs:element>
225
+ <xs:element name="CertificateSerialNo" type="tns:CertificateIdType" maxOccurs="10"/>
226
+ </xs:choice>
227
+ <xs:element name="CRLReason" type="tns:CRLReasonType" minOccurs="0"/>
228
+ <xs:element name="Timestamp" type="xs:dateTime"/>
229
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
230
+ <xs:element name="Environment" type="tns:EnvironmentType" minOccurs="0"/>
231
+ <!-- Enveloped signature, signing the RevokeCertificateRequest element-->
232
+ <xs:element ref="ds:Signature" minOccurs="0"/>
233
+ </xs:sequence>
234
+ <xs:attribute ref="xml:id"/>
235
+ </xs:complexType>
236
+ </xs:element>
237
+ <xs:element name="RevokeCertificateResponse">
238
+ <xs:complexType>
239
+ <xs:sequence>
240
+ <xs:element name="ReturnCode" type="tns:ReturncodeType"/>
241
+ <xs:element name="ReturnText" type="tns:ReturnTextType"/>
242
+ <xs:element name="CertificateSerialNo" type="tns:CertificateIdType" maxOccurs="unbounded"/>
243
+ <xs:element name="RevocationTime" type="xs:dateTime"/>
244
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
245
+ <xs:element name="Environment" type="tns:EnvironmentType" minOccurs="0"/>
246
+ <!-- Enveloped signature, signing the RevokeCertificateResponse element-->
247
+ <xs:element ref="ds:Signature" minOccurs="0"/>
248
+ </xs:sequence>
249
+ <xs:attribute ref="xml:id"/>
250
+ </xs:complexType>
251
+ </xs:element>
252
+ <xs:element name="CertificateStatusRequest">
253
+ <xs:complexType>
254
+ <xs:sequence>
255
+ <xs:element name="KeyGeneratorType" type="tns:KeyGeneratorTypeType"/>
256
+ <xs:element name="CertificateSerialNo" type="tns:CertificateIdType" maxOccurs="10"/>
257
+ <xs:element name="CustomerId" type="tns:CustomerIdType"/>
258
+ <xs:element name="Timestamp" type="xs:dateTime"/>
259
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
260
+ <!-- Enveloped signature, signing the CertificateStatusRequest element-->
261
+ <xs:element ref="ds:Signature" minOccurs="0"/>
262
+ </xs:sequence>
263
+ <xs:attribute ref="xml:id"/>
264
+ </xs:complexType>
265
+ </xs:element>
266
+ <xs:element name="CertificateStatusResponse">
267
+ <xs:complexType>
268
+ <xs:sequence>
269
+ <xs:element name="ReturnCode" type="tns:ReturncodeType"/>
270
+ <xs:element name="ReturnText" type="tns:ReturnTextType"/>
271
+ <xs:element name="CertificateStatus" type="tns:CertificateStatusType" maxOccurs="10"/>
272
+ <xs:element name="Timestamp" type="xs:dateTime"/>
273
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
274
+ <!-- Enveloped signature, signing the CertificateStatusResponse element-->
275
+ <xs:element ref="ds:Signature" minOccurs="0"/>
276
+ </xs:sequence>
277
+ <xs:attribute ref="xml:id"/>
278
+ </xs:complexType>
279
+ </xs:element>
280
+ <xs:element name="GetOwnCertificateListRequest">
281
+ <xs:complexType>
282
+ <xs:sequence>
283
+ <xs:element name="KeyGeneratorType" type="tns:KeyGeneratorTypeType"/>
284
+ <xs:element name="CustomerId" type="tns:CustomerIdType"/>
285
+ <xs:element name="Timestamp" type="xs:dateTime"/>
286
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
287
+ <!-- Enveloped signature, signing the GetCertificateListRequest element-->
288
+ <xs:element ref="ds:Signature" minOccurs="0"/>
289
+ </xs:sequence>
290
+ <xs:attribute ref="xml:id"/>
291
+ </xs:complexType>
292
+ </xs:element>
293
+ <xs:element name="GetOwnCertificateListResponse">
294
+ <xs:complexType>
295
+ <xs:sequence>
296
+ <xs:element name="ReturnCode" type="tns:ReturncodeType"/>
297
+ <xs:element name="ReturnText" type="tns:ReturnTextType"/>
298
+ <xs:element name="CertificateStatus" type="tns:CertificateStatusType" minOccurs="0" maxOccurs="unbounded"/>
299
+ <!-- Enveloped signature, signing the GetCertificateListResponse element-->
300
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
301
+ <xs:element ref="ds:Signature" minOccurs="0"/>
302
+ </xs:sequence>
303
+ <xs:attribute ref="xml:id"/>
304
+ </xs:complexType>
305
+ </xs:element>
306
+ <xs:element name="GetBankCertificateRequest">
307
+ <xs:complexType>
308
+ <xs:sequence>
309
+ <xs:element name="BankRootCertificateSerialNo" type="tns:CertificateIdType"/>
310
+ <xs:element name="Timestamp" type="xs:dateTime"/>
311
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
312
+ </xs:sequence>
313
+ <xs:attribute ref="xml:id"/>
314
+ </xs:complexType>
315
+ </xs:element>
316
+ <xs:element name="GetBankCertificateResponse">
317
+ <xs:annotation>
318
+ <xs:documentation>Response to a GetBankCertificate request. Contains the relevant bank certificates.</xs:documentation>
319
+ </xs:annotation>
320
+ <xs:complexType>
321
+ <xs:sequence>
322
+ <xs:element name="ReturnCode" type="tns:ReturncodeType"/>
323
+ <xs:element name="ReturnText" type="tns:ReturnTextType"/>
324
+ <xs:element name="BankEncryptionCert" type="tns:CertificateType"/>
325
+ <xs:element name="BankSigningCert" type="tns:CertificateType"/>
326
+ <xs:element name="BankRootCert" type="tns:CertificateType"/>
327
+ <xs:element name="RequestId" type="tns:RequestIdType"/>
328
+ <!-- Enveloped signature, signing the GetBankCertificateResponse element-->
329
+ <xs:element ref="ds:Signature" minOccurs="0"/>
330
+ </xs:sequence>
331
+ <xs:attribute ref="xml:id"/>
332
+ </xs:complexType>
333
+ </xs:element>
334
+ </xs:schema>
@@ -0,0 +1,195 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ 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.
4
+ 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.
5
+ Copyright © OASIS Open 2002-2004. All Rights Reserved.
6
+ 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.
7
+ The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
8
+ 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.
9
+ -->
10
+ <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">
11
+ <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"/>
12
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
13
+ <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
14
+ <xsd:complexType name="AttributedString">
15
+ <xsd:annotation>
16
+ <xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
17
+ </xsd:annotation>
18
+ <xsd:simpleContent>
19
+ <xsd:extension base="xsd:string">
20
+ <xsd:attribute ref="wsu:Id"/>
21
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
22
+ </xsd:extension>
23
+ </xsd:simpleContent>
24
+ </xsd:complexType>
25
+ <xsd:complexType name="PasswordString">
26
+ <xsd:annotation>
27
+ <xsd:documentation>This type is used for password elements per Section 4.1.</xsd:documentation>
28
+ </xsd:annotation>
29
+ <xsd:simpleContent>
30
+ <xsd:extension base="wsse:AttributedString">
31
+ <xsd:attribute name="Type" type="xsd:anyURI"/>
32
+ </xsd:extension>
33
+ </xsd:simpleContent>
34
+ </xsd:complexType>
35
+ <xsd:complexType name="EncodedString">
36
+ <xsd:annotation>
37
+ <xsd:documentation>This type is used for elements containing stringified binary data.</xsd:documentation>
38
+ </xsd:annotation>
39
+ <xsd:simpleContent>
40
+ <xsd:extension base="wsse:AttributedString">
41
+ <xsd:attribute name="EncodingType" type="xsd:anyURI"/>
42
+ </xsd:extension>
43
+ </xsd:simpleContent>
44
+ </xsd:complexType>
45
+ <xsd:complexType name="UsernameTokenType">
46
+ <xsd:annotation>
47
+ <xsd:documentation>This type represents a username token per Section 4.1</xsd:documentation>
48
+ </xsd:annotation>
49
+ <xsd:sequence>
50
+ <xsd:element name="Username" type="wsse:AttributedString"/>
51
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
52
+ </xsd:sequence>
53
+ <xsd:attribute ref="wsu:Id"/>
54
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
55
+ </xsd:complexType>
56
+ <xsd:complexType name="BinarySecurityTokenType">
57
+ <xsd:annotation>
58
+ <xsd:documentation>A security token that is encoded in binary</xsd:documentation>
59
+ </xsd:annotation>
60
+ <xsd:simpleContent>
61
+ <xsd:extension base="wsse:EncodedString">
62
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
63
+ </xsd:extension>
64
+ </xsd:simpleContent>
65
+ </xsd:complexType>
66
+ <xsd:complexType name="KeyIdentifierType">
67
+ <xsd:annotation>
68
+ <xsd:documentation>A security token key identifier</xsd:documentation>
69
+ </xsd:annotation>
70
+ <xsd:simpleContent>
71
+ <xsd:extension base="wsse:EncodedString">
72
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
73
+ </xsd:extension>
74
+ </xsd:simpleContent>
75
+ </xsd:complexType>
76
+ <xsd:simpleType name="tUsage">
77
+ <xsd:annotation>
78
+ <xsd:documentation>Typedef to allow a list of usages (as URIs).</xsd:documentation>
79
+ </xsd:annotation>
80
+ <xsd:list itemType="xsd:anyURI"/>
81
+ </xsd:simpleType>
82
+ <xsd:attribute name="Usage" type="tUsage">
83
+ <xsd:annotation>
84
+ <xsd:documentation>This global attribute is used to indicate the usage of a referenced or indicated token within the containing context</xsd:documentation>
85
+ </xsd:annotation>
86
+ </xsd:attribute>
87
+ <xsd:complexType name="ReferenceType">
88
+ <xsd:annotation>
89
+ <xsd:documentation>This type represents a reference to an external security token.</xsd:documentation>
90
+ </xsd:annotation>
91
+ <xsd:attribute name="URI" type="xsd:anyURI"/>
92
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
93
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
94
+ </xsd:complexType>
95
+ <xsd:complexType name="EmbeddedType">
96
+ <xsd:annotation>
97
+ <xsd:documentation>This type represents a reference to an embedded security token.</xsd:documentation>
98
+ </xsd:annotation>
99
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
100
+ <xsd:any processContents="lax"/>
101
+ </xsd:choice>
102
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
103
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
104
+ </xsd:complexType>
105
+ <xsd:complexType name="SecurityTokenReferenceType">
106
+ <xsd:annotation>
107
+ <xsd:documentation>This type is used reference a security token.</xsd:documentation>
108
+ </xsd:annotation>
109
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
110
+ <xsd:any processContents="lax"/>
111
+ </xsd:choice>
112
+ <xsd:attribute ref="wsu:Id"/>
113
+ <xsd:attribute ref="wsse:Usage"/>
114
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
115
+ </xsd:complexType>
116
+ <xsd:complexType name="SecurityHeaderType">
117
+ <xsd:annotation>
118
+ <xsd:documentation>This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.</xsd:documentation>
119
+ </xsd:annotation>
120
+ <xsd:sequence>
121
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
122
+ <xsd:annotation>
123
+ <xsd:documentation>The use of "any" is to allow extensibility and different forms of security data.</xsd:documentation>
124
+ </xsd:annotation>
125
+ </xsd:any>
126
+ </xsd:sequence>
127
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
128
+ </xsd:complexType>
129
+ <xsd:complexType name="TransformationParametersType">
130
+ <xsd:annotation>
131
+ <xsd:documentation>This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation.</xsd:documentation>
132
+ </xsd:annotation>
133
+ <xsd:sequence>
134
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
135
+ <xsd:annotation>
136
+ <xsd:documentation>The use of "any" is to allow extensibility from any namespace.</xsd:documentation>
137
+ </xsd:annotation>
138
+ </xsd:any>
139
+ </xsd:sequence>
140
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
141
+ </xsd:complexType>
142
+ <xsd:element name="UsernameToken" type="wsse:UsernameTokenType">
143
+ <xsd:annotation>
144
+ <xsd:documentation>This element defines the wsse:UsernameToken element per Section 4.1.</xsd:documentation>
145
+ </xsd:annotation>
146
+ </xsd:element>
147
+ <xsd:element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType">
148
+ <xsd:annotation>
149
+ <xsd:documentation>This element defines the wsse:BinarySecurityToken element per Section 4.2.</xsd:documentation>
150
+ </xsd:annotation>
151
+ </xsd:element>
152
+ <xsd:element name="Reference" type="wsse:ReferenceType">
153
+ <xsd:annotation>
154
+ <xsd:documentation>This element defines a security token reference</xsd:documentation>
155
+ </xsd:annotation>
156
+ </xsd:element>
157
+ <xsd:element name="Embedded" type="wsse:EmbeddedType">
158
+ <xsd:annotation>
159
+ <xsd:documentation>This element defines a security token embedded reference</xsd:documentation>
160
+ </xsd:annotation>
161
+ </xsd:element>
162
+ <xsd:element name="KeyIdentifier" type="wsse:KeyIdentifierType">
163
+ <xsd:annotation>
164
+ <xsd:documentation>This element defines a key identifier reference</xsd:documentation>
165
+ </xsd:annotation>
166
+ </xsd:element>
167
+ <xsd:element name="SecurityTokenReference" type="wsse:SecurityTokenReferenceType">
168
+ <xsd:annotation>
169
+ <xsd:documentation>This element defines the wsse:SecurityTokenReference per Section 4.3.</xsd:documentation>
170
+ </xsd:annotation>
171
+ </xsd:element>
172
+ <xsd:element name="Security" type="wsse:SecurityHeaderType">
173
+ <xsd:annotation>
174
+ <xsd:documentation>This element defines the wsse:Security SOAP header element per Section 4.</xsd:documentation>
175
+ </xsd:annotation>
176
+ </xsd:element>
177
+ <xsd:element name="TransformationParameters" type="wsse:TransformationParametersType">
178
+ <xsd:annotation>
179
+ <xsd:documentation>This element contains properties for transformations from any namespace, including DSIG.</xsd:documentation>
180
+ </xsd:annotation>
181
+ </xsd:element>
182
+ <xsd:element name="Password" type="wsse:PasswordString"/>
183
+ <xsd:element name="Nonce" type="wsse:EncodedString"/>
184
+ <xsd:simpleType name="FaultcodeEnum">
185
+ <xsd:restriction base="xsd:QName">
186
+ <xsd:enumeration value="wsse:UnsupportedSecurityToken"/>
187
+ <xsd:enumeration value="wsse:UnsupportedAlgorithm"/>
188
+ <xsd:enumeration value="wsse:InvalidSecurity"/>
189
+ <xsd:enumeration value="wsse:InvalidSecurityToken"/>
190
+ <xsd:enumeration value="wsse:FailedAuthentication"/>
191
+ <xsd:enumeration value="wsse:FailedCheck"/>
192
+ <xsd:enumeration value="wsse:SecurityTokenUnavailable"/>
193
+ </xsd:restriction>
194
+ </xsd:simpleType>
195
+ </xsd:schema>
@@ -0,0 +1,108 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ 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.
4
+ 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.
5
+ Copyright © OASIS Open 2002-2004. All Rights Reserved.
6
+ 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.
7
+ The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
8
+ 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.
9
+ -->
10
+ <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"
11
+
12
+
13
+
14
+ 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"
15
+ elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
16
+ <!-- // Fault Codes /////////////////////////////////////////// -->
17
+ <xsd:simpleType name="tTimestampFault">
18
+ <xsd:annotation>
19
+ <xsd:documentation>
20
+ This type defines the fault code value for Timestamp message expiration.
21
+ </xsd:documentation>
22
+ </xsd:annotation>
23
+ <xsd:restriction base="xsd:QName">
24
+ <xsd:enumeration value="wsu:MessageExpired"/>
25
+ </xsd:restriction>
26
+ </xsd:simpleType>
27
+ <!-- // Global attributes //////////////////////////////////// -->
28
+ <xsd:attribute name="Id" type="xsd:ID">
29
+ <xsd:annotation>
30
+ <xsd:documentation>
31
+ This global attribute supports annotating arbitrary elements with an ID.
32
+ </xsd:documentation>
33
+ </xsd:annotation>
34
+ </xsd:attribute>
35
+ <xsd:attributeGroup name="commonAtts">
36
+ <xsd:annotation>
37
+ <xsd:documentation>
38
+ Convenience attribute group used to simplify this schema.
39
+ </xsd:documentation>
40
+ </xsd:annotation>
41
+ <xsd:attribute ref="wsu:Id" use="optional"/>
42
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
43
+ </xsd:attributeGroup>
44
+ <!-- // Utility types //////////////////////////////////////// -->
45
+ <xsd:complexType name="AttributedDateTime">
46
+ <xsd:annotation>
47
+ <xsd:documentation>
48
+ This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes.
49
+ </xsd:documentation>
50
+ </xsd:annotation>
51
+ <xsd:simpleContent>
52
+ <xsd:extension base="xsd:string">
53
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
54
+ </xsd:extension>
55
+ </xsd:simpleContent>
56
+ </xsd:complexType>
57
+ <xsd:complexType name="AttributedURI">
58
+ <xsd:annotation>
59
+ <xsd:documentation>
60
+ This type is for elements whose [children] is an anyURI and can have arbitrary attributes.
61
+ </xsd:documentation>
62
+ </xsd:annotation>
63
+ <xsd:simpleContent>
64
+ <xsd:extension base="xsd:anyURI">
65
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
66
+ </xsd:extension>
67
+ </xsd:simpleContent>
68
+ </xsd:complexType>
69
+ <!-- // Timestamp header components /////////////////////////// -->
70
+ <xsd:complexType name="TimestampType">
71
+ <xsd:annotation>
72
+ <xsd:documentation>
73
+ This complex type ties together the timestamp related elements into a composite type.
74
+ </xsd:documentation>
75
+ </xsd:annotation>
76
+ <xsd:sequence>
77
+ <xsd:element ref="wsu:Created" minOccurs="0"/>
78
+ <xsd:element ref="wsu:Expires" minOccurs="0"/>
79
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
80
+ <xsd:any namespace="##other" processContents="lax"/>
81
+ </xsd:choice>
82
+ </xsd:sequence>
83
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
84
+ </xsd:complexType>
85
+ <xsd:element name="Timestamp" type="wsu:TimestampType">
86
+ <xsd:annotation>
87
+ <xsd:documentation>
88
+ This element allows Timestamps to be applied anywhere element wildcards are present,
89
+ including as a SOAP header.
90
+ </xsd:documentation>
91
+ </xsd:annotation>
92
+ </xsd:element>
93
+ <!-- global element decls to allow individual elements to appear anywhere -->
94
+ <xsd:element name="Expires" type="wsu:AttributedDateTime">
95
+ <xsd:annotation>
96
+ <xsd:documentation>
97
+ This element allows an expiration time to be applied anywhere element wildcards are present.
98
+ </xsd:documentation>
99
+ </xsd:annotation>
100
+ </xsd:element>
101
+ <xsd:element name="Created" type="wsu:AttributedDateTime">
102
+ <xsd:annotation>
103
+ <xsd:documentation>
104
+ This element allows a creation time to be applied anywhere element wildcards are present.
105
+ </xsd:documentation>
106
+ </xsd:annotation>
107
+ </xsd:element>
108
+ </xsd:schema>