public class CredentialBuilder extends Object
| Constructor and Description |
|---|
CredentialBuilder(CredentialStore credentialStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteCredentials(List<String> aliasList)
Delete a list of credentials from the underlying credentialStore.
|
void |
deleteCredentialsStore()
Delete the underlying credentialStore.
|
Credential |
getCredential(String alias)
Retrieve the credential with the provided alias from the underlying credentialStore
|
Credentials |
loadCredentials()
Retrieve a list of credentials from underlying credentialStore.
|
void |
storeCredentials(Credentials credentials)
Storing a list of credentials to the underlying credentialStore.
|
public CredentialBuilder(CredentialStore credentialStore)
public void deleteCredentials(List<String> aliasList) throws FMWCredentialsException
aliasList - a list of credential alias that need to be deleted.FMWCredentialsException - an error occurred when deleting credentials from the credentialStore.public void deleteCredentialsStore()
throws FMWCredentialsException
FMWCredentialsException - an error occurred when deleting the credentialStore.public Credentials loadCredentials() throws FMWCredentialsException
FMWCredentialsException - an error occurred when retrieving credentials from the credentialStore.public Credential getCredential(String alias) throws FMWCredentialsException
alias - of the credential in the credential storeFMWCredentialsException - if the builder is not initialized with the store or an error occurred when accessing the credential storepublic void storeCredentials(Credentials credentials) throws FMWCredentialsException
credentials - a list of credentials that need to be persistedFMWCredentialsException - an error occurred when storing credentials to the credentialStore.