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