AuthenticatorBinder

class AuthenticatorBinder(session: HostSession, grants: AppGrantStore, guard: AccessGuard, scope: CoroutineScope, dispatcher: CoroutineDispatcher = Dispatchers.IO, readyTimeoutMillis: Long = DEFAULT_READY_TIMEOUT_MILLIS) : IASSAuthenticatorService.Stub

The IASSAuthenticatorService binder: sign-in state, the calling app's own grant, and revocation of that grant by the app itself.

The two synchronous verbs block the binder thread for one local read each: hasLoggedIn waits for the account store to load, bounded by readyTimeoutMillis; isAppAuthorized reads the grant store. Neither touches the network.

Constructors

Link copied to clipboard
constructor(session: HostSession, grants: AppGrantStore, guard: AccessGuard, scope: CoroutineScope, dispatcher: CoroutineDispatcher = Dispatchers.IO, readyTimeoutMillis: Long = DEFAULT_READY_TIMEOUT_MILLIS)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun asBinder(): IBinder?
Link copied to clipboard
open fun attachInterface(owner: IInterface?, descriptor: String?)
Link copied to clipboard
open override fun disconnectFromSolid(webId: String, callback: IASSParcelableCallback)
Link copied to clipboard
open fun dump(fd: FileDescriptor, args: Array<out String?>??)
Link copied to clipboard
open fun dumpAsync(fd: FileDescriptor, args: Array<out String?>??)
Link copied to clipboard
open override fun getAppGrant(webId: String, callback: IASSParcelableCallback)
Link copied to clipboard
open override fun hasLoggedIn(): Boolean
Link copied to clipboard
open override fun isAppAuthorized(webId: String): Boolean
Link copied to clipboard
open fun linkToDeath(recipient: IBinder.DeathRecipient, flags: Int)
Link copied to clipboard
open fun onTransact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean
Link copied to clipboard
open fun pingBinder(): Boolean
Link copied to clipboard
open fun queryLocalInterface(descriptor: String): IInterface?
Link copied to clipboard
fun transact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean
Link copied to clipboard
open fun unlinkToDeath(recipient: IBinder.DeathRecipient, flags: Int): Boolean