You can ask this question on WSS4J mailing list. But if you only want
to decrypt message with symmetric key, then maybe it will be simpler
to create your own decryption handler without using WSS4j. It
shouldn't be hard to implement. If  you will google for a while you
find some samples for sure.


On 2/12/07, Miguel A Paraz <[EMAIL PROTECTED]> wrote:
Hi,
I would like to create WS-Security messages with a symmetric key
(SecretKey) only, without public key/private key/certificate.

I'm working with a service which precomputes and serializes the DESede
SecretKey, and manually constructs the SOAP XML document. So in my
attempt to connect to it using XFire, I do a -gensecretkey with a
JCEKS Keystore and try to use it.

I guess it's not supported? Thanks for any advice.


Exception in thread "main" org.codehaus.xfire.XFireRuntimeException:
Could not invoke service.. Nested exception is
org.codehaus.xfire.fault.XFireFault: WSHandler: Encryption: error
during message processingorg.apache.ws.security.WSSecurityException:
General security error (Unexpected number of X509Data: for Encryption)
org.codehaus.xfire.fault.XFireFault: WSHandler: Encryption: error
during message processingorg.apache.ws.security.WSSecurityException:
General security error (Unexpected number of X509Data: for Encryption)
        at 
org.codehaus.xfire.security.wss4j.WSS4JOutHandler.invoke(WSS4JOutHandler.java:176)
        at 
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
        at org.codehaus.xfire.client.Client.invoke(Client.java:335)
        at 
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at $Proxy0.add(Unknown Source)
        at com.paraz.xfireuser.Main.main(Main.java:91)
Caused by: org.apache.ws.security.WSSecurityException: WSHandler:
Encryption: error during message
processingorg.apache.ws.security.WSSecurityException: General security
error (Unexpected number of X509Data: for Encryption)
        at 
org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64)
        at 
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:191)
        at 
org.codehaus.xfire.security.wss4j.WSS4JOutHandler.invoke(WSS4JOutHandler.java:154)
        ... 7 more

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to