I am trying to do an encryption(no combination with sigantures but just encryotion). Here are the properties set on the client side.
user2Binding._setProperty(WSHandlerConstants.ACTION, "ENCRYPT");
user2Binding._setProperty(WSHandlerConstants.USER, "KEYHOLDER");
user2Binding._setProperty(WSHandlerConstants.PW_CALLBACK_CLASS, "test.com.ams.coretest.serverdependent.webservices.WSS4JClientPWCallback"); user2Binding._setProperty(WSHandlerConstants.ENC_PROP_FILE, "crypto.properties");

On the cilent side, iget the following error

   [junit] End override of Transform.register.
[junit] org.apache.ws.security.WSSecurityException: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorit hm was used (unsupported key transport encryption algorithm: No such algorithm: http://www.w3.org/20
01/04/xmlenc#rsa-1_5)
[junit] at org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64) [junit] at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:191) [junit] at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170) [junit] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

What am i missing here? Is there a problem with the keys that i generated? I use bouncy castle to generated the keys as follows C:\>keytool -genkey -v -alias KEYHOLDER -sigalg DSA -keypass KEYHOLDERPASSWORD -keystore c:\.signing_device -storepass PASSWORD -storetype BKS -provider BC. i eventried chaging the encryption transport algorithm to user2Binding._setProperty(WSHandlerConstants.ENC_KEY_TRANSPORT, "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";)

_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now! http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG


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

Reply via email to