RE: XmlEncryptor - An XML Encryption Demonstrator (with ZIP file)

Doh!  Here's the zip...
Ed

-----Original Message-----
From: Ed Simon [mailto:ed.simon@entrust.com]
Sent: Monday, October 30, 2000 9:19 AM
To: 'Takeshi Imamura'
Cc: xml-encryption@w3.org
Subject: RE: XmlEncryptor - An XML Encryption Demonstrator



Thanks Takeshi. 

Everyone, the new zip with the updated Java file is attached. 

Regarding the difference between the code and the strawman proposal, 
I'm still playing with ideas on handling encryption of specific sub-nodes 
to see which works best. 

Regards, Ed 
-----Original Message----- 
From: Takeshi Imamura [ mailto:IMAMU@jp.ibm.com <mailto:IMAMU@jp.ibm.com> ] 
Sent: Monday, October 30, 2000 2:23 AM 
To: Ed Simon 
Cc: xml-encryption@w3.org 
Subject: Re: XmlEncryptor - An XML Encryption Demonstrator 




Hi Ed, 

I just tried your sample code and found two trivial bugs. 

Line 47: 
  String xmlFile 
= " file:///MyWork/xmlencryption/xslt/XmlEncryptionTest.xml
<file:///MyWork/xmlencryption/xslt/XmlEncryptionTest.xml> "; 
should be: 
  String xmlFile = "XmlEncryptionTest.xml"; 

Line 387: 
  String xmlFile 
= " file:///MyWork/xmlencryption/xslt/XmlEncryptionTestEncryptedNodes.xml
<file:///MyWork/xmlencryption/xslt/XmlEncryptionTestEncryptedNodes.xml> "; 
should be: 
  String xmlFile = "XmlEncryptionTestEncryptedNodes.xml"; 

After fixing these bugs, I confirmed that the code worked well. 

In comparison with your first proposal, the way to handle attribute values 
seems to be a little changed.  Did you have any thoughts on this? 

Thanks, 
Takeshi IMAMURA 
Tokyo Research Laboratory 
IBM Research 
E-mail: imamu@jp.ibm.com 


---------------------- Forwarded by Takeshi Imamura/Japan/IBM on 2000/10/30 
03:36 PM --------------------------- 

From: Ed Simon <ed.simon@entrust.com>@w3.org on 2000/10/30 07:54 AM 

Please respond to Ed Simon <ed.simon@entrust.com> 

Sent by:  xml-encryption-request@w3.org 


To:   "'xml-encryption@w3.org'" <xml-encryption@w3.org> 
cc: 
Subject:  XmlEncryptor - An XML Encryption Demonstrator 





Please find attached a zip file containing code illustrating how encryption 
of various types 
of XML nodes would work in a DOM environment.  The node types that 
encrypted are 
whole elements, an element's content, and attribute values.  The code could 
be extended 
to other types of nodes if warranted. 

Unzip the zip file to an empty folder, then read the XmlEncryptor.html file 
for the details 
of how to compile and run the sample. 

Joseph, would you unzip this to a W3C folder and put a link to 
XmlEncryptor.html in the 
Resources section of " http://lists.w3.org/Archives/Public/xml-encryption/
<http://lists.w3.org/Archives/Public/xml-encryption/> ". 

Ed 
 <<XmlEncryptor.zip>> 

(See attached file: XmlEncryptor.zip) 

Received on Monday, 30 October 2000 10:01:58 UTC