[Jsdsi-users] Re: <What's the correct way to send over Proof?>
Status: Pre-Alpha
Brought to you by:
sajma
From: Sean R. <sra...@ae...> - 2004-05-05 20:41:02
|
On Wed, 2004-05-05 at 12:16, Sameer Ajmani wrote: > You can transfer a Proof as a Sequence (using proof.getSequence). But we > should probably add support for transferring it just as a Proof. The > reason I didn't in the firts place is because Proof isn't actually an > official SPKI/SDSI datatype---it's specific to JSDSI. > I'd vote for making Proof SExpression'able (and consequently implement java.io.Serializable). Just seems sensible and thinking about it... I hit the same problem (but never got round to raising the issue) about a year ago! Guess we should be adding things like this to the 'Future Work' section of the site (so we don't forget them) - until we get an issue tracking application going... Regards, Sean > Sameer > > > Dear Sameer, Sean, and jsdsi experts, > > > > Orignial NameCert or AuthCert which are be embedded in Certifcate can be > > sent and receive well by using CertificateFactory Engine But now, after > > the client generates proof from certificate discovery, how should I send > > this over correctly? Currently, I try to use jsdsi.ObjOutputStream and > > jsdsi.ObjInputStream: Client: > > FileOutputStream pd_file_out = new > > FileOutputStream("server_agent_queue.txt", true); > > jsdsi.sexp.ObjOutputStream pd_oos = new > > jsdsi.sexp.ObjOutputStream(pd_file_out); > > pd_oos.writeCanonical(proof); > > pd_file_out.close(); > > > > Server: > > FileInputStream file_in = new > > FileInputStream("server_agent_queue.txt"); jsdsi.sexp.ObjInputStream > > ois = new jsdsi.sexp.ObjInputStream(fis); while (true) { > > if (ois.available() > 0) { > > ===> jsdsi.Proof pf = (jsdsi.Proof) ois.readObj(); > > break; > > } > > } > > > > But it occures following error on ===> line: > > jsdsi.sexp.SexpParseException: unrecognized object type: proof > > > > Any idea, please? and Thanks for answer in advanced! > > > > Sincerely, > > > > Matt > > > http://ajmani.net > -- Dr. Sean Radford, MBBS, MSc sra...@ae... http://www.aegeus-technology.com |