Show / Hide Table of Contents

Class AccessTokenCredential

A credential used to access token-secured ArcGIS resources.

Inheritance
System.Object
Credential
ArcGISCredential
AccessTokenCredential
Implements
System.ComponentModel.INotifyPropertyChanged
System.Runtime.Serialization.ISerializable
ArcGISCredential.Username
Credential.ServiceUri
Credential.ServerContext
Credential.PropertyChanged
Credential.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Credential.FromJson(String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
[Serializable]
public sealed class AccessTokenCredential : ArcGISCredential, INotifyPropertyChanged, ISerializable

Properties

Name Description
Referer

Gets the referer used to generate a token.

TokenExpirationInterval

Gets the length of time a token credential remains valid. If not explicitly set, the server default is used.

Methods

Name Description
CreateAsync(Uri, String, String, TimeSpan, CancellationToken)

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

CreateNetworkSecuredAsync(Uri, String, TimeSpan, CancellationToken)

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

GetTokenInfoAsync(CancellationToken)

Returns an instance of TokenInfo generated by this credential.

ToJson()

Convert this Credential to a JSON string.

Applies to

TargetVersions
.NET Standard 2.0200.6 - 200.8
.NET200.6 - 200.8
.NET Windows200.6 - 200.8
.NET Android200.6 - 200.8
.NET iOS200.6 - 200.8
.NET Framework200.6 - 200.8
UWP200.6 - 200.8
In This Article
Back to top Copyright © 2022 Esri.