Package-level declarations

Types

Link copied to clipboard
sealed class BulkResultEntry

A bulk insert result entry, returned by add_many and add_many_with_meta

Link copied to clipboard
interface Disposable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface KeyManager
Link copied to clipboard
Link copied to clipboard
data class Login(    var id: String,     var timesUsed: Long,     var timeCreated: Long,     var timeLastUsed: Long,     var timePasswordChanged: Long,     var origin: String,     var httpRealm: String?,     var formActionOrigin: String?,     var usernameField: String,     var passwordField: String,     var password: String,     var username: String)

A login stored in the database

Link copied to clipboard
data class LoginEntry(    var origin: String,     var httpRealm: String?,     var formActionOrigin: String?,     var usernameField: String,     var passwordField: String,     var password: String,     var username: String)

A login entry from the user, not linked to any database record. The add/update APIs input these.

Link copied to clipboard
data class LoginEntryWithMeta(var entry: LoginEntry, var meta: LoginMeta)

A login together with record fields, handed over to the store API; ie a login persisted elsewhere, useful for migrations

Link copied to clipboard
data class LoginMeta(var id: String, var timesUsed: Long, var timeCreated: Long, var timeLastUsed: Long, var timePasswordChanged: Long)

Login data specific to database records. The add_with_record API inputs this.

Link copied to clipboard

These are the errors returned by our public API.

Link copied to clipboard
data class LoginsDeletionMetrics(var localDeleted: ULong, var mirrorDeleted: ULong)

Metrics tracking deletion of logins that cannot be decrypted, see delete_undecryptable_records_for_remote_replacement for more details

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun checkCanary(canary: String, text: String, encryptionKey: String): Boolean

Check that key is still valid using the output of create_canary.

Link copied to clipboard
fun createCanary(text: String, encryptionKey: String): String

Create a "canary" string, which can be used to test if the encryption

Link copied to clipboard

We expose the crypto primitives on the namespace Create a new, random, encryption key.

Link copied to clipboard

Create a LoginStore with StaticKeyManager by passing in a db path and a static key

Link copied to clipboard

Similar to create_static_key_manager above, create a ManagedEncryptorDecryptor by passing in a KeyManager

Link copied to clipboard

Utility function to create a StaticKeyManager to be used for the time being until support lands for trait implementation of an UniFFI * interface in UniFFI.