Class TokenCredential
Base class for credentials used to access token-secured ArcGIS resources.
Implements
System.ComponentModel.INotifyPropertyChanged
System.Runtime.Serialization.ISerializable
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
This is a base class for ArcGIS credentials requiring OAuth or ArcGIS Token authentication, such as OAuthTokenCredential and ArcGISTokenCredential.
You will generally get an instance of this class by calling GetCredentialAsync.
Properties
Name | Description |
---|---|
ExpirationDate | Gets or sets the access 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 ArcGIS services with this credential. |
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 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |