StoringApiAuthenticator

An ApiAuthenticator that stores credentials after successfully authenticating.

class StoringApiAuthenticator<T : Any>(delegate: ApiAuthenticator<T>, store: CredentialsStore<T>) : ApiAuthenticator<T>

Parameters

delegate

An ApiAuthenticator that does the authentication.

store

A CredentialsStore for storing the credentials.

Constructors

StoringApiAuthenticator
Link copied to clipboard

fun <T : Any> StoringApiAuthenticator(delegate: ApiAuthenticator<T>, store: CredentialsStore<T>)

Functions

authenticate
Link copied to clipboard

Called by the SDK to obtain authentication details eg: an access token

open override fun authenticate(): ApiResult<T>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String