PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/dblevins/cxf
XML | 350 lines | 331 code | 1 blank | 18 comment | 0 complexity | ab3657fc49d504165ef149468f8c55f7 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}DoubleItOnlySignPort" 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/bindings/only-sign-policy.xml"/>
  44. </p:policies>
  45. </jaxws:features>
  46. </jaxws:client>
  47. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItNotOnlySignPort" 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/bindings/clean-policy.xml"/>
  59. </p:policies>
  60. </jaxws:features>
  61. </jaxws:client>
  62. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptSignaturePort" 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/bindings/encrypt-sig-policy.xml"/>
  74. </p:policies>
  75. </jaxws:features>
  76. </jaxws:client>
  77. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptSignaturePort2" 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/bindings/clean-policy.xml"/>
  89. </p:policies>
  90. </jaxws:features>
  91. </jaxws:client>
  92. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItIncludeTimestampPort" 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/bindings/include-timestamp-policy.xml"/>
  104. </p:policies>
  105. </jaxws:features>
  106. </jaxws:client>
  107. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItIncludeTimestampPort2" 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/bindings/clean-policy.xml"/>
  119. </p:policies>
  120. </jaxws:features>
  121. </jaxws:client>
  122. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptBeforeSigningPort" 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/bindings/encrypt-before-signing-policy.xml"/>
  134. </p:policies>
  135. </jaxws:features>
  136. </jaxws:client>
  137. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItEncryptBeforeSigningPort2" 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/bindings/clean-policy.xml"/>
  149. </p:policies>
  150. </jaxws:features>
  151. </jaxws:client>
  152. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignBeforeEncryptingPort" 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/bindings/sign-before-encrypting-policy.xml"/>
  164. </p:policies>
  165. </jaxws:features>
  166. </jaxws:client>
  167. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignBeforeEncryptingPort2" 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/bindings/encrypt-before-signing-policy.xml"/>
  179. </p:policies>
  180. </jaxws:features>
  181. </jaxws:client>
  182. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItTimestampFirstPort" 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/bindings/ts-first-policy.xml"/>
  194. </p:policies>
  195. </jaxws:features>
  196. </jaxws:client>
  197. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItTimestampFirstPort2" 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/bindings/ts-last-policy.xml"/>
  209. </p:policies>
  210. </jaxws:features>
  211. </jaxws:client>
  212. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItTimestampLastPort" 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/bindings/ts-last-policy.xml"/>
  224. </p:policies>
  225. </jaxws:features>
  226. </jaxws:client>
  227. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItTimestampLastPort2" 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/bindings/ts-first-policy.xml"/>
  239. </p:policies>
  240. </jaxws:features>
  241. </jaxws:client>
  242. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItStrictPort" 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/bindings/strict-policy.xml"/>
  254. </p:policies>
  255. </jaxws:features>
  256. </jaxws:client>
  257. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItStrictPort2" 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/bindings/ts-last-policy.xml"/>
  269. </p:policies>
  270. </jaxws:features>
  271. </jaxws:client>
  272. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItTokenProtectionPort" 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/bindings/protect-tokens-policy.xml"/>
  284. </p:policies>
  285. </jaxws:features>
  286. </jaxws:client>
  287. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItTokenProtectionPort2" 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" URI="classpath:/org/apache/cxf/systest/ws/bindings/clean-policy.xml"/>
  299. </p:policies>
  300. </jaxws:features>
  301. </jaxws:client>
  302. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignatureConfirmationPort" createdFromAPI="true">
  303. <jaxws:properties>
  304. <entry key="security.username" value="Alice"/>
  305. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  306. <entry key="security.encryption.properties" value="bob.properties"/>
  307. <entry key="security.encryption.username" value="bob"/>
  308. <entry key="security.signature.properties" value="alice.properties"/>
  309. <entry key="security.signature.username" value="alice"/>
  310. </jaxws:properties>
  311. <jaxws:features>
  312. <p:policies>
  313. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/bindings/sig-conf-policy.xml"/>
  314. </p:policies>
  315. </jaxws:features>
  316. </jaxws:client>
  317. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignatureConfirmationPort2" createdFromAPI="true">
  318. <jaxws:properties>
  319. <entry key="security.username" value="Alice"/>
  320. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  321. <entry key="security.encryption.properties" value="bob.properties"/>
  322. <entry key="security.encryption.username" value="bob"/>
  323. <entry key="security.signature.properties" value="alice.properties"/>
  324. <entry key="security.signature.username" value="alice"/>
  325. </jaxws:properties>
  326. <jaxws:features>
  327. <p:policies>
  328. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/bindings/sig-conf-policy.xml"/>
  329. </p:policies>
  330. </jaxws:features>
  331. </jaxws:client>
  332. <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSignatureConfirmationEncBeforeSigningPort" createdFromAPI="true">
  333. <jaxws:properties>
  334. <entry key="security.username" value="Alice"/>
  335. <entry key="security.callback-handler" value="org.apache.cxf.systest.ws.common.UTPasswordCallback"/>
  336. <entry key="security.encryption.properties" value="bob.properties"/>
  337. <entry key="security.encryption.username" value="bob"/>
  338. <entry key="security.signature.properties" value="alice.properties"/>
  339. <entry key="security.signature.username" value="alice"/>
  340. </jaxws:properties>
  341. <jaxws:features>
  342. <p:policies>
  343. <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="classpath:/org/apache/cxf/systest/ws/bindings/sig-conf-enc-before-signing-policy.xml"/>
  344. </p:policies>
  345. </jaxws:features>
  346. </jaxws:client>
  347. </beans>