Skip to content

Instantly share code, notes, and snippets.

@dkhmelenko
Created February 4, 2019 14:33
Show Gist options
  • Save dkhmelenko/e022193cd4e570219a3f4a40715e596d to your computer and use it in GitHub Desktop.
Save dkhmelenko/e022193cd4e570219a3f4a40715e596d to your computer and use it in GitHub Desktop.
interface SmartLockCredentialsManager {
/**
* Retrieves stored credentials
*
* @return Single that emits stored credentials
*/
fun retrieveCredentials(): Single<Credential>
/**
* Stores credentials to the Smart Lock
*
* @param credential Credentials to store
* @return Completable
*/
fun storeCredentials(credential: Credential): Completable
/**
* Deletes stored credentials from the Smart Lock
*
* @param credential Credentials to delete
* @return Completable
*/
fun deleteCredentials(credential: Credential): Completable
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment