public abstract class FMWWallet extends Object implements Wallet
| Constructor and Description |
|---|
FMWWallet() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
checkWalletExists(String location)
Determine if a wallet exists at the supplied location.
|
void |
closeWallet(boolean forcedSave)
Close the wallet.
|
void |
createNewWallet()
Create a new wallet.
|
abstract void |
createWallet()
Create a new wallet.
|
boolean |
exists(String alias)
Determines if the passed alias exists in this wallet.
|
Credential |
getCredential(String alias)
Retrieve the credential from the underlying wallet that matches the alias.
|
protected String |
getLocation()
Returns the location of this wallet.
|
protected void |
getORAWalletSecretStore()
Sets the secret store of this instance from the Oracle Wallet.
|
protected oracle.security.pki.OracleSecretStore |
getSecretStore()
Returns the secret store for this wallet instance.
|
protected oracle.security.pki.OracleWallet |
getWallet()
Returns the Oracle Wallet this instance is based on.
|
Credentials |
loadCredentials()
Loads all the credentials from the key store.
|
protected void |
loadWallet()
Load the Oracle Wallet data.
|
abstract void |
openWallet()
Opens the Oracle Wallet.
|
void |
removeCredential(String alias)
Remove a credential from the wallet.
|
void |
setCredential(Credential cred)
Persist a credential to the underlying wallet.
|
protected void |
setLocation(String location)
Sets the location of this wallet.
|
protected void |
updateWallet()
Updates the Oracle Wallet with any changes.
|
boolean |
walletExists(String location, char[] walletPassword)
Determines if a wallet exists at the specified location.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteWalletpublic abstract boolean checkWalletExists(String location)
location - wallet location
public void closeWallet(boolean forcedSave)
throws FMWCredentialsException
WalletcloseWallet in interface WalletforcedSave - flag to indicate if wallet file needs to be saved regardless if any wallet keyStore change has occurred.FMWCredentialsException - an error occurred when closing the wallet.
public void createNewWallet()
throws FMWCredentialsException
WalletcreateNewWallet in interface WalletFMWCredentialsException - an error occurred when creating a new wallet.
public abstract void createWallet()
throws IOException
IOException - if an error occurspublic boolean exists(String alias)
Walletprotected String getLocation()
protected void getORAWalletSecretStore()
throws FMWCredentialsException
FMWCredentialsException - if an error occursprotected oracle.security.pki.OracleSecretStore getSecretStore()
protected oracle.security.pki.OracleWallet getWallet()
public Credentials loadCredentials() throws FMWCredentialsException
loadCredentials in interface WalletFMWCredentialsException - if an error occurs
protected void loadWallet()
throws FMWCredentialsException
FMWCredentialsException - if an error occurs
public abstract void openWallet()
throws IOException
IOException - if an error occurspublic void removeCredential(String alias) throws FMWCredentialsException
WalletremoveCredential in interface Walletalias - The alias of the credential that is being removedFMWCredentialsException - an error occurred when removing a credential from the wallet.public void setCredential(Credential cred) throws FMWCredentialsException
WalletsetCredential in interface Walletcred - the credential object that should to be persistedFMWCredentialsException - an error occurred when persisting a credential to the wallet.public Credential getCredential(String alias) throws FMWCredentialsException
WalletgetCredential in interface Walletalias - The alias of the credential that is being retrievedFMWCredentialsException - if there is a problem accessing the underlying walletprotected void setLocation(String location)
location - wallet location
protected void updateWallet()
throws FMWCredentialsException
FMWCredentialsException - if an error occurspublic boolean walletExists(String location, char[] walletPassword)
WalletwalletExists in interface Walletlocation - the location of the walletwalletPassword - the wallet password