THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
org.apache.cxf.endpoint.Client client; client.getRequestContext().put("ws-security.username.sct", username); client.getRequestContext().put("ws-security.password.sct", password); |
Via the Java API, use code similar to the following:
Code Block |
---|
org.apache.cxf.endpoint.Client client;
client.getRequestContext().put("ws-security.username.sct", username);
client.getRequestContext().put("ws-security.password.sct", password);
|
Note: In most common cases of WS-SecureConversation, you won't need any configuration for the service policy. All of the "hard" stuff is used for the bootstrap policy and the service provides new keys for use by the service policy. This keeps the communication with the service itself as simple and efficient as possible.