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