yes, you understand what i want... that's cool even you can not help me more.
so if somebodyelse can help me... i am waiting for him.
I will read the source code, hoping i can find a solution to my problem.
Matthieu
2006/11/13, Yann <[EMAIL PROTECTED]>:
Ok, I understand now that you do want to encrypt your session key with a certificate but that the certificate is present in memory only, not on hard drive.Sorry, I'm too new to WSS4J for that. Try reading the source code, it's clearer than the documentation (at least for me) and you'll quickly find if what you want is possible.-----Message d'origine-----
De : p m [mailto: [EMAIL PROTECTED]]
Envoyé : lundi 13 novembre 2006 14:40
À : [email protected]
Cc : Yann
Objet : Re: RE : p m [[EMAIL PROTECTED] ]Hello,
I think we don't understand each other.
I would like to encrypt/decrypt without a certificate file stored in my computer like it is written in the cryto.properties, i don't know how i can do this because i get a NullPointeurException when i try to decrypt my SOAP message (my Crypto has null for his properties instance).
I have never written that i want to encrypt/decrypt without using certificate.
When i want to use a certificate which is generated dynamicaly and not stored in my computer, i have a NullPointeurException on the org.apache.ws.security.components.crypto.AbstractCrypto#getCertificateFactory() with the line
String provider = properties.getProperty("org.apache.ws.security.crypto.merlin.cert.provider");
because 'properties' was set to null when i write this :
AbstractCrypto crypto = (AbstractCrypto) CryptoFactory.getInstance ("org.apache.ws.security.components.crypto.Merlin", (Properties) null);
In the constructor :
public AbstractCrypto(Properties properties, ClassLoader loader) {
if (properties == null) {
return;
}
...
}
then wss4j does nothing when properties is equal to 'null'.... but when in my case, for decrypting, there is no test if properties is equal to 'null'... it is normal or wrong?
You say that i can encrypt/decrypt without using certificate, i will try this solution waiting yours answers about my problem.
Thanks a lot
Matthieu
