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)
Find Wallet encoded private key by wallet identifier.
|
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)
Remove Wallet encoded private key by wallet identifier
|
org.exoplatform.addon.wallet.model.Wallet |
saveWallet(org.exoplatform.addon.wallet.model.Wallet wallet,
boolean isNew) |
void |
saveWalletPrivateKey(long walletId,
String content)
Save wallet private key
|
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 org.exoplatform.addon.wallet.model.Wallet 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)
walletId - wallet unique identifier that is equals to identity IDpublic void removeWalletPrivateKey(long walletId)
walletId - wallet unique identifier that is equals to identity IDpublic void saveWalletPrivateKey(long walletId,
String content)
walletId - content - Copyright © 2003–2019 eXo Platform SAS. All rights reserved.