• Post Reply Bookmark Topic Watch Topic
  • New Topic

CXF: how to apply a WS-Security username token?

 
krishna atok
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anybody please help me in providing the standalone java code for ws-security using user name token profile. Once i have that sample code I need to migrate it to apache cxf.
Appreciate your help.

Thanks,
Kesava.
 
krishna atok
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can some body help me here with this.

Thanks,
Kesava.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want Java code? WS-Security is usually something that gets configured outside of the WS (although CXF could be different for all I know).
 
Kesava Krishna
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

I want to know how can we apply user token ws-security using WSS4J. If possible through a better example illustration

Thanks,
Kesava
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with CXF, so I can't say what its facilities for WS-Security are (which is what you should start finding out if you don't know already).

Offhand I'd say you need to intercept the request before it's sent over the network, and intercept the response before it gets handled when it comes back. JAX-WS (which is one of the APIs CXF implements) has intercept facilities called "Handlers". But I still think using CXF's built-in facilities would be better (if they exist). WS-Security isn't trivial to implement, even via WSS4J.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!