Created
February 4, 2019 14:33
-
-
Save dkhmelenko/e022193cd4e570219a3f4a40715e596d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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