create Network Secured
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.
Return
Returns a TokenCredential.
Since
200.1.0
Parameters
url
The URL of the network secured resource.
username
The username used to access the secured resource or retrieve a token.
token Expiration Interval
The duration the token will remain valid, represented in minutes. The value must be greater than 0, otherwise the server default is used.