Interface CredentialVault
- All Known Implementing Classes:
SimpleCredentialVault
public interface CredentialVault
Interface for a Credential Vault
Credential vaults allow for the storage and retrieval of credentials by
credential id.
- Author:
- muzquiano
-
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the ids for stored credentialsbooleanhasCredentials(String endpointId) newCredentials(String endpointId) Creates new credentials which are stored in this vaultvoidRemoves credentials for a given endpoint id from the vaultRetrieves credentials for a given endpoint id from the vaultvoidstore(Credentials credentials) Places the given credentials into the vault
-
Method Details
-
store
Places the given credentials into the vault- Parameters:
credentials- the credentials
-
retrieve
Retrieves credentials for a given endpoint id from the vault- Parameters:
endpointId- the endpoint id- Returns:
- the credentials
-
remove
Removes credentials for a given endpoint id from the vault- Parameters:
endpointId- String
-
hasCredentials
- Returns:
- true if any credentials are stored for this endpoint id
-
newCredentials
Creates new credentials which are stored in this vault- Parameters:
endpointId- String- Returns:
- the credentials object
-
getStoredIds
String[] getStoredIds()Returns the ids for stored credentials- Returns:
- String[]
-