public class WalletMgr extends Object
| Constructor and Description |
|---|
WalletMgr(String path,
SignatureScheme scheme) |
WalletMgr(Wallet wallet,
SignatureScheme scheme) |
public WalletMgr(Wallet wallet, SignatureScheme scheme) throws Exception
Exceptionpublic WalletMgr(String path, SignatureScheme scheme) throws Exception
Exceptionpublic Wallet getWalletFile()
public Wallet getWallet()
public Wallet resetWallet()
public SignatureScheme getSignatureScheme()
public void setSignatureScheme(SignatureScheme scheme)
public Identity importIdentity(String encryptedPrikey, String password, byte[] salt, String address) throws Exception
Exceptionpublic Identity importIdentity(String label, String encryptedPrikey, String password, byte[] salt, String address) throws Exception
Exceptionpublic Identity createIdentity(String label, String password) throws Exception
Exceptionpublic Identity createIdentityFromPriKey(String label, String password, String prikey) throws Exception
Exceptionpublic Identity createIdentityFromPriKey(String password, String prikey) throws Exception
Exceptionpublic IdentityInfo createIdentityInfo(String password) throws Exception
Exceptionpublic IdentityInfo createIdentityInfo(String label, String password) throws Exception
Exceptionpublic IdentityInfo getIdentityInfo(String dnaid, String password, byte[] salt) throws Exception
Exceptionpublic Account importAccount(String encryptedPrikey, String password, String address, byte[] salt) throws Exception
Exceptionpublic Account importAccount(String label, String encryptedPrikey, String password, String address, byte[] salt) throws Exception
Exceptionpublic void createAccounts(int count,
String password)
throws Exception
Exceptionpublic Account createAccount(String label, String password) throws Exception
Exceptionpublic Account createAccountFromPriKey(String password, String prikey) throws Exception
Exceptionpublic Account createAccountFromPriKey(String label, String password, String prikey) throws Exception
Exceptionpublic AccountInfo createAccountInfo(String password) throws Exception
Exceptionpublic AccountInfo createAccountInfo(String label, String password) throws Exception
Exceptionpublic AccountInfo createAccountInfoFromPriKey(String password, String prikey) throws Exception
Exceptionpublic AccountInfo createAccountInfoFromPriKey(String label, String password, String prikey) throws Exception
Exceptionpublic IdentityInfo createIdentityInfoFromPriKey(String label, String password, String prikey) throws Exception
Exceptionpublic Account getAccount(String address, String password) throws Exception
Exceptionpublic Account getAccount(String addressOrDnaId, String password, byte[] salt) throws Exception
Exceptionpublic AccountInfo getAccountInfo(String addressOrDnaId, String password, byte[] salt) throws Exception
Exceptionpublic Identity getDefaultIdentity()
public Account getDefaultAccount()
Copyright © 2020. All rights reserved.