C# Class Esri.ArcGISRuntime.Toolkit.Security.SignInChallengeHandler

Desktop component that handles the authorization errors returned by the requests to the ArcGIS resources.

This component is designed to work with the IdentityManager. It can be initialized with code like: IdentityManager.Current.ChallengeHandler = new Esri.ArcGISRuntime.Toolkit.Security.SignInChallengeHandler();

Optionally, depending on the AllowSaveCredentials value, the credentials may be cached in the IsolatedStorage in a secure manner. By default the SignInChallengeHandler doesn't allow saving the Credentials. To allow it, the SignInChallengeHandler can be instantiated with code like: IdentityManager.Current.ChallengeHandler = new Esri.ArcGISRuntime.Toolkit.Security.SignInChallengeHandler { AllowSaveCredentials = true, CredentialSaveOption = CredentialSaveOption.Selected };
Inheritance: IChallengeHandler
ファイルを表示 Open project: Esri/arcgis-toolkit-dotnet

Public Methods

Method Description
ClearCredentialsCache ( ) : void

Clears all ArcGISRuntime credentials from the Credential Locker.

CreateCredentialAsync ( CredentialRequestInfo credentialRequestInfo ) : Task

Challenge for getting the credential allowing to access to the specified ArcGIS resource.

SignInChallengeHandler ( ) : System

Initializes a new instance of the SignInChallengeHandler class.

Private Methods

Method Description
CreateCertificateCredentialAsync ( CredentialRequestInfo credentialRequestInfo ) : Task
CreateOAuthCredentialAsync ( CredentialRequestInfo credentialRequestInfo ) : Task
GetResourceName ( string url ) : string
GetSuffix ( string url ) : string
RetrieveAllSavedCredentials ( ) : IEnumerable

Retrieves all ArcGISRuntime credentials stored in the isolated storage.

SameOwningSystem ( ServerInfo info1, ServerInfo info2 ) : bool
SetSignInDialogCredentialSaveOption ( ) : void
SignInChallengeHandler ( SignInDialog signInDialog ) : System

Initializes a new instance of the SignInChallengeHandler class.

SignInDialogCreateCredentialAsync ( CredentialRequestInfo credentialRequestInfo ) : Task

Method Details

ClearCredentialsCache() public method

Clears all ArcGISRuntime credentials from the Credential Locker.
public ClearCredentialsCache ( ) : void
return void

CreateCredentialAsync() public method

Challenge for getting the credential allowing to access to the specified ArcGIS resource.
public CreateCredentialAsync ( CredentialRequestInfo credentialRequestInfo ) : Task
credentialRequestInfo CredentialRequestInfo Information about the ArcGIS resource that needs a credential for getting access to.
return Task

SignInChallengeHandler() public method

Initializes a new instance of the SignInChallengeHandler class.
public SignInChallengeHandler ( ) : System
return System