|
From: <pe...@us...> - 2003-09-26 23:53:26
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store In directory sc8-pr-cvs1:/tmp/cvs-serv6861/src/java/org/neuclear/store Modified Files: EncryptedFileStore.java Store.java Log Message: Changes mainly in receiver and related fun. First real neuclear stuff in the payment package. Added TransferContract and PaymentReceiver. Index: EncryptedFileStore.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store/EncryptedFileStore.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EncryptedFileStore.java 26 Sep 2003 00:22:07 -0000 1.5 --- EncryptedFileStore.java 26 Sep 2003 23:53:10 -0000 1.6 *************** *** 2,5 **** --- 2,9 ---- * $Id$ * $Log$ + * Revision 1.6 2003/09/26 23:53:10 pelle + * Changes mainly in receiver and related fun. + * First real neuclear stuff in the payment package. Added TransferContract and PaymentReceiver. + * * Revision 1.5 2003/09/26 00:22:07 pelle * Cleanups and final changes to code for refactoring of the Verifier and Reader part. *************** *** 133,146 **** package org.neuclear.store; - import org.dom4j.DocumentException; - import org.dom4j.DocumentHelper; - import org.neuclear.id.NSTools; - import org.neuclear.id.SignedNamedObject; - import org.neudist.crypto.CryptoTools; - import org.neudist.utils.NeudistException; - import org.neudist.utils.Utility; - import org.neudist.xml.xmlsec.XMLSecTools; - import java.io.*; /** --- 137,141 ---- *************** *** 151,157 **** --- 146,154 ---- */ public class EncryptedFileStore extends FileStore { + public EncryptedFileStore(String base) { super(base); } + /* protected void rawStore(SignedNamedObject obj) throws IOException, NeudistException { *************** *** 227,230 **** --- 224,228 ---- } + */ } Index: Store.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store/Store.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Store.java 26 Sep 2003 00:22:07 -0000 1.5 --- Store.java 26 Sep 2003 23:53:10 -0000 1.6 *************** *** 2,5 **** --- 2,9 ---- * $Id$ * $Log$ + * Revision 1.6 2003/09/26 23:53:10 pelle + * Changes mainly in receiver and related fun. + * First real neuclear stuff in the payment package. Added TransferContract and PaymentReceiver. + * * Revision 1.5 2003/09/26 00:22:07 pelle * Cleanups and final changes to code for refactoring of the Verifier and Reader part. *************** *** 130,136 **** package org.neuclear.store; - import org.neuclear.id.InvalidIdentityException; import org.neuclear.id.SignedNamedObject; import org.neuclear.receiver.Receiver; import org.neudist.utils.NeudistException; --- 134,140 ---- package org.neuclear.store; import org.neuclear.id.SignedNamedObject; import org.neuclear.receiver.Receiver; + import org.neuclear.receiver.UnsupportedTransaction; import org.neudist.utils.NeudistException; *************** *** 144,148 **** * This handles the Identity checking on the object. */ ! public final void receive(SignedNamedObject obj) throws InvalidIdentityException, NeudistException { try { // Dont allow overwrites --- 148,152 ---- * This handles the Identity checking on the object. */ ! public final void receive(SignedNamedObject obj) throws UnsupportedTransaction { try { // Dont allow overwrites *************** *** 152,159 **** --- 156,166 ---- rawStore(obj); + if (next != null) next.receive(obj); } catch (IOException e) { + e.printStackTrace(); + } catch (NeudistException e) { e.printStackTrace(); } |