1 type derived from NetworkCredential
System.Net.Primitives (1)
System\Net\CredentialCache.cs (1)
337internal sealed class SystemNetworkCredential : NetworkCredential
18 instantiations of NetworkCredential
dotnet-svcutil-lib (8)
CmdCredentialsProvider.cs (1)
38return new NetworkCredential(username, password);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
328creds = new NetworkCredential(credentials.UserName.UserName, credentials.UserName.Password);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
248result = new NetworkCredential(token.UserName, token.Password);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\HttpDigestClientCredential.cs (1)
17_digestCredentials = new NetworkCredential();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (3)
777result = new NetworkCredential(networkCredential.UserName, networkCredential.Password, networkCredential.Domain); 969credential = new NetworkCredential(partsWithSlashDelimiter[1], credential.Password, partsWithSlashDelimiter[0]); 976credential = new NetworkCredential(partsWithAtDelimiter[0], credential.Password, partsWithAtDelimiter[1]);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WindowsClientCredential.cs (1)
56_windowsCredentials = new NetworkCredential();
Microsoft.AspNetCore.Authentication.Negotiate (1)
PostConfigureNegotiateOptions.cs (1)
82var credentials = new NetworkCredential(machineAccount, ldapSettings.MachineAccountPassword);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\NetworkUtilities.vb (1)
51DirectCast(New NetworkCredential(userName, password), ICredentials)
Security.TransportSecurity.IntegrationTests (2)
Http\ClientCredentialTypeTests.4.1.0.cs (2)
37factory.Credentials.HttpDigest.ClientCredential = new NetworkCredential(username, password, realm); 98factory.Credentials.HttpDigest.ClientCredential = new NetworkCredential(username, password, realm);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
91return new NetworkCredential(value, password, domain);
System.Net.Requests (2)
System\Net\FtpWebRequest.cs (2)
228private static readonly NetworkCredential s_defaultFtpNetworkCredential = new NetworkCredential("anonymous", "anonymous@", string.Empty); 513networkCredential = new NetworkCredential(username, password);
System.ServiceModel.Primitives.Tests (3)
Security\SecurityUtilsTest.cs (3)
26var credential = new NetworkCredential("user@domain.com", "password"); 37credential = new NetworkCredential("user@domain.com", "password"); 48credential = new NetworkCredential("user@domain.com", "password");
181 references to NetworkCredential
dotnet-svcutil-lib (48)
CmdCredentialsProvider.cs (1)
23public NetworkCredential GetCredentials(Uri serviceUri, WebException webException)
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (3)
19private readonly NetworkCredential _networkCredential; 31public KerberosSecurityTokenProvider(string servicePrincipalName, TokenImpersonationLevel tokenImpersonationLevel, NetworkCredential networkCredential) 56public NetworkCredential NetworkCredential
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
22internal KerberosRequestorSecurityToken(string servicePrincipalName, TokenImpersonationLevel tokenImpersonationLevel, NetworkCredential networkCredential, string id)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (4)
234NetworkCredential credential = await HttpChannelUtilities.GetCredentialAsync(_authenticationScheme, 241internal HttpClient GetHttpClient(EndpointAddress to, NetworkCredential credential, 527private string AppendWindowsAuthenticationInfo(string inputString, NetworkCredential credential, 546private string GetConnectionGroupName(NetworkCredential credential, AuthenticationLevel authenticationLevel,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (4)
51public static Task<NetworkCredential> GetCredentialAsync(AuthenticationSchemes authenticationScheme, SecurityTokenProviderContainer credentialProvider, 60return Task.FromResult((NetworkCredential)null); 68private static async Task<NetworkCredential> GetCredentialCoreAsync(AuthenticationSchemes authenticationScheme, 75NetworkCredential result;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (9)
24public static async Task<NetworkCredential> GetSspiCredentialAsync(SecurityTokenProviderContainer tokenProvider, 30NetworkCredential result = await GetSspiCredentialAsync(tokenProvider.TokenProvider as SspiSecurityTokenProvider, 38public static async Task<NetworkCredential> GetSspiCredentialAsync(SspiSecurityTokenProvider tokenProvider, 47public static NetworkCredential GetSspiCredential(SecurityTokenManager credentialProvider, 52NetworkCredential result = null; 87public static async Task<NetworkCredential> GetSspiCredentialAsync(SspiSecurityTokenProvider tokenProvider, 93NetworkCredential credential = null; 239public static async Task<NetworkCredential> GetUserNameCredentialAsync(SecurityTokenProviderContainer tokenProvider, CancellationToken cancellationToken) 241NetworkCredential result = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (3)
31private NetworkCredential _serverCredential; 108private NetworkCredential ServerCredential 276private NetworkCredential _credential;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\HttpDigestClientCredential.cs (2)
12private NetworkCredential _digestCredentials; 26public NetworkCredential ClientCredential
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (11)
281internal static EndpointIdentity CreateWindowsIdentity(NetworkCredential serverCredential) 772internal static NetworkCredential GetNetworkCredentialsCopy(NetworkCredential networkCredential) 774NetworkCredential result; 786internal static NetworkCredential GetNetworkCredentialOrDefault(NetworkCredential credential) 798internal static string AppendWindowsAuthenticationInfo(string inputString, NetworkCredential credential, 821static internal bool IsNullOrEmpty(NetworkCredential credential) 831static internal bool IsDefault(NetworkCredential credential) 836internal static string GetCurrentUserIdAsString(NetworkCredential credential) 952internal static void FixNetworkCredential(ref NetworkCredential credential)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SspiSecurityTokenProvider.cs (2)
23public SspiSecurityTokenProvider(NetworkCredential credential, bool allowNtlm, TokenImpersonationLevel impersonationLevel) 29public SspiSecurityTokenProvider(NetworkCredential credential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SspiSecurityToken.cs (4)
17private readonly NetworkCredential _networkCredential; 23public SspiSecurityToken(TokenImpersonationLevel impersonationLevel, bool allowNtlm, NetworkCredential networkCredential) 32public SspiSecurityToken(NetworkCredential networkCredential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers) 85public NetworkCredential NetworkCredential
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WindowsClientCredential.cs (2)
14private NetworkCredential _windowsCredentials; 51public NetworkCredential ClientCredential
Metadata\IHttpCredentialsProvider.cs (1)
12NetworkCredential GetCredentials(Uri serviceUri, WebException webException);
Metadata\MetadaExchangeResolver.cs (1)
34private NetworkCredential _userCredentials;
Microsoft.AspNetCore.Authentication.Negotiate (1)
PostConfigureNegotiateOptions.cs (1)
82var credentials = new NetworkCredential(machineAccount, ldapSettings.MachineAccountPassword);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\NetworkUtilities.vb (1)
46''' <returns>A <see langword="New"/> <see cref="NetworkCredential"/> or <see langword="Nothing"/>.</returns>
netstandard (1)
netstandard.cs (1)
1189[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.NetworkCredential))]
PresentationCore (2)
MS\Internal\AppModel\CustomCredentialPolicy.cs (2)
73public bool ShouldSendCredential(Uri challengeUri, WebRequest request, NetworkCredential credential, IAuthenticationModule authenticationModule) 92private bool IsDefaultCredentials(NetworkCredential credential)
System (1)
src\libraries\shims\System\ref\System.cs (1)
678[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.NetworkCredential))]
System.DirectoryServices.Protocols (7)
artifacts\obj\System.DirectoryServices.Protocols\Debug\net10.0\System.DirectoryServices.Protocols.notsupported.cs (7)
167public virtual System.Net.NetworkCredential Credential { set { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } } 323public LdapConnection(System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.Net.NetworkCredential credential) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 324public LdapConnection(System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.Net.NetworkCredential credential, System.DirectoryServices.Protocols.AuthType authType) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 328public override System.Net.NetworkCredential Credential { set { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } } 335public void Bind(System.Net.NetworkCredential newCredential) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } 457public delegate bool NotifyOfNewConnectionCallback(System.DirectoryServices.Protocols.LdapConnection primaryConnection, System.DirectoryServices.Protocols.LdapConnection referralFromConnection, string newDistinguishedName, System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.DirectoryServices.Protocols.LdapConnection newConnection, System.Net.NetworkCredential credential, long currentUserToken, int errorCodeFromBind); 492public delegate System.DirectoryServices.Protocols.LdapConnection QueryForConnectionCallback(System.DirectoryServices.Protocols.LdapConnection primaryConnection, System.DirectoryServices.Protocols.LdapConnection referralFromConnection, string newDistinguishedName, System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.Net.NetworkCredential credential, long currentUserToken);
System.Net (1)
System.Net.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.NetworkCredential))]
System.Net.Http (27)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (3)
104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch) 119foreach ((CredentialCacheKey key, NetworkCredential value) in cache)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (7)
32public NetworkCredential Credential { get; } 35public AuthenticationChallenge(AuthenticationType authenticationType, string schemeName, NetworkCredential credential, string? challenge) 90NetworkCredential? credential = credentials.GetCredential(uri, scheme); 176private static void SetBasicAuthToken(HttpRequestMessage request, NetworkCredential credential, bool isProxyAuth) 187private static async ValueTask<bool> TrySetDigestAuthToken(HttpRequestMessage request, NetworkCredential credential, DigestResponse digestResponse, bool isProxyAuth) 218NetworkCredential? preAuthCredential = null; 223(Uri uriPrefix, NetworkCredential credential)? preAuthCredentialPair;
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
39public static async Task<string?> GetDigestTokenForCredential(NetworkCredential credential, HttpRequestMessage request, DigestResponse digestResponse)
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (8)
14private readonly NetworkCredential? _httpCred; 15private readonly NetworkCredential? _httpsCred; 19public HttpEnvironmentProxyCredentials(Uri? httpProxy, NetworkCredential? httpCred, 20Uri? httpsProxy, NetworkCredential? httpsCred) 28public NetworkCredential? GetCredential(Uri? uri, string authType) 40NetworkCredential? httpCred = null; 41NetworkCredential? httpsCred = null; 61private static NetworkCredential? GetCredentialsFromString(string? value)
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (5)
14private Dictionary<CredentialCacheKey, NetworkCredential>? _cache; 16public void Add(Uri uriPrefix, string authType, NetworkCredential cred) 25_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>(); 44public (Uri uriPrefix, NetworkCredential credential)? GetCredential(Uri uriPrefix, string authType) 54CredentialCacheHelper.TryGetCredential(_cache, uriPrefix, authType, out Uri? mostSpecificMatchUri, out NetworkCredential? mostSpecificMatch);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (3)
38NetworkCredential? credentials = proxyCredentials?.GetCredential(proxyUri, proxyUri.Scheme); 65private static async ValueTask EstablishSocks5TunnelAsync(Stream stream, string host, int port, NetworkCredential? credentials, bool async) 213private static async ValueTask EstablishSocks4TunnelAsync(Stream stream, bool isVersion4a, string host, int port, NetworkCredential? credentials, bool async, CancellationToken cancellationToken)
System.Net.Mail (13)
System\Net\Mail\ISmtpAuthenticationModule.cs (1)
12Authorization? Authenticate(string? challenge, NetworkCredential? credentials, object sessionCookie, string? spn, ChannelBinding? channelBindingToken);
System\Net\Mail\SmtpClient.cs (1)
686foreach (NetworkCredential credential in cache)
System\Net\Mail\SmtpConnection.cs (5)
266NetworkCredential? credential = _credentials.GetCredential(host, port, _authenticationModules[i].AuthenticationType); 304private Authorization? SetContextAndTryAuthenticate(ISmtpAuthenticationModule module, NetworkCredential? credential, ContextAwareResult? context) 346internal AuthenticateCallbackContext(SmtpConnection thisPtr, ISmtpAuthenticationModule module, NetworkCredential credential, string? spn, ChannelBinding? Token) 359internal readonly NetworkCredential _credential; 754NetworkCredential? credential = _connection._credentials.GetCredential(_host, _port, module.AuthenticationType);
System\Net\Mail\SmtpLoginAuthenticationModule.cs (4)
11private readonly Dictionary<object, NetworkCredential> _sessions = new Dictionary<object, NetworkCredential>(); 17public Authorization? Authenticate(string? challenge, NetworkCredential? credential, object sessionCookie, string? spn, ChannelBinding? channelBindingToken) 21NetworkCredential? cachedCredential;
System\Net\Mail\SmtpNegotiateAuthenticationModule.cs (1)
21public Authorization? Authenticate(string? challenge, NetworkCredential? credential, object sessionCookie, string? spn, ChannelBinding? channelBindingToken)
System\Net\Mail\SmtpNtlmAuthenticationModule.cs (1)
18public Authorization? Authenticate(string? challenge, NetworkCredential? credential, object sessionCookie, string? spn, ChannelBinding? channelBindingToken)
System.Net.Primitives (27)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (3)
104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch) 119foreach ((CredentialCacheKey key, NetworkCredential value) in cache)
System\Net\CredentialCache.cs (18)
16private Dictionary<CredentialCacheKey, NetworkCredential>? _cache; 17private Dictionary<CredentialHostKey, NetworkCredential>? _cacheForHosts; 24public void Add(Uri uriPrefix, string authType, NetworkCredential cred) 44_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>(); 48public void Add(string host, int port, string authenticationType, NetworkCredential credential) 70_cacheForHosts ??= new Dictionary<CredentialHostKey, NetworkCredential>(); 127public NetworkCredential? GetCredential(Uri uriPrefix, string authType) 138CredentialCacheHelper.TryGetCredential(_cache, uriPrefix, authType, out _ /*uri*/, out NetworkCredential? mostSpecificMatch); 145public NetworkCredential? GetCredential(string host, int port, string authenticationType) 159NetworkCredential? match; 171public static NetworkCredential DefaultNetworkCredentials => SystemNetworkCredential.s_defaultCredential; 196private NetworkCredential? _current; 233protected virtual bool MoveNext(out NetworkCredential? current) 246private Dictionary<TKey, NetworkCredential>.ValueCollection.Enumerator _enumerator; // mutable struct field deliberately not readonly. 248public SingleTableCredentialEnumerator(CredentialCache cache, Dictionary<TKey, NetworkCredential> table) : base(cache) 258protected override bool MoveNext(out NetworkCredential current) => 270private Dictionary<CredentialHostKey, NetworkCredential>.ValueCollection.Enumerator _enumerator; // mutable struct field deliberately not readonly. 283protected override bool MoveNext(out NetworkCredential current)
System\Net\ICredentials.cs (1)
22NetworkCredential? GetCredential(Uri uri, string authType);
System\Net\ICredentialsByHost.cs (1)
22NetworkCredential? GetCredential(string host, int port, string authenticationType);
System\Net\NetworkCredential.cs (4)
29/// Initializes a new instance of the <see cref='System.Net.NetworkCredential'/> 40/// Initializes a new instance of the <see cref='System.Net.NetworkCredential'/> 144public NetworkCredential GetCredential(Uri? uri, string? authenticationType) 149public NetworkCredential GetCredential(string? host, int port, string? authenticationType)
System.Net.Requests (5)
System\Net\FtpControlStream.cs (2)
55internal NetworkCredential? Credentials 61return (NetworkCredential?)_credentials.Target;
System\Net\FtpWebRequest.cs (2)
228private static readonly NetworkCredential s_defaultFtpNetworkCredential = new NetworkCredential("anonymous", "anonymous@", string.Empty); 498NetworkCredential? networkCredential = null;
System\Net\ICredentialPolicy.cs (1)
8bool ShouldSendCredential(Uri challengeUri, WebRequest request, NetworkCredential credential, IAuthenticationModule authenticationModule);
System.Net.Security (33)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
28private readonly NetworkCredential _credential;
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
481private SafeGssCredHandle AcquireCredentialsHandle(NetworkCredential credential)
System\Net\Security\NegotiateAuthenticationClientOptions.cs (1)
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 (29)
103BeginAuthenticateAsClient((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, 106public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, AsyncCallback? asyncCallback, object? asyncState) => 110public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, ChannelBinding? binding, string targetName, AsyncCallback? asyncCallback, object? asyncState) => 115NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, 121NetworkCredential credential, ChannelBinding? binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, 128AuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy: null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 131AuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 133public virtual void AuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel) => 136public virtual void AuthenticateAsServer(NetworkCredential credential, ExtendedProtectionPolicy? policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel) 143BeginAuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy: null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState); 146BeginAuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState); 149NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, 154NetworkCredential credential, ExtendedProtectionPolicy? policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, 161AuthenticateAsClient((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 163public virtual void AuthenticateAsClient(NetworkCredential credential, string targetName) => 166public virtual void AuthenticateAsClient(NetworkCredential credential, ChannelBinding? binding, string targetName) => 170NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel) => 174NetworkCredential credential, ChannelBinding? binding, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel) 181AuthenticateAsClientAsync((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 183public virtual Task AuthenticateAsClientAsync(NetworkCredential credential, string targetName) => 187NetworkCredential credential, string targetName, 192public virtual Task AuthenticateAsClientAsync(NetworkCredential credential, ChannelBinding? binding, string targetName) => 196NetworkCredential credential, ChannelBinding? binding, string targetName, ProtectionLevel requiredProtectionLevel, 204AuthenticateAsServerAsync((NetworkCredential)CredentialCache.DefaultCredentials, policy: null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 207AuthenticateAsServerAsync((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 209public virtual Task AuthenticateAsServerAsync(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel) => 213NetworkCredential credential, ExtendedProtectionPolicy? policy, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel) 597NetworkCredential credential, 624NetworkCredential credential,
System.ServiceModel.NetFramingBase (4)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (3)
26public static async ValueTask<(NetworkCredential credential, TokenImpersonationLevel impersonationLevel, bool allowNtlm)> GetSspiCredentialAsync(SecurityTokenProvider tokenProvider, TimeSpan timeout) 33public static async ValueTask<(NetworkCredential credential, bool extractGroupsForWindowsAccounts, TokenImpersonationLevel impersonationLevel, bool allowNtlm)> GetSspiCredentialCoreAsync( 36(NetworkCredential credential,
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (1)
116private NetworkCredential _credential;
System.ServiceModel.Primitives (5)
netstandard.cs (5)
2249public System.Net.NetworkCredential ClientCredential { get { return default; } set { } } 2289public System.Net.NetworkCredential ClientCredential { get { return default; } set { } } 2512public SspiSecurityToken(System.Security.Principal.TokenImpersonationLevel impersonationLevel, bool allowNtlm, System.Net.NetworkCredential networkCredential) { } 2513public SspiSecurityToken(System.Net.NetworkCredential networkCredential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers) { } 2520public System.Net.NetworkCredential NetworkCredential => default;
System.ServiceModel.Primitives.Tests (5)
Security\SecurityUtilsTest.cs (5)
21null, new[] { typeof(NetworkCredential).MakeByRefType() }, null); 26var credential = new NetworkCredential("user@domain.com", "password"); 29credential = (NetworkCredential)parameters[0]; 40credential = (NetworkCredential)parameters[0]; 51credential = (NetworkCredential)parameters[0];