This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: moved data classes to Objects.kt
- Loading branch information
Showing
2 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/kotlin/dev/medzik/librepass/desktop/config/Objects.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package dev.medzik.librepass.desktop.config | ||
|
||
import dev.medzik.librepass.desktop.style.Style | ||
import dev.medzik.librepass.types.cipher.EncryptedCipher | ||
import java.util.* | ||
|
||
data class Credentials( | ||
val userId: UUID, | ||
val email: String, | ||
val apiUrl: String? = null, | ||
val apiKey: String, | ||
val publicKey: String, | ||
val lastSync: Long? = null, | ||
// argon2id parameters | ||
val memory: Int, | ||
val iterations: Int, | ||
val parallelism: Int, | ||
) | ||
|
||
data class UserSecrets( | ||
val privateKey: String, | ||
val secretKey: String | ||
) | ||
|
||
data class Settings( | ||
var theme: Style | ||
) | ||
|
||
data class StoreCipher( | ||
val id: UUID, | ||
val owner: UUID, | ||
var encryptedCipher: EncryptedCipher | ||
) |