Interface VaultService
- All Known Implementing Classes:
SuperUserVaultService,UserVaultService
public interface VaultService
Manages instances of
Vaults-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrivateKeyCrytpoAlgorithmThe default vault storage algorithm. -
Method Summary
Modifier and TypeMethodDescriptioncreateVault(CreateVaultRequest request) Creates a newVault.voiddeleteVault(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
Vaultas was written to the database
-
updateVault
Updates an existingVault.- Parameters:
request- theCreateWalletRequest- Returns:
- the
Vaultas was written to the database
-
deleteVault
Deletes aVault.- Parameters:
vaultId- the vault's id
-