public class EthereumWalletAccountService extends Object
| Constructor and Description |
|---|
EthereumWalletAccountService(AccountStorage walletAccountStorage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessWallet(Wallet wallet,
String username)
Return true if user can access wallet detailed information
|
void |
checkCanSaveWallet(Wallet wallet,
Wallet oldWallet,
String modifierUsername)
Throws an exception if the user is not allowed to modify wallet information
|
Wallet |
getWallet(String type,
String remoteId)
Retrieve wallet details by identity type and remoteId
|
Wallet |
getWalletByAddress(String address)
Retrieve wallet by address
|
long |
getWalletsCount()
Retrieve wallets count
|
Set<Wallet> |
listWallets()
Retrieves the list registered wallets
|
void |
removeWalletByAddress(String address,
String username)
Remove User or Space wallet address association
|
void |
saveWallet(Wallet wallet,
String modifierUsername,
boolean broadcast)
Save wallet address to currentUser or to a space managed by current user
|
public EthereumWalletAccountService(AccountStorage walletAccountStorage)
public long getWalletsCount()
public Wallet getWallet(String type, String remoteId)
type - remoteId - Walletpublic Wallet getWalletByAddress(String address)
address - Walletpublic void saveWallet(Wallet wallet, String modifierUsername, boolean broadcast) throws Exception
wallet - modifierUsername - Exceptionpublic void removeWalletByAddress(String address, String username) throws IllegalAccessException
address - username - IllegalAccessExceptionpublic boolean canAccessWallet(Wallet wallet, String username)
wallet - username - public void checkCanSaveWallet(Wallet wallet, Wallet oldWallet, String modifierUsername) throws IllegalAccessException
wallet - oldWallet - modifierUsername - IllegalAccessExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.