LoginStoreInterface

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun add(login: LoginEntry): Login
Link copied to clipboard
abstract fun addMany(logins: List<LoginEntry>): List<BulkResultEntry>
Link copied to clipboard
abstract fun addManyWithMeta(entriesWithMeta: List<LoginEntryWithMeta>): List<BulkResultEntry>
Link copied to clipboard
abstract fun addOrUpdate(login: LoginEntry): Login
Link copied to clipboard
abstract fun addWithMeta(entryWithMeta: LoginEntryWithMeta): Login
Link copied to clipboard

Checks multiple logins for password reuse in a single batch operation.

Link copied to clipboard
abstract fun count(): Long
Link copied to clipboard
abstract fun countByFormActionOrigin(formActionOrigin: String): Long
Link copied to clipboard
abstract fun countByOrigin(origin: String): Long
Link copied to clipboard
abstract fun delete(id: String): Boolean
Link copied to clipboard
abstract fun deleteMany(ids: List<String>): List<Boolean>

The delete_undecryptable_records_for_remote_replacement function locally deletes stored logins that cannot be decrypted and sets the last sync time to 0 so any existing server records can be downloaded and overwrite the locally deleted records.

Link copied to clipboard
abstract fun findLoginToUpdate(look: LoginEntry): Login?
Link copied to clipboard
abstract fun get(id: String): Login?
Link copied to clipboard
abstract fun getByBaseDomain(baseDomain: String): List<Login>
Link copied to clipboard
abstract fun getCheckpoint(): String?
Link copied to clipboard
abstract fun hasLoginsByBaseDomain(baseDomain: String): Boolean
Link copied to clipboard

Determines whether a breach alert has been dismissed, based on the breach date and the alert dismissal timestamp.

Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard

Determines whether a login’s password is potentially breached, based on the breach date and the time of the last password change.

Link copied to clipboard

Checks if a login's password matches any password in the local breach database.

Link copied to clipboard
abstract fun list(): List<Login>
Link copied to clipboard
abstract fun recordBreach(id: String, timestamp: Long)

Stores a known breach date for a login. In Firefox Desktop this is updated once per session from Remote Settings.

Link copied to clipboard

Stores that the user dismissed the breach alert for a login.

Link copied to clipboard
abstract fun recordBreachAlertDismissalTime(id: String, timestamp: Long)

Stores the time at which the user dismissed the breach alert for a login.

Link copied to clipboard

Records a list of potentially vulnerable passwords in the breach database.

Link copied to clipboard
Link copied to clipboard
abstract fun reset()
Link copied to clipboard
abstract fun resetAllBreaches()

Removes all recorded breaches for all logins (i.e. sets time_of_last_breach to null).

Link copied to clipboard
abstract fun runMaintenance()

Run maintenance on the DB

Link copied to clipboard
abstract fun setCheckpoint(checkpoint: String)
Link copied to clipboard
abstract fun shutdown()
Link copied to clipboard
abstract fun touch(id: String)
Link copied to clipboard
abstract fun update(id: String, login: LoginEntry): Login
Link copied to clipboard
abstract fun wipeLocal()

Clear out locally stored logins data