public class WalletManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WalletManager.Command |
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) |
List<WalletManager.CommandArgument> |
parseCommandLineArguments(String[] args) |
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<WalletManager.CommandArgument> missingCmdArgs) |
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
FMWCredentialsExceptionpublic Object add(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object add(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object add(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object createWallet(String walletDirectory) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object createWallet(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
FMWCredentialsExceptionpublic List<WalletManager.CommandArgument> parseCommandLineArguments(String[] args) throws IllegalArgumentException, FMWCredentialsException
public Object remove(String walletDirectory, char[] walletPassword, String alias) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object remove(String walletDirectory, String alias) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object removeAll(String walletDirectory) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object removeAll(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
FMWCredentialsException
public void runCommand()
throws FMWCredentialsException
FMWCredentialsExceptionpublic 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
FMWCredentialsExceptionpublic Object set(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object set(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object set(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic void showErrors(Exception e)
public void showErrors(List<WalletManager.CommandArgument> missingCmdArgs)
public Object update(String walletDirectory, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object update(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object update(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Object update(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
FMWCredentialsExceptionpublic Credential get(String walletDirectory, String alias) throws FMWCredentialsException
FMWCredentialsExceptionpublic Credential get(String walletDirectory, char[] walletPassword, String alias) throws FMWCredentialsException
FMWCredentialsExceptionpublic Credentials getAll(String walletDirectory) throws FMWCredentialsException
FMWCredentialsExceptionpublic Credentials getAll(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
FMWCredentialsException