NanoByte.Common  2.6.1
NanoByte.Common.Net.ConfigurationCredentialProvider Class Reference

Gets credentials from IConfiguration. More...

Inheritance diagram for NanoByte.Common.Net.ConfigurationCredentialProvider:
NanoByte.Common.Net.ICredentialProvider

Public Member Functions

 ConfigurationCredentialProvider (IConfiguration configuration)
 Creates a new configuration credential provider. More...
 
NetworkCredential GetCredential (Uri uri, string authType)
 
void ReportInvalid (Uri uri)
 Report that the credentials that were retrieved for uri were incorrect.
 

Properties

bool Interactive [get]
 
- Properties inherited from NanoByte.Common.Net.ICredentialProvider
bool Interactive [get]
 Indicates whether the credential provider is interactive, i.e., can ask the user for input. More...
 

Detailed Description

Gets credentials from IConfiguration.

See also
ConfigurationCredentialProviderRegisration.ConfigureCredentials

Constructor & Destructor Documentation

◆ ConfigurationCredentialProvider()

NanoByte.Common.Net.ConfigurationCredentialProvider.ConfigurationCredentialProvider ( IConfiguration  configuration)

Creates a new configuration credential provider.

Parameters
configurationThe configuration containing credentials. Each URI must be a subsection with User and Password values.

The documentation for this class was generated from the following file: