【发布时间】:2011-12-05 16:15:09
【问题描述】:
现在我的 WS 端点之一具有以下配置。
<jaxws:endpoint id="myService" implementor="#myServiceImpl" address="/myService">
<jaxws:inInterceptors>
<bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
<ref bean="myServiceInterceptor"/>
</jaxws:inInterceptors>
<jaxws:properties>
<entry key="ws-security.ut.validator" value-ref="myServiceUsernameTokenValidator"/>
<jaxws:properties>
</jaxws:endpoint>
<bean id=" myServiceInterceptor " class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="UsernameToken" />
<entry key="passwordType" value="PasswordText" />
</map>
</constructor-arg>
</ bean>
现在我想将此 bean="myServiceInterceptor" 和自定义 userNameToken Validator 配置 (jaxws:properties) 移动到单独的 jar (say A)。这样任何使用该 jar A 的 spring WS 都可以利用相同的拦截器和 customUseranameToken 功能。
我的问题:
1) How do I setup/configure a generic webservice security interceptor rather than a cxf specific interceptor.
2) How can I setup a common <jaxws:properties> that can be used by all the endpoints.
谢谢!
【问题讨论】:
标签: web-services cxf spring-ws interceptor wss4j