Class DefaultChallengeHandler
Default WinStore component that handles the authorization errors returned by the requests to the ArcGIS resources. This implementation is based on the Windows.Security.Credentials.UI.CredentialPicker.
Optionally, depending on the AllowSaveCredentials value, the credentials are cached in the Windows.Security.Credentials.PasswordVault in a secure manner. The Windows.Security.Credentials.PasswordVault roams credentials to other Windows systems, so they can be retrieved on all PCs and tablets.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class DefaultChallengeHandler : object, IChallengeHandler
Constructors
| Name | Description |
|---|---|
| DefaultChallengeHandler() | Initializes a new instance of the DefaultChallengeHandler class. |
Properties
| Name | Description |
|---|---|
| AllowSaveCredentials | Gets or sets a value indicating whether the credentials can be saved in the credential locker. |
| CredentialSaveOption | Gets or sets the option that specifies the initial state of the dialog's Save Credential check box. The default value is clear (unchecked). |
Methods
| Name | Description |
|---|---|
| ClearCredentialsCache() | Clears all ArcGISRuntime credentials from the Credential Locker. |
| CreateCredentialAsync(CredentialRequestInfo) | Challenge for getting the credential allowing to access to the specified ArcGIS resource. |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 100.15 |
| .NET 6.0 | 100.14 - 100.15 |
| .NET 6.0 Windows | 100.14 - 100.15 |
| .NET Framework | 100.14 - 100.15 |
| Xamarin.Android | 100.14 - 100.15 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.0 - 100.15 |