Djelloul Aroui wrote:
Hi Lautenbach,
I mean Java.
I have the XMLSignature Object, that deliver SignedInfo object. In
this Object, I dont find the method, that deliver the DigestValue.
I assume you are using the org.apache.xml.security API and not JSR 105.
The DigestValues are contained in the Reference objects, not the
SignedInfo object, so you need to first get the Reference object that
you want the DigestValue for using the methods getLength() which retruns
the number of References in the SignedInfo and item(int i) which returns
the Reference at the specified index. Then, you need to invoke the
Reference.getDigestValue() method to get the DigestValue bytes.
--Sean
Any Idee to read DigestValue is welcome.
Thanks for your help.
Djelloul
-----Ursprüngliche Nachricht----- Von: Berin Lautenbach
[mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 4. Juli 2006
12:01 An: [email protected] Betreff: Re: WG: help
Out of curiosity - C library or Java?
If all else fails can read directly from the DOM. Having said that,
we should probably have a method to read out the digest.
Cheers, Berin
Djelloul Aroui wrote:
Hallo every body,
I have used the xml security of apache to sign xml files.
I want to check, if a xml is changed or not. To do this, I want to
compare the signatures and the digest values:
1. I generate a new signature for the giving xml 2. I compare the
new generated xml signature with the old one. 3. I cant compare the
digest values, because the object SignedInfo doesnt deliver a
digestValue object?
How can I get the digest value from signedInfo?
Tanks for your help
Djelloul