Re: AW: XML-document checksum

2002-06-14 Thread Jason E. Stewart
"Ing. Hans Pesata" <[EMAIL PROTECTED]> writes: > using a digital signature within my XML-file sounds good, but how > can I do this ? You'd have to write a lot of code yourself. Right now Xerces doesn't support this. jas. - To

RE: XML-document checksum

2002-06-14 Thread Jesse Pelton
Thanks! Now, if only a similar package based on Xerces were available... -Original Message- From: Vitaly Prapirny [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 8:59 AM To: [EMAIL PROTECTED] Subject: Re: XML-document checksum Please, look at http://www.aleksey.com/xmlsec/ XML

Re: XML-document checksum

2002-06-14 Thread Vitaly Prapirny
and I'm not > aware of any open-source libraries that implement the spec. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 6:26 PM > To: [EMAIL PROTECTED] > Subject: RE: XML-document checksum > > Howdy, &

RE: XML-document checksum

2002-06-14 Thread Jesse Pelton
is not trivial, in terms of code or computation, and I'm not aware of any open-source libraries that implement the spec. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 6:26 PM To: [EMAIL PROTECTED] Subject: RE: XML-document checks

AW: XML-document checksum

2002-06-14 Thread Ing. Hans Pesata
Hi ! Thanx for your reply ! // Use a digital siganture in your XML...encode some know string // (known to you // only into it) so users cannot edit and generate a new signature, // or go whole hog and use encryption. using a digital signature within my XML-file sounds good, but how can I do thi

RE: XML-document checksum

2002-06-13 Thread SidY
12:31 AM To: Xerces Mailinglist Subject: XML-document checksum Hi ! I am using XERCES 1.7.0 within my app which writes data into XML-files, I am using a SAX2-parser to parse the XML-documents. I want to add a checksum to the XML-documents to ensure that users are not editing the data. I am

Re: AW: XML-document checksum

2002-06-13 Thread Jason E. Stewart
"Jason E. Stewart" <[EMAIL PROTECTED]> writes: > Since your existing code uses the SystemId, I would take the > LocalFileInputSource code, rename the class to > HansLocalFileInputSource, and change the makeStream() method to return > a HansBinFileInputStream. And then take the BinFileInputStream

Re: AW: XML-document checksum

2002-06-13 Thread Jason E. Stewart
"Ing. Hans Pesata" <[EMAIL PROTECTED]> writes: > ok, as far as I understand this I would have to use the > SAX2XMLReader::parse(const InputSource& source) method instead of > SAX2XMLReader::parse(const XMLCh* const systemId) method correct. > and I somehow have to connect my XML-file to a deri

AW: XML-document checksum

2002-06-13 Thread Ing. Hans Pesata
Hi Jason! // I would make your own InputSource subclass, and BinInputStream // subclass, and I would override readBytes() to calculate the checksum // there. Otherwise, you'll have to make your own scanner implementation // which seems much harder to me. // // Also, you may want to take a look at

Re: XML-document checksum

2002-06-13 Thread Jason E. Stewart
"Ing. Hans Pesata" <[EMAIL PROTECTED]> writes: > How can I do this ? Hey Hans, I would make your own InputSource subclass, and BinInputStream subclass, and I would override readBytes() to calculate the checksum there. Otherwise, you'll have to make your own scanner implementation which seems mu

XML-document checksum

2002-06-13 Thread Ing. Hans Pesata
Hi ! I am using XERCES 1.7.0 within my app which writes data into XML-files, I am using a SAX2-parser to parse the XML-documents. I want to add a checksum to the XML-documents to ensure that users are not editing the data. I am thinking about adding a element to the end of the file which carrie