ClientManager

open class ClientManager

Factory for authenticated RestClient instances belonging to one persisted user. A manager never changes identity when the application switches its current user.

Constructors

Link copied to clipboard
constructor(@NonNull ctx: Context, @NonNull user: UserAccount)
Constructs a manager permanently bound to an existing persisted user.

Types

Link copied to clipboard
Account-bound auth-token provider.
Link copied to clipboard
Legacy exception type retained for binary compatibility.

Properties

Link copied to clipboard
val ACCESS_TOKEN_REFRESH_INTENT: String = "access_token_refeshed"
Link copied to clipboard
val ACCESS_TOKEN_REVOKE_INTENT: String = "access_token_revoked"
Link copied to clipboard
Link copied to clipboard
val EXTRA_TOKEN_ERROR: String = "token_error"
Intent extra: the error value from the token endpoint response (e.g.
Link copied to clipboard
val EXTRA_TOKEN_ERROR_DESCRIPTION: String = "token_error_description"
Intent extra: the error_description value from the token endpoint response.
Link copied to clipboard
val INSTANCE_URL_UPDATE_INTENT: String = "instance_url_updated"

Functions

Link copied to clipboard
Creates a client for this manager's bound user, or null if it is unavailable.