android-components / mozilla.components.service.sync.logins / DefaultLoginValidationDelegate

DefaultLoginValidationDelegate

class DefaultLoginValidationDelegate : LoginValidationDelegate (source)

A delegate that will check against storage to see if a given Login can be persisted, and return information about why it can or cannot.

Constructors

Name Summary
<init> DefaultLoginValidationDelegate(storage: AsyncLoginsStorage, keyStore: SecureAbove22Preferences, scope: CoroutineScope = CoroutineScope(IO))
A delegate that will check against storage to see if a given Login can be persisted, and return information about why it can or cannot.

Functions

Name Summary
validateCanPersist fun validateCanPersist(login: Login): Deferred<Result>
Checks whether or not login can be persisted.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.