Show / Hide Table of Contents

Class TokenCredential

Base class that represents a credential object used to access to token secured ArcGIS resources.

Inheritance
Object
Credential
TokenCredential
ArcGISTokenCredential
OAuthTokenCredential
Implements
INotifyPropertyChanged
ISerializable
Credential.ServiceUri
Credential.PropertyChanged
Credential.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
[Serializable]
[KnownType(typeof(string[]))]
[KnownType(typeof(GenerateTokenOptions))]
[KnownType(typeof(TokenAuthenticationType))]
[KnownType(typeof(DateTimeOffset? ))]
public abstract class TokenCredential : Credential, INotifyPropertyChanged, ISerializable
Remarks

You will generally get an instance of this class by calling GetCredentialAsync(CredentialRequestInfo, Boolean).

Properties

Name Description
ExpirationDate

Gets or sets the Token expiration date.

GenerateTokenOptions

Gets or sets the optional infos used to generate the token : referer, credentials, ....

IsSsl

Gets or sets a value indicating whether the token must always pass over ssl.

Token

Gets or sets the token used to access the arcgis services with this credential. The token can have been generated either by the token service using the specified user name and password or by the OAuth authentication process.

UserName

Gets or sets the user associated with the Credential object.

Methods

Name Description
RefreshTokenAsync()

Refreshes the token.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0
In This Article
Back to top Copyright © 2022 Esri.