NanoByte.Common  2.6.1
NanoByte.Common.Net.WindowsCredentialProvider Class Referenceabstract

Asks for NetworkCredentials for specific Uris using WindowsCredentials. More...

Inheritance diagram for NanoByte.Common.Net.WindowsCredentialProvider:
NanoByte.Common.Net.CredentialProviderBase NanoByte.Common.MarshalNoTimeout NanoByte.Common.Net.ICredentialProvider NanoByte.Common.Net.WindowsCliCredentialProvider NanoByte.Common.Net.WindowsDialogCredentialProvider

Public Member Functions

override? NetworkCredential GetCredential (Uri uri, string authType)
 
- Public Member Functions inherited from NanoByte.Common.Net.CredentialProviderBase
void ReportInvalid (Uri uri)
 Report that the credentials that were retrieved for uri were incorrect.
 
- Public Member Functions inherited from NanoByte.Common.MarshalNoTimeout
override? object InitializeLifetimeService ()
 

Protected Member Functions

 WindowsCredentialProvider (ITaskHandler handler)
 
abstract NetworkCredential Prompt (string target, WindowsCredentialsFlags flags)
 Performs the actual WindowsCredentials API call to prompt the user or the credential store for credentials. More...
 
- Protected Member Functions inherited from NanoByte.Common.Net.CredentialProviderBase
 CredentialProviderBase (ITaskHandler handler)
 Creates a new credential provider. More...
 
bool WasReportedInvalid (Uri uri)
 Checks whether uri was previously reported as invalid and resets the flag. More...
 

Additional Inherited Members

- Properties inherited from NanoByte.Common.Net.CredentialProviderBase
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

Asks for NetworkCredentials for specific Uris using WindowsCredentials.

Member Function Documentation

◆ Prompt()

abstract NetworkCredential NanoByte.Common.Net.WindowsCredentialProvider.Prompt ( string  target,
WindowsCredentialsFlags  flags 
)
protectedpure virtual

Performs the actual WindowsCredentials API call to prompt the user or the credential store for credentials.

Parameters
targetA string uniquely identifying the target the credentials are intended for.
flagsFlags for configuring the prompt.

Implemented in NanoByte.Common.Net.WindowsDialogCredentialProvider, and NanoByte.Common.Net.WindowsCliCredentialProvider.


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