|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--webfunds.sox.Encodable
|
+--webfunds.sox.SubAccount
SubAccount handles an Item for an account, and relies on the parent Account for the key.
| Field Summary | |
protected Account |
acct
Parent account. |
protected static int |
ACTIVE
|
protected static int |
FROZEN
|
protected Issuer |
issuer
Is capable of sending requests to the server. |
protected ItemId |
itemId
The item identifier - contract hash - of this account. |
protected static int |
NEW
|
protected static int |
REGISTERED
|
protected int |
reqNo
The request number (for this session) |
protected static int |
RETRY
|
protected int |
status
Status of subaccount. |
| Constructor Summary | |
SubAccount(byte[] data)
|
|
SubAccount(java.io.InputStream is)
|
|
SubAccount(ItemId itemId)
Create a new SubAccount object. |
|
| Method Summary | |
java.util.Date |
adjustTime(java.util.Date tim,
boolean earliest)
always works, might be ultra conservative deprecated? not really used, SOX shouldn't know about Dates. |
long |
adjustTime(long tim,
boolean earliest)
always works, might be ultra conservative |
protected void |
checkFrozen(java.lang.String s)
Handy to save lots of exception calls User is not supposed to call this, but maybe the software doesn't care. |
protected void |
checkNet()
Handy to save lots of exception calls |
void |
decode(java.io.InputStream is)
|
void |
delete()
Call this to delete. |
protected Reply |
doRequest(Request req)
Sort out exceptions. |
protected Reply |
doRequest(Request req,
boolean retry)
Convert the request into a reply. |
void |
encode(java.io.OutputStream os)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
fp()
|
void |
freeze()
Call this to freeze the subaccount. |
Account |
getAccount()
|
Issuer |
getIssuer()
|
ItemId |
getItemId()
|
int |
getStatus()
|
void |
init()
Initialise the subaccount, after adding into the accout. |
boolean |
isActive()
|
boolean |
isFrozen()
|
boolean |
isNew()
|
boolean |
isRegistered()
|
boolean |
isRetry()
|
void |
logmsg(java.lang.String s)
|
java.lang.String[] |
nym(long flags,
java.lang.String[] names)
Send some details to turn the registered key into a Nym. |
AccountId |
register()
Register a new certificate with the server |
protected byte[] |
requestExtra(Request req)
Sorts out exceptions. |
void |
setAccount(Account acct)
|
void |
setIssuer(Issuer issuer)
|
java.lang.String |
toString()
Convert this object to a string |
MailItem[] |
update(MailId[] mails)
Update the mail by sending confirmations to the server, and getting new items of mail back in the reply. |
| Methods inherited from class webfunds.sox.Encodable |
decode,
encode,
main,
readByteArray,
readCertificate,
readProperties,
readString,
writeByteArray,
writeCertificate,
writeProperties,
writeString |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected Issuer issuer
protected ItemId itemId
protected Account acct
protected transient int reqNo
protected static final int NEW
protected static final int REGISTERED
protected static final int ACTIVE
protected static final int RETRY
protected static final int FROZEN
protected int status
| Constructor Detail |
public SubAccount(ItemId itemId)
acct - the account that holds authentication keysitemid - the identifier for this subaccount
public SubAccount(byte[] data)
throws SOXPacketException
public SubAccount(java.io.InputStream is)
throws SOXPacketException
| Method Detail |
public ItemId getItemId()
public void setAccount(Account acct)
public Account getAccount()
public boolean isNew()
public boolean isRegistered()
public boolean isActive()
public boolean isRetry()
public boolean isFrozen()
public int getStatus()
public void logmsg(java.lang.String s)
public Issuer getIssuer()
throws SOXSubAccountException,
SOXLaterException
public void setIssuer(Issuer issuer)
public java.util.Date adjustTime(java.util.Date tim,
boolean earliest)
public long adjustTime(long tim,
boolean earliest)
public void init()
throws SOXSubAccountException,
SOXLaterException,
SOXKeyException
public AccountId register()
throws SOXSubAccountException,
SOXLaterException,
SOXKeyException
protected byte[] requestExtra(Request req)
throws SOXSubAccountException,
SOXLaterException
public MailItem[] update(MailId[] mails)
throws SOXSubAccountException,
SOXLaterException,
SOXKeyException,
SOXPacketException
public java.lang.String[] nym(long flags,
java.lang.String[] names)
throws SOXSubAccountException,
SOXLaterException,
SOXKeyException,
SOXArgsException,
SOXRequestException
protected Reply doRequest(Request req,
boolean retry)
throws SOXSubAccountException,
SOXRequestException,
SOXLaterException,
SOXKeyException
retry - true if this call is already recursive
protected Reply doRequest(Request req)
throws SOXSubAccountException,
SOXLaterException
public void freeze()
public void delete()
throws SOXSubAccountException
protected void checkFrozen(java.lang.String s)
throws SOXSubAccountException
protected void checkNet()
throws SOXLaterException
public void encode(java.io.OutputStream os)
throws java.io.IOException
public void decode(java.io.InputStream is)
throws java.io.IOException
public java.lang.String toString()
public java.lang.String fp()
public boolean equals(java.lang.Object obj)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||