Announcement Announcement Module
Collapse
No announcement yet.
How to Identify Client : WSS4J with multiple clients Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Identify Client : WSS4J with multiple clients

    I just started working on WSS4J. I need help to identify the client alias name. Your response will be highly appreciated.

    This is the scenario,

    Service expose 2 methods to 2 clients, each client is mapped to one method only, it shouldn't access other method. Each client has different keys.

    Now, Server is able accept requests from both clients without issue, while responding server is able to encrypt with public key of any one of client key as configured in responseFlow,
    <parameter name="user" value="client1alias" />. How to configure for other client?

    I can set the username in MessageContext inside CallbackHandler implementation to make this work, but don't know how to identity client key alias name.
Working...
X