webfunds.client
Class Addressbook

java.lang.Object
  |
  +--webfunds.client.Addressbook

public class Addressbook
extends java.lang.Object
implements CorePart


Field Summary
protected  Core c
           
protected  Store infokey
           
protected  Store infoname
           
protected  Store nameinfo
           
 
Constructor Summary
Addressbook()
           
 
Method Summary
 void addAccountInfo(AccountInfo info)
          A new account, with no name, has been created.
 void addAccountInfo(AccountInfo info, java.lang.String name)
          A new named account has been created.
 void addPublicKey(AccountInfo info, java.security.PublicKey pk)
          not used?
 AccountInfo[] getAccounts()
           
 AccountInfo getInfo(AccountId id)
          Get an/the AccountInfo that uses this AccountId (Using AccountIds is the more approved method.)
 AccountInfo getInfo(byte[] rawBytes)
          Get an/the AccountInfo that uses this raw name (in bytes).
 AccountInfo getInfo(java.lang.String name)
          Get an/the AccountInfo that uses this name.
 java.security.PublicKey getPublicKey(AccountInfo info)
          not used?
 java.lang.String getType()
           
 void removeAccount(AccountInfo info)
           
 void setCore(Core core)
           
 void updateInfo(AccountInfo info)
          Set the name that belongs in this info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

c

protected Core c

infoname

protected Store infoname

nameinfo

protected Store nameinfo

infokey

protected Store infokey
Constructor Detail

Addressbook

public Addressbook()
Method Detail

setCore

public void setCore(Core core)
Specified by:
setCore in interface CorePart

getType

public java.lang.String getType()
Specified by:
getType in interface CorePart

updateInfo

public void updateInfo(AccountInfo info)
Set the name that belongs in this info.

getInfo

public AccountInfo getInfo(java.lang.String name)
                    throws java.io.IOException
Get an/the AccountInfo that uses this name.

getInfo

public AccountInfo getInfo(byte[] rawBytes)
Get an/the AccountInfo that uses this raw name (in bytes).

getInfo

public AccountInfo getInfo(AccountId id)
Get an/the AccountInfo that uses this AccountId (Using AccountIds is the more approved method.)

getAccounts

public AccountInfo[] getAccounts()
                          throws java.io.IOException

getPublicKey

public java.security.PublicKey getPublicKey(AccountInfo info)
not used?

addAccountInfo

public void addAccountInfo(AccountInfo info)
                    throws java.io.IOException
A new account, with no name, has been created. Add an entry to the address book.

addAccountInfo

public void addAccountInfo(AccountInfo info,
                           java.lang.String name)
                    throws java.io.IOException
A new named account has been created. Add an entry to the address book.

addPublicKey

public void addPublicKey(AccountInfo info,
                         java.security.PublicKey pk)
not used?

removeAccount

public void removeAccount(AccountInfo info)