Hello, are there any Java examples available for an XML encryption of reference type where I end up with two documents? What I would like to have is a (context) XML document containing something like
<xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"> ... <xenc:CipherData> <xenc:CipherReference URI="file:/C:/encrypted.xml"/> </xenc:CipherData> </xenc:EncryptedData> (plus other unencrypted elements) and an encrypted XML document referenced by the CipherReference element. This XML document should look like <CipherValue>0/3L2VNCEFp7VV59Hf6rQOpFwtgFH5/y3EgBeg+nzrmm9Yi8pXhu65NAVzkyrgnMu3e2FDrakRrN6r2dGMILvBAnxoa8A/uBHAN2XrMMhQk=</CipherValue> (or any other root element, I'm not fixed to that). So I want a totally encrypted XML document containing only a plaintext root element and cipher text and another XML document containing only plaintext and the encryption information like algorithm and so on and of course the reference to the encrypted XML document. Is this possbile with the latest Apache XML security API for Java? Are the any examples for that available besides the unit test sample with the XPath reference for the same document? Thanks for your help. Regards, Dominik _______________________________________________________________________ Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos. Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222
smime.p7s
Description: S/MIME Cryptographic Signature