| Constructor and Description |
|---|
EtcdWallet(String url,
String location,
char[] passPhrase)
Create an Etcd based wallet.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkWalletExists(String location)
Determine if wallet credentials exist in ETCD for this location key.
|
void |
createNewWallet()
Create a new ETCD based wallet
|
void |
createWallet()
Initialize a wallet
|
void |
deleteWallet()
Delete an existing wallet
|
void |
openWallet()
Load credentials from ETCD and place them in this wallet
|
void |
updateEtcdCreds()
Update credentials in ETCD
|
protected void |
updateWallet()
Update (or set) the credentials in the ETCD server
|
closeWallet, exists, getCredential, getLocation, getORAWalletSecretStore, getSecretStore, getWallet, loadCredentials, loadWallet, removeCredential, setCredential, setLocation, walletExistspublic EtcdWallet(String url, String location, char[] passPhrase) throws FMWCredentialsException
url - base URL of the ETCD serverlocation - the key the wallet credentials are stored underpassPhrase - the pass phrase used to encrypt credentialsFMWCredentialsException - an error occurspublic boolean checkWalletExists(String location)
checkWalletExists in class FMWWalletlocation - the etcd key where credentials are storedpublic void createNewWallet()
throws FMWCredentialsException
createNewWallet in interface WalletcreateNewWallet in class FMWWalletFMWCredentialsException - if an error occurspublic void createWallet()
throws IOException
createWallet in class FMWWalletIOException - if an error occurspublic void deleteWallet()
throws FMWCredentialsException
FMWCredentialsException - if an error occurs. We just remove the
credentials from ETCDpublic void openWallet()
throws IOException
openWallet in class FMWWalletIOException - if an error occursprotected void updateWallet()
throws FMWCredentialsException
updateWallet in class FMWWalletFMWCredentialsException - if an error occurspublic void updateEtcdCreds()
throws FMWCredentialsException
FMWCredentialsException - if an error occurs