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, waitdeleteWalletpublic abstract boolean checkWalletExists(String location)
public void closeWallet(boolean forcedSave)
throws FMWCredentialsException
WalletcloseWallet in interface WalletforcedSave - 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
WalletcreateNewWallet in interface WalletFMWCredentialsException - an error occurred when creating a new wallet.public abstract void createWallet()
throws IOException
IOExceptionpublic boolean exists(String alias)
Walletprotected String getLocation()
protected void getORAWalletSecretStore()
throws FMWCredentialsException
FMWCredentialsExceptionprotected oracle.security.pki.OracleSecretStore getSecretStore()
protected oracle.security.pki.OracleWallet getWallet()
public Credentials loadCredentials() throws FMWCredentialsException
WalletloadCredentials in interface WalletFMWCredentialsException - an error occurred when retrieving credentials from the wallet.protected void loadWallet()
throws FMWCredentialsException
FMWCredentialsExceptionpublic abstract void openWallet()
throws IOException
IOExceptionpublic 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 need 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)
protected void updateWallet()
throws FMWCredentialsException
FMWCredentialsExceptionpublic boolean walletExists(String location, char[] walletPassword)
WalletwalletExists in interface Walletlocation - File path to the wallet file.walletPassword - Wallet password