android-components / mozilla.components.service.sync.logins / AsyncLoginsStorageAdapter / update

update

open fun update(login: ServerPassword): Deferred<Unit> (source)

Overrides AsyncLoginsStorage.update

Updates the fields in the provided record.

This will return an error if login.id does not refer to a record that exists in the database, or if the provided record is invalid (missing password, hostname, or doesn't have exactly one of formSubmitURL and httpRealm).

Like add, this function will ignore values in metadata fields (timesUsed, timeCreated, timeLastUsed, and timePasswordChanged).

Exceptions

NoSuchRecordException - if the login does not exist.

InvalidRecordException - if the update would create an invalid record.