Class TokenCredential
Base class that represents a credential object used to access to token secured ArcGIS resources.
Implements
System.ComponentModel.INotifyPropertyChanged
System.Runtime.Serialization.ISerializable
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)
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |