Interface VaultService
- All Known Implementing Classes:
SuperUserVaultService
,UserVaultService
public interface VaultService
Manages instances of
Vault
s-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrivateKeyCrytpoAlgorithm
The default vault storage algorithm. -
Method Summary
Modifier and TypeMethodDescriptioncreateVault
(CreateVaultRequest request) Creates a newVault
.void
deleteVault
(String vaultId) Deletes aVault
.Gets a specific vault wiht the supplied id.Gets all vaults, optionally filtered by user IDupdateVault
(String vaultId, UpdateVaultRequest request) Updates an existingVault
.
-
Field Details
-
DEFAULT_VAULT_ALGORITHM
The default vault storage algorithm.
-
-
Method Details
-
getVaults
Gets all vaults, optionally filtered by user ID- Parameters:
offset
- the offsetcount
- the countuserId
- the user id- Returns:
- a
Pagination<Vault>
-
getVault
Gets a specific vault wiht the supplied id.- Parameters:
vaultId
- the vault's id- Returns:
- the
Vault
-
createVault
Creates a newVault
.- Parameters:
request
- theCreateWalletRequest
- Returns:
- the
Vault
as was written to the database
-
updateVault
Updates an existingVault
.- Parameters:
request
- theCreateWalletRequest
- Returns:
- the
Vault
as was written to the database
-
deleteVault
Deletes aVault
.- Parameters:
vaultId
- the vault's id
-