Table of Contents

Interface ICredentialProvider

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

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

public interface ICredentialProvider
Extension Methods

Remarks

Implementations of this interface are thread-safe.

Methods

GetCredential(Uri, bool)

Returns NetworkCredentials for a specific 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