webfunds.client
Class Addressbook
java.lang.Object
|
+--webfunds.client.Addressbook
- public class Addressbook
- extends java.lang.Object
- implements CorePart
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
c
protected Core c
infoname
protected Store infoname
nameinfo
protected Store nameinfo
infokey
protected Store infokey
Addressbook
public Addressbook()
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)