Author: jflesch
Date: 2007-04-20 19:49:32 +0000 (Fri, 20 Apr 2007)
New Revision: 12822

Added:
   trunk/apps/Thaw/src/freenet/crypt/SimpleFieldSet.java
Log:
Forgot a file (as usual)

Added: trunk/apps/Thaw/src/freenet/crypt/SimpleFieldSet.java
===================================================================
--- trunk/apps/Thaw/src/freenet/crypt/SimpleFieldSet.java                       
        (rev 0)
+++ trunk/apps/Thaw/src/freenet/crypt/SimpleFieldSet.java       2007-04-20 
19:49:32 UTC (rev 12822)
@@ -0,0 +1,25 @@
+package freenet.crypt;
+
+import java.util.Hashtable;
+
+/**
+ * This is a simplified version of the Freenet SimpleFieldSet class.
+ * It was created in order to simplify the reuse of the cryptographic
+ * class of the node.
+ */
+public class SimpleFieldSet {
+       private Hashtable ht;
+
+       public SimpleFieldSet(boolean mooh) {
+               ht = new Hashtable();
+       }
+
+       public void putSingle(String key, String val) {
+               ht.put(key, val);
+       }
+
+       public String get(String key) {
+               return ((String)ht.get(key));
+       }
+
+}


Reply via email to