public class WalletStorage extends Object
| Constructor and Description |
|---|
WalletStorage(WalletAccountDAO walletAccountDAO,
WalletPrivateKeyDAO privateKeyDAO,
org.exoplatform.web.security.codec.CodecInitializer codecInitializer) |
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.addon.wallet.model.Wallet |
getWalletByAddress(String address) |
org.exoplatform.addon.wallet.model.Wallet |
getWalletByIdentityId(long identityId) |
String |
getWalletPrivateKey(long walletId) |
long |
getWalletsCount() |
Set<org.exoplatform.addon.wallet.model.Wallet> |
listWallets()
Retrieves the list registered wallets
|
org.exoplatform.addon.wallet.model.Wallet |
removeWallet(long identityId)
Removes a wallet identitied by user/space identity technical id
|
void |
removeWalletPrivateKey(long walletId) |
void |
saveWallet(org.exoplatform.addon.wallet.model.Wallet wallet,
boolean isNew) |
void |
saveWalletPrivateKey(long walletId,
String content) |
public WalletStorage(WalletAccountDAO walletAccountDAO, WalletPrivateKeyDAO privateKeyDAO, org.exoplatform.web.security.codec.CodecInitializer codecInitializer)
public Set<org.exoplatform.addon.wallet.model.Wallet> listWallets()
Set of Wallet details with associated addressespublic long getWalletsCount()
public org.exoplatform.addon.wallet.model.Wallet getWalletByIdentityId(long identityId)
identityId - user/space technical identty idWallet details for identitypublic org.exoplatform.addon.wallet.model.Wallet getWalletByAddress(String address)
address - wallet addressWallet details identified by addresspublic void saveWallet(org.exoplatform.addon.wallet.model.Wallet wallet,
boolean isNew)
wallet - wallet details to saveisNew - whether this is a new wallet association or notpublic org.exoplatform.addon.wallet.model.Wallet removeWallet(long identityId)
identityId - user/space technical identty idWalletpublic String getWalletPrivateKey(long walletId)
public void removeWalletPrivateKey(long walletId)
public void saveWalletPrivateKey(long walletId,
String content)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.