Interface ICredentialProvider
Asks the user or a keyring for NetworkCredentials for specific Uris.
Namespace: NanoByte.Common.Net
Assembly: NanoByte.Common.dll
Syntax
public interface ICredentialProvider
Remarks
Implementations of this interface are thread-safe.
Methods
GetCredential(Uri, Boolean)
Returns NetworkCredentials for a specific Uri.
Declaration
NetworkCredential GetCredential(Uri uri, bool previousIncorrect = false)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI that the client is providing authentication for. |
Boolean | previousIncorrect | Reports that the credentials previously returned by this provider were incorrect. |
Returns
Type | Description |
---|---|
NetworkCredential |