Daniel,

I'm not too sure how far back you are going with the version you were using. But Axl started a complete rewrite that got incorporated into the library (replacing the old alpha code) about 6 months ago (I think - my memory for dates is shocking :>).

You might also want to have a look in CVS at the unit tests

(from memory)

src_unitTests/org/apache/xml/security/tests/encryption/*

I never really used the old stuff. XMLCipher in the new code is the "engine" that you should be using for all encryption/decryption. The CIpherData/CipherReference/CipherValue classes all map to the corresponding XML elements of the same names. Unless you are doing something a bit fancy, you may not need to deal with them directly.

Cheers,
        Berin

Daniel wrote:

Thanks Berin. It's true, it's hard to figure out how to get these things working since the classes have changed A LOT.

I can see how the constants have been moved to the config.xml and later appear in the EncryptionConstants class, but I don't understand how the XmlCipher (in the older version) corresponds to the new CipherData or CipherReference or CipherValue classes.

I will try to create an example (guessing, with luck I'll make it), but any additional help would be fantastic.

Thanks again for your response and any future help.

-- Daniel



Reply via email to