[Jsdsi-users] <What's the correct way to send over Proof?>
Status: Pre-Alpha
Brought to you by:
sajma
From: Feng-Shuo <fc...@an...> - 2004-05-05 04:55:28
|
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 =3D new = FileOutputStream("server_agent_queue.txt", true); jsdsi.sexp.ObjOutputStream pd_oos =3D new = jsdsi.sexp.ObjOutputStream(pd_file_out); pd_oos.writeCanonical(proof); pd_file_out.close(); =20 Server: FileInputStream file_in =3D new = FileInputStream("server_agent_queue.txt"); jsdsi.sexp.ObjInputStream ois =3D new = jsdsi.sexp.ObjInputStream(fis); while (true) { if (ois.available() > 0) { =3D=3D=3D> jsdsi.Proof pf =3D (jsdsi.Proof) ois.readObj(); break; } } =20 But it occures following error on =3D=3D=3D> line: jsdsi.sexp.SexpParseException: unrecognized object type: proof =20 Any idea, please? and Thanks for answer in advanced! Sincerely, Matt |