Without having more info I can just guess that you
didn't initialize the security library. If you
just use the WSSign* or WSEncrypt* classes this is
not done automatically. Usually an application
that uses the WSS4J libs also instatiate the 
WSSecurityEngine that starts und initializes the
securrity environment (e.g. adds the BouncyCastle
as a Java security provider). BouncyCastle contains
all necessary algorithms that perform encryption,
hashing, etc.

Regards,
Werner

> -----Ursprüngliche Nachricht-----
> Von: Julien Martelli [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 4. August 2005 01:52
> An: [email protected]
> Betreff: Newbie question
> 
> 
> Hi all,
> 
> I am a newbie with WSS4J so maybe my questions could be a 
> little silly 
> and I am sorry about that...
> 
> I am using SOAP messages in a specific application but not in a Web 
> application, I am using it in a context of an agent platform 
> and we want 
> to give the possibility to our agents to use SOAP messages.
> The basic communication patern with SOAP works well but now 
> we want to 
> develop it by using encryption for the communications. That's 
> why I am 
> interested in WSS4J. I am using some of the libraries given with Axis 
> (saaj for the SOAP message generation) but I don't have any 
> Web Service 
> deployed and I am going to make my agents contacting a Web Service.
> 
> In fact I am wondering how can I use WSS4J in the purpose I've just 
> exposed to you?  I tried to use the simple SOAP message 
> encryption which 
> is described here http://ws.apache.org/wss4j/api.html but I have some 
> strange errors like this one :
> 
> org.apache.ws.security.WSSecurityException: An unsupported 
> signature or 
> encryption algorithm was used (unsupported key transport encryption 
> algorithm: no provider: http://www.w3.org/2001/04/xmlenc#rsa-1_5)
>    at 
> org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(W
> SSecurityUtil.java:896) 
> 
>    at 
> org.apache.ws.security.message.WSEncryptBody.build(WSEncryptBo
> dy.java:337)
> 
> I haven't done any special configuration of WSS4J, I am just using it 
> with the basic configuration...
> 
> Can someone help me, or can someone give me some advices 
> about the way 
> to use WSS4J in my specific context?
> 
> Thank you,
> Julien
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to