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 secured ArcGIS resources, including portal, federated, and non-federated resources.

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

Creates a TokenCredential to access a secured federated ArcGIS resource. Federation is a security and administrative configuration in which an ArcGIS Server is registered with an ArcGIS Enterprise portal or ArcGIS Online organization, delegating authentication and authorization to the portal. This allows the portal to manage user identities, roles, and permissions for the server's services.

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.