6 implementations of GetCredential
NuGet.Common (1)
AuthTypeFilteredCredentials.cs (1)
40public NetworkCredential? GetCredential(Uri uri, string authType)
NuGet.Configuration (1)
Proxy\ProxyCache.cs (1)
165public NetworkCredential? GetCredential(Uri proxyAddress, string authType)
NuGet.Protocol (1)
HttpSource\HttpSourceCredentials.cs (1)
73NetworkCredential? ICredentials.GetCredential(Uri uri, string authType)
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
23public NetworkCredential? GetCredential(Uri? uri, string authType)
System.Net.Primitives (2)
System\Net\CredentialCache.cs (1)
127public NetworkCredential? GetCredential(Uri uriPrefix, string authType)
System\Net\NetworkCredential.cs (1)
144public NetworkCredential GetCredential(Uri? uri, string? authenticationType)
15 references to GetCredential
NuGet.Configuration (1)
Proxy\ProxyCache.cs (1)
170return cachedCredentials.GetCredential(proxyAddress, authType);
NuGet.Credentials (1)
SecurePluginCredentialProvider.cs (1)
180var proxyCredential = proxy.Credentials.GetCredential(uri, _basicAuthenticationType);
NuGet.Protocol (6)
HttpSource\HttpSourceCredentials.cs (1)
76return Credentials?.GetCredential(uri, authType);
HttpSource\ProxyAuthenticationHandler.cs (1)
228return promptCredentials?.GetCredential(proxyAddress, BasicAuthenticationType);
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (2)
184var resolvedCredential = credential?.GetCredential(packageSource.SourceUri, authType: null!); 280return proxyCredentials?.GetCredential(proxyUri!, _basicAuthenticationType);
Resources\PluginResource.cs (2)
115var proxyCredential = credentials.GetCredential(sourceUri, _basicAuthenticationType); 126var packageSourceCredential = credentials.GetCredential(sourceUri, authType: null);
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (2)
90NetworkCredential? credential = credentials.GetCredential(uri, scheme); 226NetworkCredential? credential = credentials.GetCredential(authUri, BasicScheme);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
38NetworkCredential? credentials = proxyCredentials?.GetCredential(proxyUri, proxyUri.Scheme);
System.Net.Http.WinHttpHandler (3)
System\Net\Http\WinHttpAuthHelper.cs (3)
271NetworkCredential? cred = serverCredentials.GetCredential(uri, authType); 328NetworkCredential? networkCredential = credentials.GetCredential(uri, authType); 404if ((supportedSchemes & authScheme) != 0 && credentials.GetCredential(uri, s_authSchemeStringMapping[authScheme]!) != null)
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
508Credentials = request.Credentials!.GetCredential(request.RequestUri, "basic");