Table of Contents

Interface ICredentialProvider

Namespace
NanoByte.Common.Net
Assembly
NanoByte.Common.dll

Asks the user or a keyring for System.Net.NetworkCredentials for specific System.Uris.

public interface ICredentialProvider
Extension Methods

Remarks

Implementations of this interface are thread-safe.

Methods

GetCredential(Uri, bool)

Returns System.Net.NetworkCredentials for a specific System.Uri.

NetworkCredential? GetCredential(Uri uri, bool previousIncorrect = false)

Parameters

uri Uri

The URI that the client is providing authentication for.

previousIncorrect bool

Reports that the credentials previously returned by this provider were incorrect.

Returns

NetworkCredential