58 references to CredentialCache
dotnet-svcutil-lib (8)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
35if (networkCredential != null && networkCredential != CredentialCache.DefaultNetworkCredentials)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
284if (credential == CredentialCache.DefaultCredentials) 312creds = CredentialCache.DefaultCredentials;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
119credential = CredentialCache.DefaultNetworkCredentials;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (1)
179_serverCredential = CredentialCache.DefaultNetworkCredentials;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
792return CredentialCache.DefaultNetworkCredentials; 833return CredentialCache.DefaultNetworkCredentials.Equals(credential);
Metadata\MetadaExchangeResolver.cs (1)
81resolver.HttpCredentials = System.Net.CredentialCache.DefaultCredentials;
Negotiate.Client (1)
Controllers\AuthTestController.cs (1)
343ServerCredentials = CredentialCache.DefaultCredentials,
netstandard (1)
netstandard.cs (1)
1077[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.CredentialCache))]
PresentationCore (1)
MS\Internal\AppModel\CustomCredentialPolicy.cs (1)
94return credential == CredentialCache.DefaultCredentials;
System (1)
src\libraries\shims\System\ref\System.cs (1)
604[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.CredentialCache))]
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigurationHost.cs (1)
292client.Credentials = CredentialCache.DefaultCredentials;
System.Net.Http (8)
System\Net\Http\HttpClientHandler.cs (3)
179get => _underlyingHandler.Credentials == CredentialCache.DefaultCredentials; 184_underlyingHandler.Credentials = CredentialCache.DefaultCredentials; 188if (_underlyingHandler.Credentials == CredentialCache.DefaultCredentials)
System\Net\Http\SocketsHttpHandler\HttpConnectionSettings.cs (3)
133_defaultCredentialsUsedForProxy = _proxy != null && (_proxy.Credentials == CredentialCache.DefaultCredentials || _defaultProxyCredentials == CredentialCache.DefaultCredentials), 134_defaultCredentialsUsedForServer = _credentials == CredentialCache.DefaultCredentials,
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
70return CredentialCache.DefaultNetworkCredentials;
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
549(settings._credentials == null || settings._credentials is CredentialCache) ?
System.Net.Mail (8)
System\Net\Mail\SmtpClient.cs (6)
240_transport.Credentials = _useDefaultCredentials ? CredentialCache.DefaultNetworkCredentials : _customCredentials; 601CredentialCache? cache; 604_transport.IdentityRequired = Credentials != null && (ReferenceEquals(Credentials, CredentialCache.DefaultNetworkCredentials) || (cache = Credentials as CredentialCache) == null || IsSystemNetworkCredentialInCache(cache)); 683private static bool IsSystemNetworkCredentialInCache(CredentialCache cache) 688if (ReferenceEquals(credential, CredentialCache.DefaultNetworkCredentials))
System\Net\Mail\SmtpConnection.cs (1)
307if (ReferenceEquals(credential, CredentialCache.DefaultNetworkCredentials))
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
24if (credential == null || ReferenceEquals(credential, CredentialCache.DefaultNetworkCredentials))
System.Net.Primitives (5)
System\Net\CredentialCache.cs (5)
175internal static CredentialEnumerator Create(CredentialCache cache) 193private readonly CredentialCache _cache; 198private CredentialEnumerator(CredentialCache cache) 248public SingleTableCredentialEnumerator(CredentialCache cache, Dictionary<TKey, NetworkCredential> table) : base(cache) 273public DoubleTableCredentialEnumerator(CredentialCache cache) : base(cache, cache._cache!)
System.Net.Requests (3)
System\Net\FtpWebRequest.cs (1)
327if (value == CredentialCache.DefaultNetworkCredentials)
System\Net\HttpWebRequest.cs (2)
963return (_credentials == CredentialCache.DefaultCredentials); 974_credentials = value ? CredentialCache.DefaultCredentials : null;
System.Net.Security (15)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
235if (clientOptions.Credential == CredentialCache.DefaultNetworkCredentials ||
System\Net\NegotiateAuthenticationPal.Unix.cs (2)
196if (clientOptions.Credential == CredentialCache.DefaultNetworkCredentials || 244if (serverOptions.Credential == CredentialCache.DefaultNetworkCredentials ||
System\Net\Security\NegotiateAuthenticationClientOptions.cs (2)
50/// Default value is <see cref="CredentialCache.DefaultNetworkCredentials" />. 52public NetworkCredential Credential { get; set; } = CredentialCache.DefaultNetworkCredentials;
System\Net\Security\NegotiateAuthenticationServerOptions.cs (1)
36public NetworkCredential Credential { get; set; } = CredentialCache.DefaultNetworkCredentials;
System\Net\Security\NegotiateStream.cs (9)
103BeginAuthenticateAsClient((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, 128AuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy: null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 131AuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 143BeginAuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy: null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState); 146BeginAuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState); 161AuthenticateAsClient((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 181AuthenticateAsClientAsync((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 204AuthenticateAsServerAsync((NetworkCredential)CredentialCache.DefaultCredentials, policy: null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 207AuthenticateAsServerAsync((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification);
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
184get { return _credentials == CredentialCache.DefaultCredentials; } 185set { _credentials = value ? CredentialCache.DefaultCredentials : null; }
System.Net.WebProxy (2)
System\Net\WebProxy.cs (2)
97get => Credentials == CredentialCache.DefaultCredentials; 98set => Credentials = value ? CredentialCache.DefaultCredentials : null;
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
287CredentialCache.DefaultCredentials :
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
63result.credential = CredentialCache.DefaultNetworkCredentials;