PageRenderTime 39ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 1ms

/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/parts/client.xml

https://github.com/dblevins/cxf
XML | 355 lines | 335 code | 2 blank | 18 comment | 0 complexity | 40e4683891ce2891808acb78bfbf3f33 MD5 | raw file
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <beans xmlns="http://www.springframework.org/schema/beans"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xmlns:http="http://cxf.apache.org/transports/http/configuration"
  21. xmlns:jaxws="http://cxf.apache.org/jaxws"
  22. xmlns:cxf="http://cxf.apache.org/core"
  23. xmlns:p="http://cxf.apache.org/policy"
  24. xmlns:sec="http://cxf.apache.org/configuration/security"
  25. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd http://www.w3.org/ns/ws-policy http://www.w3.org/2007/02/ws-policy.xsd">
  26. <cxf:bus>
  27. <cxf:features>
  28. <p:policies/>
  29. <cxf:logging/>
  30. </cxf:features>
  31. </cxf:bus>
  32. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItRequiredPartsPort" createdFromAPI="true">
  33. <jaxws:properties>
  34. <entry key="security.username" value="Alice"/>
  35. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  36. <entry key="security.encryption.properties" value="bob.properties"/>
  37. <entry key="security.encryption.username" value="bob"/>
  38. <entry key="security.signature.properties" value="alice.properties"/>
  39. <entry key="security.signature.username" value="alice"/>
  40. </jaxws:properties>
  41. <jaxws:features>
  42. <p:policies>
  43. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/addr-policy.xml"/>
  44. </p:policies>
  45. </jaxws:features>
  46. </jaxws:client>
  47. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItRequiredPartsPort2" createdFromAPI="true">
  48. <jaxws:properties>
  49. <entry key="security.username" value="Alice"/>
  50. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  51. <entry key="security.encryption.properties" value="bob.properties"/>
  52. <entry key="security.encryption.username" value="bob"/>
  53. <entry key="security.signature.properties" value="alice.properties"/>
  54. <entry key="security.signature.username" value="alice"/>
  55. </jaxws:properties>
  56. <jaxws:features>
  57. <p:policies>
  58. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/addr-policy.xml"/>
  59. </p:policies>
  60. </jaxws:features>
  61. </jaxws:client>
  62. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItRequiredElementsPort" createdFromAPI="true">
  63. <jaxws:properties>
  64. <entry key="security.username" value="Alice"/>
  65. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  66. <entry key="security.encryption.properties" value="bob.properties"/>
  67. <entry key="security.encryption.username" value="bob"/>
  68. <entry key="security.signature.properties" value="alice.properties"/>
  69. <entry key="security.signature.username" value="alice"/>
  70. </jaxws:properties>
  71. <jaxws:features>
  72. <p:policies>
  73. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/addr-policy.xml"/>
  74. </p:policies>
  75. </jaxws:features>
  76. </jaxws:client>
  77. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItRequiredElementsPort2" createdFromAPI="true">
  78. <jaxws:properties>
  79. <entry key="security.username" value="Alice"/>
  80. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  81. <entry key="security.encryption.properties" value="bob.properties"/>
  82. <entry key="security.encryption.username" value="bob"/>
  83. <entry key="security.signature.properties" value="alice.properties"/>
  84. <entry key="security.signature.username" value="alice"/>
  85. </jaxws:properties>
  86. <jaxws:features>
  87. <p:policies>
  88. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/addr-policy.xml"/>
  89. </p:policies>
  90. </jaxws:features>
  91. </jaxws:client>
  92. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignedPartsPort" createdFromAPI="true">
  93. <jaxws:properties>
  94. <entry key="security.username" value="Alice"/>
  95. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  96. <entry key="security.encryption.properties" value="bob.properties"/>
  97. <entry key="security.encryption.username" value="bob"/>
  98. <entry key="security.signature.properties" value="alice.properties"/>
  99. <entry key="security.signature.username" value="alice"/>
  100. </jaxws:properties>
  101. <jaxws:features>
  102. <p:policies>
  103. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/signed-parts-policy.xml"/>
  104. </p:policies>
  105. </jaxws:features>
  106. </jaxws:client>
  107. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignedPartsPort2" createdFromAPI="true">
  108. <jaxws:properties>
  109. <entry key="security.username" value="Alice"/>
  110. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  111. <entry key="security.encryption.properties" value="bob.properties"/>
  112. <entry key="security.encryption.username" value="bob"/>
  113. <entry key="security.signature.properties" value="alice.properties"/>
  114. <entry key="security.signature.username" value="alice"/>
  115. </jaxws:properties>
  116. <jaxws:features>
  117. <p:policies>
  118. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/signed-addr-policy.xml"/>
  119. </p:policies>
  120. </jaxws:features>
  121. </jaxws:client>
  122. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignedPartsPort3" createdFromAPI="true">
  123. <jaxws:properties>
  124. <entry key="security.username" value="Alice"/>
  125. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  126. <entry key="security.encryption.properties" value="bob.properties"/>
  127. <entry key="security.encryption.username" value="bob"/>
  128. <entry key="security.signature.properties" value="alice.properties"/>
  129. <entry key="security.signature.username" value="alice"/>
  130. </jaxws:properties>
  131. <jaxws:features>
  132. <p:policies>
  133. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/signed-body-policy.xml"/>
  134. </p:policies>
  135. </jaxws:features>
  136. </jaxws:client>
  137. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignedElementsPort" createdFromAPI="true">
  138. <jaxws:properties>
  139. <entry key="security.username" value="Alice"/>
  140. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  141. <entry key="security.encryption.properties" value="bob.properties"/>
  142. <entry key="security.encryption.username" value="bob"/>
  143. <entry key="security.signature.properties" value="alice.properties"/>
  144. <entry key="security.signature.username" value="alice"/>
  145. </jaxws:properties>
  146. <jaxws:features>
  147. <p:policies>
  148. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/signed-elements-policy.xml"/>
  149. </p:policies>
  150. </jaxws:features>
  151. </jaxws:client>
  152. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignedElementsPort2" createdFromAPI="true">
  153. <jaxws:properties>
  154. <entry key="security.username" value="Alice"/>
  155. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  156. <entry key="security.encryption.properties" value="bob.properties"/>
  157. <entry key="security.encryption.username" value="bob"/>
  158. <entry key="security.signature.properties" value="alice.properties"/>
  159. <entry key="security.signature.username" value="alice"/>
  160. </jaxws:properties>
  161. <jaxws:features>
  162. <p:policies>
  163. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/addr-policy.xml"/>
  164. </p:policies>
  165. </jaxws:features>
  166. </jaxws:client>
  167. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedPartsPort" createdFromAPI="true">
  168. <jaxws:properties>
  169. <entry key="security.username" value="Alice"/>
  170. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  171. <entry key="security.encryption.properties" value="bob.properties"/>
  172. <entry key="security.encryption.username" value="bob"/>
  173. <entry key="security.signature.properties" value="alice.properties"/>
  174. <entry key="security.signature.username" value="alice"/>
  175. </jaxws:properties>
  176. <jaxws:features>
  177. <p:policies>
  178. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/encrypted-parts-policy.xml"/>
  179. </p:policies>
  180. </jaxws:features>
  181. </jaxws:client>
  182. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedPartsPort2" createdFromAPI="true">
  183. <jaxws:properties>
  184. <entry key="security.username" value="Alice"/>
  185. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  186. <entry key="security.encryption.properties" value="bob.properties"/>
  187. <entry key="security.encryption.username" value="bob"/>
  188. <entry key="security.signature.properties" value="alice.properties"/>
  189. <entry key="security.signature.username" value="alice"/>
  190. </jaxws:properties>
  191. <jaxws:features>
  192. <p:policies>
  193. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/encrypted-addr-policy.xml"/>
  194. </p:policies>
  195. </jaxws:features>
  196. </jaxws:client>
  197. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedPartsPort3" createdFromAPI="true">
  198. <jaxws:properties>
  199. <entry key="security.username" value="Alice"/>
  200. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  201. <entry key="security.encryption.properties" value="bob.properties"/>
  202. <entry key="security.encryption.username" value="bob"/>
  203. <entry key="security.signature.properties" value="alice.properties"/>
  204. <entry key="security.signature.username" value="alice"/>
  205. </jaxws:properties>
  206. <jaxws:features>
  207. <p:policies>
  208. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/encrypted-body-policy.xml"/>
  209. </p:policies>
  210. </jaxws:features>
  211. </jaxws:client>
  212. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedElementsPort" createdFromAPI="true">
  213. <jaxws:properties>
  214. <entry key="security.username" value="Alice"/>
  215. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  216. <entry key="security.encryption.properties" value="bob.properties"/>
  217. <entry key="security.encryption.username" value="bob"/>
  218. <entry key="security.signature.properties" value="alice.properties"/>
  219. <entry key="security.signature.username" value="alice"/>
  220. </jaxws:properties>
  221. <jaxws:features>
  222. <p:policies>
  223. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/encrypted-elements-policy.xml"/>
  224. </p:policies>
  225. </jaxws:features>
  226. </jaxws:client>
  227. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedElementsPort2" createdFromAPI="true">
  228. <jaxws:properties>
  229. <entry key="security.username" value="Alice"/>
  230. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  231. <entry key="security.encryption.properties" value="bob.properties"/>
  232. <entry key="security.encryption.username" value="bob"/>
  233. <entry key="security.signature.properties" value="alice.properties"/>
  234. <entry key="security.signature.username" value="alice"/>
  235. </jaxws:properties>
  236. <jaxws:features>
  237. <p:policies>
  238. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/addr-policy.xml"/>
  239. </p:policies>
  240. </jaxws:features>
  241. </jaxws:client>
  242. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedElementsPort3" createdFromAPI="true">
  243. <jaxws:properties>
  244. <entry key="security.username" value="Alice"/>
  245. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  246. <entry key="security.encryption.properties" value="bob.properties"/>
  247. <entry key="security.encryption.username" value="bob"/>
  248. <entry key="security.signature.properties" value="alice.properties"/>
  249. <entry key="security.signature.username" value="alice"/>
  250. </jaxws:properties>
  251. <jaxws:features>
  252. <p:policies>
  253. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/multiple-encrypted-elements-policy.xml"/>
  254. </p:policies>
  255. </jaxws:features>
  256. </jaxws:client>
  257. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItContentEncryptedElementsPort" createdFromAPI="true">
  258. <jaxws:properties>
  259. <entry key="security.username" value="Alice"/>
  260. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  261. <entry key="security.encryption.properties" value="bob.properties"/>
  262. <entry key="security.encryption.username" value="bob"/>
  263. <entry key="security.signature.properties" value="alice.properties"/>
  264. <entry key="security.signature.username" value="alice"/>
  265. </jaxws:properties>
  266. <jaxws:features>
  267. <p:policies>
  268. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/content-encrypted-elements-policy.xml"/>
  269. </p:policies>
  270. </jaxws:features>
  271. </jaxws:client>
  272. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItContentEncryptedElementsPort2" createdFromAPI="true">
  273. <jaxws:properties>
  274. <entry key="security.username" value="Alice"/>
  275. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  276. <entry key="security.encryption.properties" value="bob.properties"/>
  277. <entry key="security.encryption.username" value="bob"/>
  278. <entry key="security.signature.properties" value="alice.properties"/>
  279. <entry key="security.signature.username" value="alice"/>
  280. </jaxws:properties>
  281. <jaxws:features>
  282. <p:policies>
  283. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/parts/addr-policy.xml"/>
  284. </p:policies>
  285. </jaxws:features>
  286. </jaxws:client>
  287. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignedAttachmentsPort" createdFromAPI="true">
  288. <jaxws:properties>
  289. <entry key="security.username" value="Alice"/>
  290. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  291. <entry key="security.encryption.properties" value="bob.properties"/>
  292. <entry key="security.encryption.username" value="bob"/>
  293. <entry key="security.signature.properties" value="alice.properties"/>
  294. <entry key="security.signature.username" value="alice"/>
  295. </jaxws:properties>
  296. <jaxws:features>
  297. <p:policies>
  298. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy"
  299. URI="classpath:/org/apache/cxf/systest/ws/parts/signed-attachments-policy.xml"/>
  300. </p:policies>
  301. </jaxws:features>
  302. </jaxws:client>
  303. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignedAttachmentsPort2" createdFromAPI="true">
  304. <jaxws:properties>
  305. <entry key="security.username" value="Alice"/>
  306. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  307. <entry key="security.encryption.properties" value="bob.properties"/>
  308. <entry key="security.encryption.username" value="bob"/>
  309. <entry key="security.signature.properties" value="alice.properties"/>
  310. <entry key="security.signature.username" value="alice"/>
  311. </jaxws:properties>
  312. <jaxws:features>
  313. <p:policies>
  314. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy"
  315. URI="classpath:/org/apache/cxf/systest/ws/parts/signed-body-policy.xml"/>
  316. </p:policies>
  317. </jaxws:features>
  318. </jaxws:client>
  319. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedAttachmentsPort" createdFromAPI="true">
  320. <jaxws:properties>
  321. <entry key="security.username" value="Alice"/>
  322. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  323. <entry key="security.encryption.properties" value="bob.properties"/>
  324. <entry key="security.encryption.username" value="bob"/>
  325. <entry key="security.signature.properties" value="alice.properties"/>
  326. <entry key="security.signature.username" value="alice"/>
  327. </jaxws:properties>
  328. <jaxws:features>
  329. <p:policies>
  330. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy"
  331. URI="classpath:/org/apache/cxf/systest/ws/parts/encrypted-attachments-policy.xml"/>
  332. </p:policies>
  333. </jaxws:features>
  334. </jaxws:client>
  335. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptedAttachmentsPort2" createdFromAPI="true">
  336. <jaxws:properties>
  337. <entry key="security.username" value="Alice"/>
  338. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  339. <entry key="security.encryption.properties" value="bob.properties"/>
  340. <entry key="security.encryption.username" value="bob"/>
  341. <entry key="security.signature.properties" value="alice.properties"/>
  342. <entry key="security.signature.username" value="alice"/>
  343. </jaxws:properties>
  344. <jaxws:features>
  345. <p:policies>
  346. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy"
  347. URI="classpath:/org/apache/cxf/systest/ws/parts/encrypted-body-policy.xml"/>
  348. </p:policies>
  349. </jaxws:features>
  350. </jaxws:client>
  351. </beans>