public class WalletManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WalletManager.Command
Wallet manager commands.
|
static class |
WalletManager.CommandArgument |
Constructor and Description |
---|
WalletManager() |
Modifier and Type | Method and Description |
---|---|
Object |
add(String walletDirectory,
char[] walletPassword,
String alias,
char[] password) |
Object |
add(String walletDirectory,
char[] walletPassword,
String alias,
String user,
char[] password) |
Object |
add(String walletDirectory,
String alias,
char[] password) |
Object |
add(String walletDirectory,
String alias,
String user,
char[] password) |
Object |
createWallet(String walletDirectory) |
Object |
createWallet(String walletDirectory,
char[] walletPassword) |
Object |
deleteWallet(String walletDirectory) |
Object |
deleteWallet(String walletDirectory,
char[] walletPassword) |
Credential |
get(String walletDirectory,
char[] walletPassword,
String alias) |
Credential |
get(String walletDirectory,
String alias) |
Credentials |
getAll(String walletDirectory) |
Credentials |
getAll(String walletDirectory,
char[] walletPassword) |
static void |
main(String[] args) |
void |
parseCommandLineArguments(String[] args)
parseCommandLineArguments parse all the command line arguments and forms a wallet command.
|
void |
parseStdinArguments(String[] args)
parseStdinArguments parse all the standard input arguments and forms a wallet command.
|
static void |
printCommandUsage(String command,
List<WalletManager.CommandArgument> requiredCommandArgs,
List<WalletManager.CommandArgument> optionalCommandArgs) |
void |
printCredential(Credential credential) |
void |
printCredential(Credential credential,
String passwordCover) |
void |
printCredentials(Credentials credentials) |
void |
printCredentials(Credentials credentials,
String passwordCover) |
Object |
remove(String walletDirectory,
char[] walletPassword,
String alias) |
Object |
remove(String walletDirectory,
String alias) |
Object |
removeAll(String walletDirectory) |
Object |
removeAll(String walletDirectory,
char[] walletPassword) |
void |
runCommand() |
Object |
set(String walletDirectory,
char[] walletPassword,
String alias,
char[] password) |
Object |
set(String walletDirectory,
char[] walletPassword,
String alias,
String user,
char[] password) |
Object |
set(String walletDirectory,
String alias,
char[] password) |
Object |
set(String walletDirectory,
String alias,
String user,
char[] password) |
void |
showErrors(Exception e) |
void |
showErrors(List<String> errors) |
static void |
showUsage() |
Object |
update(String walletDirectory,
char[] walletPassword,
String alias,
char[] password) |
Object |
update(String walletDirectory,
char[] walletPassword,
String alias,
String user,
char[] password) |
Object |
update(String walletDirectory,
String alias,
char[] password) |
Object |
update(String walletDirectory,
String alias,
String user,
char[] password) |
public static void main(String[] args)
public static void printCommandUsage(String command, List<WalletManager.CommandArgument> requiredCommandArgs, List<WalletManager.CommandArgument> optionalCommandArgs)
public static void showUsage()
public Object add(String walletDirectory, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object add(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object add(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object add(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object createWallet(String walletDirectory) throws FMWCredentialsException
FMWCredentialsException
public Object createWallet(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
FMWCredentialsException
public void parseCommandLineArguments(String[] args) throws IllegalArgumentException
args
- command lines arguments.IllegalArgumentException
- if not a valid command line argument.public void parseStdinArguments(String[] args) throws IllegalArgumentException
args
- standard input arguments.IllegalArgumentException
- if not a valid standard input.public Object remove(String walletDirectory, char[] walletPassword, String alias) throws FMWCredentialsException
FMWCredentialsException
public Object remove(String walletDirectory, String alias) throws FMWCredentialsException
FMWCredentialsException
public Object removeAll(String walletDirectory) throws FMWCredentialsException
FMWCredentialsException
public Object removeAll(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
FMWCredentialsException
public void runCommand() throws FMWCredentialsException
FMWCredentialsException
public void printCredentials(Credentials credentials)
public void printCredentials(Credentials credentials, String passwordCover)
public void printCredential(Credential credential)
public void printCredential(Credential credential, String passwordCover)
public Object set(String walletDirectory, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object set(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object set(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object set(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsException
public void showErrors(Exception e)
public Object update(String walletDirectory, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object update(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object update(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Object update(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsException
public Credential get(String walletDirectory, String alias) throws FMWCredentialsException
FMWCredentialsException
public Credential get(String walletDirectory, char[] walletPassword, String alias) throws FMWCredentialsException
FMWCredentialsException
public Credentials getAll(String walletDirectory) throws FMWCredentialsException
FMWCredentialsException
public Credentials getAll(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
FMWCredentialsException