diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-15 00:53:48 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-15 01:13:47 +0530 |
commit | 549ee790d3e52bc62565ddf92e6a556e98b5195e (patch) | |
tree | d5758e5eb80093704e683c8da926838e18182588 /crypto-common/src | |
parent | 010c6e227c9cc27f4d01bc912311f977b2aeb3a7 (diff) |
all: re-do package structure yet again
Diffstat (limited to 'crypto-common/src')
-rw-r--r-- | crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt (renamed from crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt) | 4 | ||||
-rw-r--r-- | crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt (renamed from crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/KeyManager.kt) | 4 | ||||
-rw-r--r-- | crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt (renamed from crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/errors/CryptoException.kt) | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt index e8e9f995..952f4a7e 100644 --- a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt +++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt @@ -3,10 +3,10 @@ * SPDX-License-Identifier: GPL-3.0-only */ -package dev.msfjarvis.aps.crypto +package app.passwordstore.crypto +import app.passwordstore.crypto.errors.CryptoHandlerException import com.github.michaelbull.result.Result -import dev.msfjarvis.aps.crypto.errors.CryptoHandlerException import java.io.InputStream import java.io.OutputStream diff --git a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/KeyManager.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt index b7783163..31e1710d 100644 --- a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/KeyManager.kt +++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt @@ -3,7 +3,7 @@ * SPDX-License-Identifier: GPL-3.0-only */ -package dev.msfjarvis.aps.crypto +package app.passwordstore.crypto import com.github.michaelbull.result.Result @@ -16,7 +16,7 @@ public interface KeyManager<Key, KeyIdentifier> { /** * Inserts a [key] into the store. If the key already exists, this method will return - * [dev.msfjarvis.aps.crypto.errors.KeyAlreadyExistsException] unless [replace] is `true`. + * [app.passwordstore.crypto.errors.KeyAlreadyExistsException] unless [replace] is `true`. */ public suspend fun addKey(key: Key, replace: Boolean = false): Result<Key, Throwable> diff --git a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/errors/CryptoException.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt index b795bbf1..81bdf95f 100644 --- a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/errors/CryptoException.kt +++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt @@ -1,6 +1,6 @@ -package dev.msfjarvis.aps.crypto.errors +package app.passwordstore.crypto.errors -import dev.msfjarvis.aps.crypto.KeyManager +import app.passwordstore.crypto.KeyManager public sealed class CryptoException(message: String? = null, cause: Throwable? = null) : Exception(message, cause) @@ -30,7 +30,7 @@ public class KeyNotFoundException(keyId: String) : public class KeyAlreadyExistsException(keyId: String) : KeyManagerException("Pre-existing key was found for $keyId") -/** Sealed exception types for [dev.msfjarvis.aps.crypto.CryptoHandler]. */ +/** Sealed exception types for [app.passwordstore.crypto.CryptoHandler]. */ public sealed class CryptoHandlerException(message: String? = null, cause: Throwable? = null) : CryptoException(message, cause) |