Click or drag to resize

ArcGISTokenCredential Class

The ArcGISTokenCredential class represents a credential object used to access to ArcGIS resources secured with an ArcGIS token.
Inheritance Hierarchy

Namespace:  Esri.ArcGISRuntime.Security
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
[SerializableAttribute]
public sealed class ArcGISTokenCredential : TokenCredential

The ArcGISTokenCredential type exposes the following members.

Constructors
  NameDescription
Public methodArcGISTokenCredential
Initializes a new instance of the ArcGISTokenCredential class.
Top
Properties
  NameDescription
Public propertyExpirationDate
Gets or sets the Token expiration date.
(Inherited from TokenCredential.)
Public propertyGenerateTokenOptions
Gets or sets the optional infos used to generate the token : referer, credentials, ....
(Inherited from TokenCredential.)
Public propertyIsSsl
Gets or sets a value indicating whether the token must always pass over ssl.
(Inherited from TokenCredential.)
Public propertyPassword
Gets or sets the password used to refresh the token.
Public propertyCode exampleServiceUri
Gets or sets the URI of the service that can be accessed with this credential.
(Inherited from Credential.)
Public propertyToken
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.
(Inherited from TokenCredential.)
Public propertyUserName
Gets or sets the user associated with the Credential object.
(Inherited from TokenCredential.)
Top
Methods
  NameDescription
Public methodRefreshTokenAsync
Refreshes the token.
(Inherited from TokenCredential.)
Public methodRefreshTokenImplAsync Obsolete.
Refreshes the token.
(Inherited from TokenCredential.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from Credential.)
Top
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.
See Also