Class AppDataCredentialPersistence
Provides a default means of persisting application credentials.
Implements
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class AppDataCredentialPersistence : CredentialPersistence, ILoadable
Remarks
Credentials are encrypted using the Data Protection API and then stored in a secure settings container alongside the application. This API is only supported for use with MSIX packaged applications.
Constructors
Name | Description |
---|---|
AppDataCredentialPersistence(String) | Initializes a new instance of the AppDataCredentialPersistence class. |
Properties
Name | Description |
---|---|
IsSupported | Gets a value indicating whether this is a packaged application that supports securely saving credentials in the application storage. |
LoadError | Gets the System.Exception associated with the last load error. |
LoadStatus | Gets the load status. |
PersistenceId | Gets the persistence ID. |
Methods
Name | Description |
---|---|
Add(Credential) | Adds the specified credential. |
CancelLoad() | Cancel loading metadata for the object. |
Clear() | Removes all credentials from the device. |
CreateAsync(String) | Creates a new AppDataCredentialPersistence object asynchronously with the specified persistence ID. |
GetCredentials() | Returns a collection that contains all credentials managed by this instance. |
LoadAsync() | Load the metadata for the object asynchronously. |
Remove(Credential) | Removes the specified credential. |
RetryLoadAsync() | Loads or retries loading metadata for the object asynchronously. |
Update(Credential) | Updates the specified credential. |
Events
Name | Description |
---|---|
Loaded | Event that is raised when the object is done loading. |
LoadStatusChanged | Event that is raised when the LoadStatus property changes. |
Applies to
Target | Versions |
---|---|
.NET Windows | 200.0 - 200.8 |
UWP | 100.9 - 200.8 |