public class WalletManager extends Object
| 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)
Retireves a credential from a wallet.
|
Credential |
get(String walletDirectory, String alias)
Retireves a credential from a wallet.
|
Credentials |
getAll(String walletDirectory)
Retireves all credentials from a wallet.
|
Credentials |
getAll(String walletDirectory, char[] walletPassword)
Retireves all credentials from a wallet.
|
static void |
main(String[] args)
Entry point for accessing the WalletManager from a command line.
|
List<oracle.fmwplatform.credentials.wallet.WalletManager.CommandArgument> |
parseCommandLineArguments(String[] args) |
static void |
printCommandUsage(String command, List<oracle.fmwplatform.credentials.wallet.WalletManager.CommandArgument> requiredCommandArgs, List<oracle.fmwplatform.credentials.wallet.WalletManager.CommandArgument> optionalCommandArgs) |
void |
printCredential(Credential credential)
Displays the passed credentials.
|
void |
printCredential(Credential credential, String passwordCover)
Displays the passed credentials.
|
void |
printCredentials(Credentials credentials)
Displays the passed credentials.
|
void |
printCredentials(Credentials credentials, String passwordCover)
Displays the passed credentials.
|
Object |
remove(String walletDirectory, char[] walletPassword, String alias)
Removes an alias from a wallet.
|
Object |
remove(String walletDirectory, String alias)
Removes an alias from a wallet.
|
Object |
removeAll(String walletDirectory)
Removes all aliases from a wallet.
|
Object |
removeAll(String walletDirectory, char[] walletPassword)
Removes all aliases from a wallet.
|
void |
runCommand()
Runs a Wallet Manager command.
|
Object |
set(String walletDirectory, char[] walletPassword, String alias, char[] password)
Sets the passed credential in the specified wallet.
|
Object |
set(String walletDirectory, char[] walletPassword, String alias, String user, char[] password)
Sets the passed credential in the specified wallet.
|
Object |
set(String walletDirectory, String alias, char[] password)
Sets the passed credential in the specified wallet.
|
Object |
set(String walletDirectory, String alias, String user, char[] password)
Sets the passed credential in the specified wallet.
|
void |
showErrors(Exception e)
Displays Wallet Manager error.
|
void |
showErrors(List<oracle.fmwplatform.credentials.wallet.WalletManager.CommandArgument> missingCmdArgs)
Displays Wallet Manager errors.
|
static void |
showUsage() |
Object |
update(String walletDirectory, char[] walletPassword, String alias, char[] password)
Updates a wallet credential with a new value.
|
Object |
update(String walletDirectory, char[] walletPassword, String alias, String user, char[] password)
Updates a wallet credential with a new value.
|
Object |
update(String walletDirectory, String alias, char[] password)
Updates a wallet credential with a new value.
|
Object |
update(String walletDirectory, String alias, String user, char[] password)
Updates a wallet credential with a new value.
|
public static void main(String[] args)
args - WalletManager options, run with no options to see listpublic static void printCommandUsage(String command, List<oracle.fmwplatform.credentials.wallet.WalletManager.CommandArgument> requiredCommandArgs, List<oracle.fmwplatform.credentials.wallet.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<oracle.fmwplatform.credentials.wallet.WalletManager.CommandArgument> parseCommandLineArguments(String[] args) throws IllegalArgumentException, FMWCredentialsException
public Object remove(String walletDirectory, char[] walletPassword, String alias) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the password for the walletalias - the alias to be removedFMWCredentialsException - if an error occurspublic Object remove(String walletDirectory, String alias) throws FMWCredentialsException
walletDirectory - location of the walletalias - the alias to be removedFMWCredentialsException - if an error occurspublic Object removeAll(String walletDirectory) throws FMWCredentialsException
walletDirectory - location of the walletFMWCredentialsException - if an error occurspublic Object removeAll(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the password for the walletFMWCredentialsException - if an error occurs
public void runCommand()
throws FMWCredentialsException
FMWCredentialsException - if an error occurspublic void printCredentials(Credentials credentials)
credentials - the credentials to displaypublic void printCredentials(Credentials credentials, String passwordCover)
credentials - the credentials to displaypasswordCover - data used to cover passwordpublic void printCredential(Credential credential)
credential - the credentials to displaypublic void printCredential(Credential credential, String passwordCover)
credential - the credentials to displaypasswordCover - data used to cover passwordpublic Object set(String walletDirectory, String alias, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletalias - the credential aliaspassword - the credential passwordFMWCredentialsException - if an error occurspublic Object set(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletalias - the credential aliasuser - the credential user IDpassword - the credential passwordFMWCredentialsException - if an error occurspublic Object set(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the password to access the walletalias - the credential aliaspassword - the credential passwordFMWCredentialsException - if an error occurspublic Object set(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the password to access the walletalias - the credential aliasuser - the credential user IDpassword - the credential passwordFMWCredentialsException - if an error occurspublic void showErrors(Exception e)
e - the exception causing the errorpublic void showErrors(List<oracle.fmwplatform.credentials.wallet.WalletManager.CommandArgument> missingCmdArgs)
missingCmdArgs - the passed in command line optionspublic Object update(String walletDirectory, String alias, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletalias - the alias to be updatedpassword - the alias passwordFMWCredentialsException - if an error occurspublic Object update(String walletDirectory, String alias, String user, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletalias - the alias to be updateduser - the alias user IDpassword - the alias passwordFMWCredentialsException - if an error occurspublic Object update(String walletDirectory, char[] walletPassword, String alias, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the password to access the walletalias - the alias to be updatedpassword - the alias passwordFMWCredentialsException - if an error occurspublic Object update(String walletDirectory, char[] walletPassword, String alias, String user, char[] password) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the password to access the walletalias - the alias to be updateduser - the alias user IDpassword - the alias passwordFMWCredentialsException - if an error occurspublic Credential get(String walletDirectory, String alias) throws FMWCredentialsException
walletDirectory - location of the walletalias - the alias of the credential to be returnedFMWCredentialsException - if an error occurspublic Credential get(String walletDirectory, char[] walletPassword, String alias) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the wallet passwordalias - the alias of the credential to be returnedFMWCredentialsException - if an error occurspublic Credentials getAll(String walletDirectory) throws FMWCredentialsException
walletDirectory - location of the walletFMWCredentialsException - if an error occurspublic Credentials getAll(String walletDirectory, char[] walletPassword) throws FMWCredentialsException
walletDirectory - location of the walletwalletPassword - the wallet passwordFMWCredentialsException - if an error occurs