Julien, usually the handlers that are included with WSS4J (Axis handlers and JAX-RPC handlers are availiable) are controling the setup of SOAP requests. Pls have a look in the Javadoc of the **/axis/ directory / paackage.
Regards, Werner > -----Ursprüngliche Nachricht----- > Von: Julien Martelli [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 3. August 2005 07:42 > An: [email protected] > Betreff: 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) > > > Hi, I am a newbie user of WSS4J and I am trying to write a > very simple > example of soap message encryption. > > Here is my code (in which document is a Document representation of a > soap message): > > WSEncryptBody encryptor = new WSEncryptBody(); > > Crypto crypto = > CryptoFactory.getInstance("crypto.properties"); > Vector parts = new Vector(); > SOAP11Constants soapConstants = new SOAP11Constants(); > WSEncryptionPart part = new > WSEncryptionPart(soapConstants.getBodyQName().getLocalPart(), > soapConstants.getEnvelopeURI(), > "Content"); > parts.add(part); > encryptor.setParts(parts); // this is > optional since the > body is encrypted by default > > encryptor.setUserInfo("16c73ab6-b892-458f-abf5-2f875f74882e"); > document = encryptor.build(document, crypto); > > here is the crypto.properties file: > > org.apache.ws.security.crypto.provider=org.apache.ws.security. > components.crypto.Merlin > org.apache.ws.security.crypto.merlin.keystore.type=pkcs12 > org.apache.ws.security.crypto.merlin.keystore.password=security > org.apache.ws.security.crypto.merlin.keystore.alias=16c73ab6-b > 892-458f-abf5-2f875f74882e > org.apache.ws.security.crypto.merlin.alias.password=security > org.apache.ws.security.crypto.merlin.file=x509.PFX.MSFT > > And here is the error: > > 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) > > Does anybody can help me? Because I am searching on the different > mailing lists archives but I cannot find a response... > Thanks > > 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]
