public abstract class FMWWallet extends Object implements Wallet
Constructor and Description |
---|
FMWWallet() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkWalletExists(String location) |
void |
closeWallet(boolean forcedSave)
Close the wallet.
|
void |
createNewWallet()
Create a new wallet.
|
abstract void |
createWallet() |
boolean |
exists(String alias)
Check the existent of a credential in the wallet.
|
Credential |
getCredential(String alias)
Retrieve the credential from the underlying wallet that matches the alias
|
protected String |
getLocation() |
protected void |
getORAWalletSecretStore() |
protected oracle.security.pki.OracleSecretStore |
getSecretStore() |
protected oracle.security.pki.OracleWallet |
getWallet() |
Credentials |
loadCredentials()
Retrieve a list of credentials from underlying wallet.
|
protected void |
loadWallet() |
abstract void |
openWallet() |
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) |
protected void |
updateWallet() |
boolean |
walletExists(String location,
char[] walletPassword)
Check the existent of a wallet file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteWallet
public abstract boolean checkWalletExists(String location)
public void closeWallet(boolean forcedSave) throws FMWCredentialsException
Wallet
closeWallet
in interface Wallet
forcedSave
- flag to indicate if wallet file need to be saved regardless if any wallet keyStore change has occurred.FMWCredentialsException
- an error occurred when closing the wallet.public void createNewWallet() throws FMWCredentialsException
Wallet
createNewWallet
in interface Wallet
FMWCredentialsException
- an error occurred when creating a new wallet.public abstract void createWallet() throws IOException
IOException
public boolean exists(String alias)
Wallet
protected String getLocation()
protected void getORAWalletSecretStore() throws FMWCredentialsException
FMWCredentialsException
protected oracle.security.pki.OracleSecretStore getSecretStore()
protected oracle.security.pki.OracleWallet getWallet()
public Credentials loadCredentials() throws FMWCredentialsException
Wallet
loadCredentials
in interface Wallet
FMWCredentialsException
- an error occurred when retrieving credentials from the wallet.protected void loadWallet() throws FMWCredentialsException
FMWCredentialsException
public abstract void openWallet() throws IOException
IOException
public void removeCredential(String alias) throws FMWCredentialsException
Wallet
removeCredential
in interface Wallet
alias
- 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
Wallet
setCredential
in interface Wallet
cred
- The credential object that need to be persistedFMWCredentialsException
- an error occurred when persisting a credential to the wallet.public Credential getCredential(String alias) throws FMWCredentialsException
Wallet
getCredential
in interface Wallet
alias
- The alias of the credential that is being retrievedFMWCredentialsException
- if there is a problem accessing the underlying walletprotected void setLocation(String location)
protected void updateWallet() throws FMWCredentialsException
FMWCredentialsException
public boolean walletExists(String location, char[] walletPassword)
Wallet
walletExists
in interface Wallet
location
- File path to the wallet file.walletPassword
- Wallet password