Hi, I assume you wanna use UsernameToken of ws-security to set username/password. No, you needn't use WSS4J Interceptors and ws-policy together, each of them can do this work. Actually we have ut and ut_policy examples shipped with kit to demonstrate both way, you may need take a look, it's a good start for you. ------------- Freeman(Yue) Fang
Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2012-12-19, at 下午3:31, lv wrote: > > I am new to cxf and need to add security to web services. > I read the document in the cxf website. However, I am still confused. > If I need to add username and password to web services, what should I do? > Must I use WSS4J Interceptors and web service policy together? > > Thanks >
