quot;, mfue);
}
return (_ed);
}
Moreover, I have tested the xmlCipher.decryptToByteArray() function and I
confirm that it works for binary datas.
Christophe
-----Message d'origine-
De : Berin Lautenbach [mailto:[EMAIL PROTECTED]
Envoyé : mardi 4 avril 2006 12:06
À : security
: [email protected]
Subject: Re: xml encryption/decryption of binary data
Hess Yvan wrote:
> 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
Title: xml encryption/decryption of binary data
The problem is that you have to register the Resolver
globally to get the content associated to the URI. In XML signature you can
set it for each element you want to verify the signature, but in XML
encryption you have to set it globally that
Hess Yvan wrote:
> 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
Title: xml encryption/decryption of binary data
OK.
To
decrypt, there is xmlCipher.decryptToByteArray(), but I haven't tested it
yet.
-Message d'origine-De : Hess Yvan
[mailto:[EMAIL PROTECTED]Envoyé : mardi 4 avril 2006
11:56À : [email protected]
Title: xml encryption/decryption of binary data
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
http://www.w3.org/20
XML documents.
A23B45C56
-Message d'origine-
De : Berin Lautenbach [mailto:[EMAIL PROTECTED]
Envoyé : mardi 4 avril 2006 11:24
À : [email protected]
Objet : Re: xml encryption/decryption of binary data
Larchier Christophe wrote:
> I sign
Lautenbach [mailto:[EMAIL PROTECTED]
Envoyé : mardi 4 avril 2006 11:24
À : [email protected]
Objet : Re: xml encryption/decryption of binary data
Larchier Christophe wrote:
> I sign with XML Signature.
> Note that canonicalization is not allowed.
Then it's not truly XML signatur
Title: xml encryption/decryption of binary data
The binary datas are externals (payloads of SOAP with attachments
messages).
-Message d'origine-De : Hess Yvan
[mailto:[EMAIL PROTECTED]Envoyé : mardi 4 avril 2006
11:29À : [email protected] :
RE
Title: xml encryption/decryption of binary data
Where you binary
datas are stored ? Inside the XML document or outside the document ? Actualy I
am "using" XML security to encryt external binary data and may be
I can help you if you explain me the problem in detail.
Regards.
Larchier Christophe wrote:
> I sign with XML Signature.
> Note that canonicalization is not allowed.
Then it's not truly XML signature. Without canonicalisation you run
into the problems that you are seeing. So the only real way past is to
treat your document as a byte stream rather than an XML
Title: xml encryption/decryption of binary data
Which
package do you refer to ?
If
it's possible, I'd prefer not setting the world on fire.
Christophe
-Message d'origine-De : Martin Labarthe Dubois
[mailto:[EMAIL PROTECTED]Envoyé : lundi 3 avril 2006
20
Title: xml encryption/decryption of binary data
why don´t you just use Java crypt primitives for
that?
- Original Message -
From:
Larchier
Christophe
To: [email protected]
Sent: Friday, March 31, 2006 4:41
AM
Subject: RE: xml encryption/decryption of
I sign with XML Signature.
Note that canonicalization is not allowed.
Christophe
-Message d'origine-
De : Berin Lautenbach [mailto:[EMAIL PROTECTED]
Envoyé : samedi 1 avril 2006 12:09
À : [email protected]
Objet : Re: xml encryption/decryption of binary data
Lar
Larchier Christophe wrote:
> I have to sign then encrypt the documents, so they must be exactly the same
> before and after encryption/decryption.
> If the start document has an xml header, the finish document must have the
> xml header (even if it is superfluous).
>
>
> Now, as the 2 docume
uot;http://www.w3.org/2001/04/xmlenc#Content";), but
> there is still the problem of base64 encoding/decoding.
>
> Do you have a better idea/solution ?
>
> Christophe
>
>
>
>
> -Message d'origine-----
> De : Berin Lautenbach [mailto:[EMAIL PRO
nt";), but
> there is still the problem of base64 encoding/decoding.
>
> Do you have a better idea/solution ?
>
> Christophe
>
>
>
>
> -----Message d'origine-----
> De : Berin Lautenbach [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 31 mars 2006 10:5
TED]
Envoyé : vendredi 31 mars 2006 10:59
À : [email protected]
Objet : Re: xml encryption/decryption of binary data
Christophe,
I'm not 100% sure I understand the problems, but I'll try to give some
thoughts.
The xml header is added (or not added) as part of the serialisation
ses xml encryption with binary datas ???
>
>
> -Message d'origine-
> *De :* Larchier Christophe [mailto:[EMAIL PROTECTED]
> *Envoyé :* mercredi 29 mars 2006 17:41
> *À :* [email protected]
> *Objet :* xml encryption/decryption of binary
Title: xml encryption/decryption of binary data
Nobody
uses xml encryption with binary datas ???
-Message d'origine-De : Larchier Christophe
[mailto:[EMAIL PROTECTED]Envoyé : mercredi 29 mars 2006
17:41À : [email protected] :
xml encryption/decrypti
Title: xml encryption/decryption of binary data
Hi all,
When I use apache xml security library to encrypt an xml document like the following one, the xml header is loosen.
...
After encrypting/decrypting, I get only :
...
I use the doFinal() method to encrypt/decrypt
21 matches
Mail list logo