diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-18 17:08:49 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-18 17:08:49 +0530 |
commit | c0f04bec778e8150fd0e783213a5b5478b25fd1b (patch) | |
tree | 094f0389b5a86ee78ead64a81bd4f37166517b65 /crypto-common | |
parent | 15f2489550e0503b429cc243a31823fd843d4959 (diff) |
Rework key deletion to accept an identifier
Diffstat (limited to 'crypto-common')
-rw-r--r-- | crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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<Key, KeyIdentifier> { */ public suspend fun addKey(key: Key, replace: Boolean = false): Result<Key, Throwable> - /** Removes [key] from the store. */ - public suspend fun removeKey(key: Key): Result<Key, Throwable> + /** Finds a key for [identifier] in the store and deletes it. */ + public suspend fun removeKey(identifier: KeyIdentifier): Result<Unit, Throwable> /** * Get a [Key] for the given [id]. The actual semantics of what [id] is are left to individual |