Package com.h2tcoin.takamakachain.cli
Class ShellWallet
- java.lang.Object
-
- com.h2tcoin.takamakachain.cli.ShellWallet
-
public class ShellWallet extends Object
- Author:
- francesco.pasetto@h2tcoin.com
-
-
Field Summary
Fields Modifier and Type Field Description HashMap<String,Command>
cmds
KeyContexts.WalletCypher
cypher
static ShellWallet
instance
Scanner
scanner
InstanceWalletKeystoreInterface
wallet
int
walletIndex
String
walletname
-
Constructor Summary
Constructors Constructor Description ShellWallet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(String[] rawArgs)
static ShellWallet
getInstance()
static String
getWalletName()
static String
input(String msg)
boolean
isUnlocked()
void
listen()
static void
println(String msg)
void
setPassword(String password)
void
setup()
-
-
-
Field Detail
-
scanner
public Scanner scanner
-
instance
public static ShellWallet instance
-
walletname
public String walletname
-
walletIndex
public int walletIndex
-
cypher
public KeyContexts.WalletCypher cypher
-
wallet
public InstanceWalletKeystoreInterface wallet
-
-
Method Detail
-
isUnlocked
public boolean isUnlocked()
-
setPassword
public void setPassword(String password)
-
call
public void call(String[] rawArgs)
-
setup
public final void setup() throws NoSuchAlgorithmException, ProtocolException, IOException
-
listen
public void listen()
-
getInstance
public static ShellWallet getInstance()
-
println
public static void println(String msg)
-
getWalletName
public static String getWalletName()
-
-