wood burning stoves 2.0
The moose likes Web Services and the fly likes WS-Security and multiple client capability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WS-Security and multiple client capability" Watch "WS-Security and multiple client capability" New topic

WS-Security and multiple client capability

Michael Ernst

Joined: Jul 03, 2005
Posts: 23

I want to use WS-Security in my Web-Service for authentication. It should only be possible to access the service if a username and a client id is given. The username will be given as an authentication token but how to handle the client id. Whats the common practice to handle this? Is it the right and common way to create a second token because both identifiers are equally important?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
WS-Security only handles username and password. You don't mention passwords - do you have them? If not, you could use the password field to pass along the ID and then use that to perform whatever validation needs performing on the server.

But you probably need the ID in the actual service call as well, in order to customize the results of the call ... ? In that case it should be part of the service method's signature(s).

Or do you mean "token" in the WS-Security sense of the word, like an X509 token?
I agree. Here's the link: http://aspose.com/file-tools
subject: WS-Security and multiple client capability
It's not a secret anymore!