From c0f04bec778e8150fd0e783213a5b5478b25fd1b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 18 Jul 2022 17:08:49 +0530 Subject: Rework key deletion to accept an identifier --- crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto-common') diff --git a/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt index 31e1710d..cb3df75e 100644 --- a/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt +++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt @@ -20,8 +20,8 @@ public interface KeyManager { */ public suspend fun addKey(key: Key, replace: Boolean = false): Result - /** Removes [key] from the store. */ - public suspend fun removeKey(key: Key): Result + /** Finds a key for [identifier] in the store and deletes it. */ + public suspend fun removeKey(identifier: KeyIdentifier): Result /** * Get a [Key] for the given [id]. The actual semantics of what [id] is are left to individual -- cgit v1.2.3