Companion

object Companion

Functions

Link copied to clipboard
suspend fun create(url: String, username: String, password: String, tokenExpirationInterval: Int? = null): Result<TokenCredential>

Creates a TokenCredential to access a secured ArcGIS resource.

Link copied to clipboard
suspend fun createNetworkSecured(url: String, username: String, tokenExpirationInterval: Int? = null): Result<TokenCredential>

Creates a TokenCredential for a network secured ArcGIS resource. If the required network credential is not available in the network credential store, a network authentication challenge will be raised.

Link copied to clipboard
suspend fun createWithChallenge(challenge: ArcGISAuthenticationChallenge, username: String, password: String, tokenExpirationInterval: Int? = null): Result<TokenCredential>

Creates a TokenCredential with information needed to access an ArcGIS resource.