[Webfunds-commits] java/webfunds/client Addressbook.java

Ian Grigg iang@cypherpunks.ai
Fri, 13 Oct 2000 21:21:38 -0400 (AST)


iang        00/10/13 21:21:38

  Modified:    webfunds/client Addressbook.java
  Log:
  comments only

Revision  Changes    Path
1.17      +20 -1     java/webfunds/client/Addressbook.java

Index: Addressbook.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/Addressbook.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Addressbook.java	2000/05/27 00:26:53	1.16
+++ Addressbook.java	2000/10/14 01:21:38	1.17
@@ -1,5 +1,5 @@
 /*
- * $Id: Addressbook.java,v 1.16 2000/05/27 00:26:53 gelderen Exp $
+ * $Id: Addressbook.java,v 1.17 2000/10/14 01:21:38 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -51,6 +51,9 @@
         return "Addressbook";
     }
 
+    /**
+     *  Set the name that belongs in this info.
+     */
     public void updateInfo(AccountInfo info)
     {
         String id = Hex.data2hex(info.getId());
@@ -58,6 +61,9 @@
         info.setName(name);
     }
     
+    /**
+     *  Get an/the AccountInfo that uses this name.
+     */
     public AccountInfo getInfo(String name)
         throws IOException
     {
@@ -66,6 +72,9 @@
         return info;
     }
     
+    /**
+     *  Get an/the AccountInfo that uses this id.
+     */
     public AccountInfo getInfo(byte[] id)
     {
         String strid = Hex.data2hex(id);
@@ -89,11 +98,16 @@
         return retval;
     }
     
+    /** not used? */
     public PublicKey getPublicKey(AccountInfo info)
     {
         return (PublicKey)infokey.get(info);
     }
     
+    /**
+     *  A new account, with no name, has been created.
+     *  Add an entry to the address book.
+     */
     public void addAccountInfo(AccountInfo info)
         throws IOException
     {
@@ -102,6 +116,10 @@
         addAccountInfo(info, name);
     }
 
+    /**
+     *  A new named account has been created.
+     *  Add an entry to the address book.
+     */
     public void addAccountInfo(AccountInfo info, String name)
         throws IOException
     {
@@ -121,6 +139,7 @@
 System.err.println("Set name " + name + " on account: " + id);
     }
 
+    /** not used? */
     public void addPublicKey(AccountInfo info, PublicKey pk)
     {
         infokey.put(info, pk);