OAuth2Handler

interface OAuth2Handler

Functions

Link copied to clipboard
abstract fun blockingBuildEnrollmentUrl(serverUrl: String): String
Link copied to clipboard
Link copied to clipboard
open fun blockingChangePin(currentPin: String, newPin: String): Result<Unit, D2Error>
Link copied to clipboard
abstract fun blockingHandleEnrollmentResponse(serverUrl: String, iat: String, state: String)
Link copied to clipboard
abstract fun blockingHandleLogInResponse(existingUsername: String?, serverUrl: String, authorizationCode: String, state: String): User
Link copied to clipboard
abstract fun blockingLogIn(config: OAuth2Config): String
Link copied to clipboard
abstract fun blockingLogOut()
Link copied to clipboard
Link copied to clipboard
abstract fun getClientId(): String?
Link copied to clipboard
abstract fun isDeviceRegistered(): Boolean
Link copied to clipboard
abstract fun isLoggedIn(): Boolean
Link copied to clipboard
abstract fun logOutObservable(): Observable<Unit>
Link copied to clipboard
abstract fun resetRegistration()
Link copied to clipboard
abstract fun rxLogOutObservable(): Observable<Unit>
Link copied to clipboard
abstract suspend fun suspendChangePin(currentPin: String, newPin: String): Result<Unit, D2Error>
Link copied to clipboard
abstract suspend fun suspendLogOut()
Link copied to clipboard
abstract suspend fun suspendSetPin(pin: String): Result<Unit, D2Error>