public class WalletApiImpl extends java.lang.Object implements WalletApi
Modifier and Type | Field and Description |
---|---|
protected AergoClient |
aergoClient |
protected java.lang.String |
authMac |
protected ExceptionConverter<WalletException> |
converter |
protected KeyStore |
keyStore |
protected AccountAddress |
principal |
protected QueryApi |
queryApi |
protected Signer |
signer |
protected TransactionApi |
transactionApi |
Modifier and Type | Method and Description |
---|---|
void |
bind(AergoClient aergoClient)
Bind an aergo client to use.
|
protected java.lang.String |
digest(Authentication authentication) |
protected Signer |
getSigner() |
boolean |
lock(Authentication authentication)
Lock an account.
|
QueryApi |
queryApi()
Get query api.
|
Transaction |
sign(RawTransaction rawTransaction)
Sign to raw transaction.
|
java.lang.String |
toString() |
TransactionApi |
transactionApi()
Get transaction api.
|
boolean |
unlock(Authentication authentication)
Unlock an account and bind it to wallet api.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPrincipal
protected final ExceptionConverter<WalletException> converter
protected final KeyStore keyStore
protected final TransactionApi transactionApi
protected final QueryApi queryApi
protected AergoClient aergoClient
protected Signer signer
protected java.lang.String authMac
protected AccountAddress principal
public void bind(AergoClient aergoClient)
WalletApi
public boolean unlock(Authentication authentication)
WalletApi
public boolean lock(Authentication authentication)
WalletApi
protected java.lang.String digest(Authentication authentication)
public TransactionApi transactionApi()
WalletApi
transactionApi
in interface WalletApi
public Transaction sign(RawTransaction rawTransaction)
Signer
public java.lang.String toString()
toString
in class java.lang.Object
protected Signer getSigner()