I just only wnat to encrypt the SOAP message.SO on the client side i set the following properties,
user2Binding._setProperty(WSHandlerConstants.ENCRYPTION_USER, "ENCKEY");
user2Binding._setProperty(WSHandlerConstants.PW_CALLBACK_CLASS, "test.com.ams.coretest.serverdependent.webservices.WSS4JClientPWCallback"); user2Binding._setProperty(WSHandlerConstants.ENC_PROP_FILE, "crypto.properties");
user2Binding._setProperty(WSHandlerConstants.ENC_KEY_ID, "DirectReference");
user2Binding._setProperty(WSHandlerConstants.ENC_SYM_ALGO, WSConstants.TRIPLE_DES);

In the client passwordcallback handler, i am trying to set the pssword for the encryption use-ENCKEY (alias)provided.But my code for some reason doesnot seem to go into the client password callbackhandler and i am not able to set the password for the alias.Is this the correct way of calling the callback handler in case of encryption? I am doing this so that on the server side password callback handler, i can have access to the password of the alias so that i can get the private key to decrypt.Please let me know how to do this.I do not se any examples for this. It is always a combination of signature encryption or usernametoken encryption.

_________________________________________________________________
Call friends with PC-to-PC calling -- FREE http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to