Show / Hide Table of Contents

Class ArcGISTokenCredential

A credential used to access resources secured by ArcGIS tokens.

Inheritance
System.Object
Credential
TokenCredential
ArcGISTokenCredential
Implements
System.ComponentModel.INotifyPropertyChanged
System.Runtime.Serialization.ISerializable
TokenCredential.Token
TokenCredential.ExpirationDate
TokenCredential.UserName
TokenCredential.IsSsl
TokenCredential.GenerateTokenOptions
TokenCredential.RefreshTokenAsync()
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
[Obsolete("Use AccessTokenCredential or PregeneratedTokenCredential instead.")]
[Serializable]
public sealed class ArcGISTokenCredential : TokenCredential, INotifyPropertyChanged, ISerializable
Remarks

You will generally get an instance of this class by calling GetCredentialAsync(CredentialRequestInfo, Boolean). To accommodate specific uses cases, this object can also be created manually.

Constructors

Name Description
ArcGISTokenCredential(Uri, String, GenerateTokenOptions)

Initializes a new instance of the ArcGISTokenCredential class.

Properties

Name Description
Password

Gets or sets the password used to refresh the token.

Methods

Name Description
ToJson()

Convert this Credential to a JSON string.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.