3 implementations of ICredentials
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
11
internal sealed class HttpEnvironmentProxyCredentials :
ICredentials
System.Net.Primitives (2)
System\Net\CredentialCache.cs (1)
14
public class CredentialCache :
ICredentials
, ICredentialsByHost, IEnumerable
System\Net\NetworkCredential.cs (1)
16
public class NetworkCredential :
ICredentials
, ICredentialsByHost
91 references to ICredentials
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
255
public override
ICredentials
Credentials
FrameworkFork\Microsoft.Xml\Xml\XmlNullResolver.cs (1)
23
public override
ICredentials
Credentials
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (1)
73
public virtual
ICredentials
Credentials
FrameworkFork\Microsoft.Xml\Xml\XmlUrlResolver.cs (2)
20
private
ICredentials
_credentials;
30
public override
ICredentials
Credentials
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketFactory.cs (1)
23
public abstract Task<WebSocket> CreateWebSocketAsync(Uri address, WebHeaderCollection headers,
ICredentials
credentials, WebSocketTransportSettings settings, TimeoutHelper timeoutHelper);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
214
var
credentials = _channelFactory.GetCredentials();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrClientWebSocketFactory.cs (1)
16
public override async Task<WebSocket> CreateWebSocketAsync(Uri address, WebHeaderCollection headers,
ICredentials
credentials,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
307
internal
ICredentials
GetCredentials()
309
ICredentials
creds = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceModelHttpMessageHandler.CoreClr.cs (1)
37
public
ICredentials
Credentials
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (2)
30
private
ICredentials
_webRequestCredentials;
109
public
ICredentials
HttpCredentials
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnectionOptions.cs (2)
27
private
ICredentials
? _credentials;
197
public
ICredentials
? Credentials
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HttpConnectionFactoryTests.cs (1)
95
{ $"{nameof(HttpConnectionOptions.Credentials)}", Mock.Of<
ICredentials
>() },
HttpConnectionTests.cs (1)
97
httpOptions.Credentials = Mock.Of<
ICredentials
>();
Microsoft.AspNetCore.SignalR.Tests (1)
WebSocketsTransportTests.cs (1)
37
httpOptions.Credentials = Mock.Of<
ICredentials
>();
Microsoft.VisualBasic.Forms (10)
Microsoft\VisualBasic\Devices\Network.DownloadFile.vb (5)
167
Dim networkCredentials As
ICredentials
= GetNetworkCredentials(userName, password)
244
Dim networkCredentials As
ICredentials
= GetNetworkCredentials(userName, password)
276
networkCredentials As
ICredentials
,
297
''' <param name="networkCredentials">The <see cref="
ICredentials
"/> of the user performing the download.</param>
311
networkCredentials As
ICredentials
,
Microsoft\VisualBasic\Devices\Network.UploadFile.vb (3)
210
Dim networkCredentials As
ICredentials
= GetNetworkCredentials(userName, password)
233
networkCredentials As
ICredentials
,
260
networkCredentials As
ICredentials
,
Microsoft\VisualBasic\Devices\NetworkUtilities.vb (2)
45
Friend Function GetNetworkCredentials(userName As String, password As String) As
ICredentials
49
DirectCast(New NetworkCredential(userName, password),
ICredentials
)
netstandard (1)
netstandard.cs (1)
1156
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
ICredentials
))]
PresentationCore (5)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (2)
311
internal
ICredentials
Credentials
851
private
ICredentials
_credentials;
MS\Internal\IO\Packaging\PseudoWebRequest.cs (2)
167
public override
ICredentials
Credentials
373
private
ICredentials
_credentials; // default is null
System\IO\Packaging\PackWebRequest.cs (1)
286
public override
ICredentials
Credentials
System (1)
src\libraries\shims\System\ref\System.cs (1)
641
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
ICredentials
))]
System.Net (1)
System.Net.cs (1)
18
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
ICredentials
))]
System.Net.Http (21)
System\Net\Http\HttpClientHandler.cs (2)
161
public
ICredentials
? DefaultProxyCredentials
198
public
ICredentials
? Credentials
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (5)
80
private static bool TryGetValidAuthenticationChallengeForScheme(string scheme, AuthenticationType authenticationType, Uri uri,
ICredentials
credentials,
110
private static bool TryGetAuthenticationChallenge(HttpResponseMessage response, bool isProxyAuth, Uri authUri,
ICredentials
credentials, out AuthenticationChallenge challenge)
213
private static async ValueTask<HttpResponseMessage> SendWithAuthAsync(HttpRequestMessage request, Uri authUri, bool async,
ICredentials
credentials, bool preAuthenticate, bool isProxyAuth, bool doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
348
public static ValueTask<HttpResponseMessage> SendWithProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async,
ICredentials
proxyCredentials, bool doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
353
public static ValueTask<HttpResponseMessage> SendWithRequestAuthAsync(HttpRequestMessage request, bool async,
ICredentials
credentials, bool preAuthenticate, HttpConnectionPool pool, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (3)
76
private static async Task<HttpResponseMessage> SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, bool async,
ICredentials
credentials, TokenImpersonationLevel impersonationLevel, bool isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
235
public static Task<HttpResponseMessage> SendWithNtProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async,
ICredentials
proxyCredentials, TokenImpersonationLevel impersonationLevel, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
240
public static Task<HttpResponseMessage> SendWithNtConnectionAuthAsync(HttpRequestMessage request, bool async,
ICredentials
credentials, TokenImpersonationLevel impersonationLevel, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
302
public
ICredentials
? ProxyCredentials => _poolManager.ProxyCredentials;
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
45
private readonly
ICredentials
? _proxyCredentials;
225
public
ICredentials
? ProxyCredentials => _proxyCredentials;
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (2)
27
internal
ICredentials
? _defaultProxyCredentials;
32
internal
ICredentials
? _credentials;
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (2)
106
private
ICredentials
? _credentials;
303
public
ICredentials
? Credentials
System\Net\Http\SocketsHttpHandler\HttpNoProxy.cs (1)
8
public
ICredentials
? Credentials { get; set; }
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (2)
93
public
ICredentials
? DefaultProxyCredentials
113
public
ICredentials
? Credentials
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
32
public static async ValueTask EstablishSocksTunnelAsync(Stream stream, string host, int port, Uri proxyUri,
ICredentials
? proxyCredentials, bool async, CancellationToken cancellationToken)
System.Net.Http.WinHttpHandler (2)
artifacts\obj\System.Net.Http.WinHttpHandler\Debug\net10.0\System.Net.Http.WinHttpHandler.notsupported.cs (2)
32
public System.Net.
ICredentials
? DefaultProxyCredentials { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } }
45
public System.Net.
ICredentials
? ServerCredentials { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } }
System.Net.Primitives (2)
System\Net\CredentialCache.cs (1)
169
public static
ICredentials
DefaultCredentials => SystemNetworkCredential.s_defaultCredential;
System\Net\IWebProxy.cs (1)
16
ICredentials
? Credentials { get; set; }
System.Net.Requests (13)
System\Net\AuthenticationManager.cs (2)
18
public static Authorization? Authenticate(string challenge, WebRequest request,
ICredentials
credentials) =>
21
public static Authorization? PreAuthenticate(WebRequest request,
ICredentials
credentials) =>
System\Net\FileWebRequest.cs (1)
78
public override
ICredentials
? Credentials { get; set; }
System\Net\FtpWebRequest.cs (2)
188
private
ICredentials
_authInfo;
314
public override
ICredentials
? Credentials
System\Net\GlobalProxySelection.cs (2)
23
private
ICredentials
? _credentials;
31
public
ICredentials
? Credentials
System\Net\HttpWebRequest.cs (3)
45
private
ICredentials
? _credentials;
122
public readonly
ICredentials
? Credentials;
875
public override
ICredentials
? Credentials
System\Net\IAuthenticationModule.cs (2)
8
Authorization? Authenticate(string challenge, WebRequest request,
ICredentials
credentials);
9
Authorization? PreAuthenticate(WebRequest request,
ICredentials
credentials);
System\Net\WebRequest.cs (1)
452
public virtual
ICredentials
? Credentials
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
28
private
ICredentials
? _credentials;
176
public
ICredentials
? Credentials
System.Net.WebProxy (3)
System\Net\WebProxy.cs (3)
29
public WebProxy(Uri? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList,
ICredentials
? Credentials)
61
public WebProxy(string? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList,
ICredentials
? Credentials)
93
public
ICredentials
? Credentials { get; set; }
System.Net.WebSockets.Client (3)
System\Net\WebSockets\ClientWebSocketOptions.cs (2)
20
private
ICredentials
? _credentials;
99
public
ICredentials
? Credentials
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
537
public
ICredentials
? Credentials { get => throw new NotSupportedException(); set => throw new NotSupportedException(); }
System.Private.Xml (9)
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
254
public override
ICredentials
Credentials
System\Xml\XmlDownloadManager.cs (3)
13
internal static Stream GetStream(Uri uri,
ICredentials
? credentials, IWebProxy? proxy)
27
internal static Task<Stream> GetStreamAsync(Uri uri,
ICredentials
? credentials, IWebProxy? proxy)
40
private static async Task<Stream> GetNonFileStreamAsync(Uri uri,
ICredentials
? credentials, IWebProxy? proxy)
System\Xml\XmlResolver.cs (1)
74
public virtual
ICredentials
Credentials
System\Xml\XmlResolver.ThrowingResolver.cs (1)
33
public override
ICredentials
Credentials
System\Xml\XmlSecureResolver.cs (1)
18
public override
ICredentials
Credentials
System\Xml\XmlUrlResolver.cs (2)
16
private
ICredentials
? _credentials;
22
public override
ICredentials
? Credentials