summaryrefslogtreecommitdiff
path: root/format-common/src
diff options
context:
space:
mode:
Diffstat (limited to 'format-common/src')
-rw-r--r--format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
index efcc6078..408069a2 100644
--- a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
+++ b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
@@ -7,6 +7,7 @@ package dev.msfjarvis.aps.data.passfile
import com.github.michaelbull.result.mapBoth
import dagger.assisted.Assisted
+import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import dev.msfjarvis.aps.util.time.UserClock
import dev.msfjarvis.aps.util.totp.Otp
@@ -197,6 +198,11 @@ constructor(
}
}
+ @AssistedFactory
+ public interface Factory {
+ public fun create(scope: CoroutineScope, bytes: ByteArray): PasswordEntry
+ }
+
internal companion object {
private const val EXTRA_CONTENT = "Extra Content"