Author: toad
Date: 2009-03-07 18:20:45 +0000 (Sat, 07 Mar 2009)
New Revision: 25940
Modified:
branches/db4o/freenet/src/freenet/crypt/DSAPrivateKey.java
Log:
removeFrom()
Modified: branches/db4o/freenet/src/freenet/crypt/DSAPrivateKey.java
===================================================================
--- branches/db4o/freenet/src/freenet/crypt/DSAPrivateKey.java 2009-03-07
15:07:56 UTC (rev 25939)
+++ branches/db4o/freenet/src/freenet/crypt/DSAPrivateKey.java 2009-03-07
18:20:45 UTC (rev 25940)
@@ -7,6 +7,8 @@
import java.io.*;
import java.util.Random;
+import com.db4o.ObjectContainer;
+
import freenet.support.Base64;
import freenet.support.HexUtil;
import freenet.support.IllegalBase64Exception;
@@ -84,6 +86,11 @@
throw new IllegalBase64Exception("Probably a pubkey");
return new DSAPrivateKey(y, group);
}
+
+ public void removeFrom(ObjectContainer container) {
+ container.delete(x);
+ container.delete(this);
+ }
// public static void main(String[] args) throws Exception {
// Yarrow y=new Yarrow();
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs