|
I din't find a way how to encryts external binary data
using Apache XML Security. I proceed in the following way:
1. I created an encrypted key element using Apache XML
Security producing the following result
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:KeyName>SphinxTest</ds:KeyName> </ds:KeyInfo> <xenc:CipherData> <xenc:CipherValue>EHqHZz7s564E/SQSWjvZ49d3fryP7EN+.....</xenc:CipherValue> </xenc:CipherData> <xenc:CarriedKeyName>Generated-AES-SecretKey</xenc:CarriedKeyName> </xenc:EncryptedKey> 2. Then, I created an EncryptedData using
XMLCipher.createEncryptedData(CipherData.REFERENCE_TYPE,
uri);
<xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"> 3. Then I have to encrypt the external binary
"urn:hypersuite:534177D3-C0A8027601B4E829-57982AC1" MANUALLY. I didnt find a
chance to do it using XML security. It seems that the functionalilty is
implemented into Apache xml-signature but not into Apache xml-encryption. I
thing I will have the same problem for decryption :-)
Hope it helps you.
Regards. Yvan
From: Larchier
Christophe [mailto:[EMAIL PROTECTED]
Sent: mardi, 4. avril 2006 11:37 To: [email protected] Subject: RE: xml encryption/decryption of binary data The binary datas are externals (payloads of SOAP with attachments
messages).
|
Title: xml encryption/decryption of binary data
- Re: xml encryption/decryption of binary data Berin Lautenbach
- RE: xml encryption/decryption of binary data Larchier Christophe
- Re: xml encryption/decryption of binary data Berin Lautenbach
- RE: xml encryption/decryption of binary data Larchier Christophe
- Re: xml encryption/decryption of binary data Berin Lautenbach
- RE: xml encryption/decryption of binary data Larchier Christophe
- RE: xml encryption/decryption of binary data Hess Yvan
- RE: xml encryption/decryption of binary data Larchier Christophe
- RE: xml encryption/decryption of binary data Larchier Christophe
- RE: xml encryption/decryption of binary data Larchier Christophe
- RE: xml encryption/decryption of binary data Hess Yvan
- Re: xml encryption/decryption of binary data Berin Lautenbach
- RE: xml encryption/decryption of binary data Larchier Christophe
- RE: xml encryption/decryption of binary data Hess Yvan
- RE: xml encryption/decryption of binary data Hess Yvan
- RE: xml encryption/decryption of binary data Larchier Christophe
