1 type derived from NetworkCredential
System (1)
net\System\Net\CredentialCache.cs (1)
389
internal class SystemNetworkCredential :
NetworkCredential
{
20 instantiations of NetworkCredential
System (3)
net\System\Net\Configuration\SmtpNetworkElement.cs (1)
177
this.credential = new
NetworkCredential
(element.UserName, element.Password);
net\System\Net\FtpWebRequest.cs (2)
242
private static readonly NetworkCredential DefaultFtpNetworkCredential = new
NetworkCredential
("anonymous", "anonymous@", String.Empty);
540
networkCredential = new
NetworkCredential
(username, password);
System.Runtime.Remoting (3)
channels\http\httpclientchannel.cs (2)
627
httpWebRequest.Credentials = new
NetworkCredential
(_securityUserName, _securityPassword);
629
httpWebRequest.Credentials = new
NetworkCredential
(_securityUserName, _securityPassword, _securityDomain);
channels\tcp\tcpclientchannel.cs (1)
279
credentials = new
NetworkCredential
(_securityUserName, _securityPassword, _securityDomain);
System.ServiceModel (9)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
493
result = new
NetworkCredential
(token.UserName, token.Password);
588
this.credential = new
NetworkCredential
(token.UserName, token.Password);
System\ServiceModel\ComIntegration\ChannelCredentials.cs (1)
70
newCredentials = new
NetworkCredential
(userName, password, domain);
System\ServiceModel\Security\HttpDigestClientCredential.cs (1)
19
this.digestCredentials = new
NetworkCredential
();
System\ServiceModel\Security\SecurityUtils.cs (4)
1462
credential = new
NetworkCredential
(partsWithSlashDelimiter[1], NetworkCredentialHelper.UnsafeGetPassword(credential), partsWithSlashDelimiter[0]);
1469
credential = new
NetworkCredential
(partsWithAtDelimiter[0], NetworkCredentialHelper.UnsafeGetPassword(credential), partsWithAtDelimiter[1]);
1489
dummyNetworkCredential = new
NetworkCredential
("dummy", "dummy");
1880
result = new
NetworkCredential
(NetworkCredentialHelper.UnsafeGetUsername(networkCredential), NetworkCredentialHelper.UnsafeGetPassword(networkCredential), NetworkCredentialHelper.UnsafeGetDomain(networkCredential));
System\ServiceModel\Security\WindowsClientCredential.cs (1)
57
this.windowsCredentials = new
NetworkCredential
();
System.Web (5)
Security\ADMembershipProvider.cs (5)
377
NetworkCredential credential = new
NetworkCredential
(username, password);
2281
NetworkCredential credentialForValidation = (usernameIsSAMAccountName) ? new
NetworkCredential
(username, password, directoryInfo.DomainName)
2282
: DirectoryInformation.GetCredentialsWithDomain(new
NetworkCredential
(username, password));
4103
credentialsWithDomain = new
NetworkCredential
(null, "");
4124
credentialsWithDomain = new
NetworkCredential
(username, password, domainName);
169 references to NetworkCredential
PresentationCore (2)
Core\CSharp\MS\Internal\AppModel\CustomCredentialPolicy.cs (2)
118
public bool ShouldSendCredential(Uri challengeUri, WebRequest request,
NetworkCredential
credential, IAuthenticationModule authenticationModule)
144
private bool IsDefaultCredentials(
NetworkCredential
credential)
System (84)
net\System\Net\_BasicClient.cs (1)
88
NetworkCredential
NC = credentials.GetCredential(httpWebRequest.ChallengedUri, Signature);
net\System\Net\_DigestClient.cs (3)
64
NetworkCredential
NC = credentials.GetCredential(httpWebRequest.ChallengedUri, DigestClient.Signature);
327
NetworkCredential
NC = credentials.GetCredential(httpWebRequest.ChallengedUri, Signature);
940
internal static Authorization Authenticate(HttpDigestChallenge digestChallenge,
NetworkCredential
NC, string spn, ChannelBinding binding) {
net\System\Net\_FtpControlStream.cs (2)
69
internal
NetworkCredential
Credentials {
72
return (
NetworkCredential
) m_Credentials.Target;
net\System\Net\_KerberosClient.cs (1)
78
NetworkCredential
NC = credentials.GetCredential(httpWebRequest.ChallengedUri, Signature);
net\System\Net\_NegotiateClient.cs (1)
80
NetworkCredential
NC = credentials.GetCredential(httpWebRequest.ChallengedUri, negotiateSignature);
net\System\Net\_NTAuthentication.cs (6)
338
internal NTAuthentication(string package,
NetworkCredential
networkCredential, SpnToken spnToken,
380
internal NTAuthentication(bool isServer, string package,
NetworkCredential
credential, string spn, ContextFlags requestedContextFlags, ContextAwareResult context, ChannelBinding channelBinding)
431
internal NTAuthentication(bool isServer, string package,
NetworkCredential
credential, string spn, ContextFlags requestedContextFlags, ChannelBinding channelBinding) {
457
internal InitializeCallbackContext(NTAuthentication thisPtr, bool isServer, string package,
NetworkCredential
credential, string spn, ContextFlags requestedContextFlags, ChannelBinding channelBinding)
471
internal readonly
NetworkCredential
credential;
484
private void Initialize(bool isServer, string package,
NetworkCredential
credential, string spn, ContextFlags requestedContextFlags, ChannelBinding channelBinding) {
net\System\Net\_NtlmClient.cs (1)
77
NetworkCredential
NC = credentials.GetCredential(httpWebRequest.ChallengedUri, Signature);
net\System\Net\AuthenticationManager.cs (1)
31
NetworkCredential
credential,
net\System\Net\Configuration\SmtpNetworkElement.cs (3)
173
this.credential = (
NetworkCredential
)CredentialCache.DefaultCredentials;
182
internal
NetworkCredential
Credential
216
NetworkCredential
credential = null;
net\System\Net\CredentialCache.cs (12)
51
/// <para>Adds a <see cref='System.Net.
NetworkCredential
'/>
55
public void Add(Uri uriPrefix, string authType,
NetworkCredential
cred) {
89
public void Add(string host, int port, string authenticationType,
NetworkCredential
credential) {
133
/// <para>Removes a <see cref='System.Net.
NetworkCredential
'/>
182
/// Returns the <see cref='System.Net.
NetworkCredential
'/>
187
public
NetworkCredential
GetCredential(Uri uriPrefix, string authType) {
196
NetworkCredential
mostSpecificMatch = null;
226
mostSpecificMatch = (
NetworkCredential
)credEnum.Value;
237
public
NetworkCredential
GetCredential(string host, int port, string authenticationType) {
254
NetworkCredential
match = null;
272
match = (
NetworkCredential
)credEnum.Value;
310
public static
NetworkCredential
DefaultNetworkCredentials {
net\System\Net\FtpWebRequest.cs (4)
242
private static readonly
NetworkCredential
DefaultFtpNetworkCredential = new NetworkCredential("anonymous", "anonymous@", String.Empty);
254
internal static
NetworkCredential
DefaultNetworkCredential{
527
NetworkCredential
networkCredential = null;
2009
NetworkCredential
networkCreds = this.Credentials.GetCredential(m_Uri, "basic");
net\System\Net\HttpWebRequest.cs (2)
4014
(!(Credentials is
NetworkCredential
) &&
4818
NetworkCredential
networkCreds = Credentials.GetCredential(_Uri, "basic");
net\System\Net\ICredentials.cs (1)
38
NetworkCredential
GetCredential(Uri uri, String authType);
net\System\Net\ICredentialsByHost.cs (1)
38
NetworkCredential
GetCredential(string host, int port, string authenticationType);
net\System\Net\IntranetCredentialPolicy.cs (1)
78
public virtual bool ShouldSendCredential(Uri challengeUri, WebRequest request,
NetworkCredential
credential, IAuthenticationModule authModule)
net\System\Net\mail\ISmtpAuthenticationModule.cs (1)
15
Authorization Authenticate(string challenge,
NetworkCredential
credentials, object sessionCookie, string spn, ChannelBinding channelBindingToken);
net\System\Net\mail\smtpconnection.cs (5)
434
NetworkCredential
credential = credentials.GetCredential(servicePoint.Host,
476
private Authorization SetContextAndTryAuthenticate(ISmtpAuthenticationModule module,
NetworkCredential
credential, ContextAwareResult context)
533
internal AuthenticateCallbackContext(SmtpConnection thisPtr, ISmtpAuthenticationModule module,
NetworkCredential
credential, string spn, ChannelBinding Token)
546
internal readonly
NetworkCredential
credential;
980
NetworkCredential
credential = connection.credentials.GetCredential(host, port, module.AuthenticationType);
net\System\Net\mail\SmtpDigestAuthenticationModule.cs (1)
35
public Authorization Authenticate(string challenge,
NetworkCredential
credential, object sessionCookie, string spn, ChannelBinding channelBindingToken)
net\System\Net\mail\SmtpLoginAuthenticationModule.cs (3)
34
public Authorization Authenticate(string challenge,
NetworkCredential
credential, object sessionCookie, string spn, ChannelBinding channelBindingToken)
40
NetworkCredential
cachedCredential = sessions[sessionCookie] as
NetworkCredential
;
net\System\Net\mail\SmtpNegotiateAuthenticationModule.cs (1)
30
public Authorization Authenticate(string challenge,
NetworkCredential
credential, object sessionCookie, string spn, ChannelBinding channelBindingToken)
net\System\Net\mail\SmtpNtlmAuthenticationModule.cs (1)
36
public Authorization Authenticate(string challenge,
NetworkCredential
credential, object sessionCookie, string spn, ChannelBinding channelBindingToken)
net\System\Net\NetworkCredential.cs (6)
42
/// Initializes a new instance of the <see cref='System.Net.
NetworkCredential
'/>
53
/// Initializes a new instance of the <see cref='System.Net.
NetworkCredential
'/>
64
/// Initializes a new instance of the <see cref='System.Net.
NetworkCredential
'/>
77
/// Initializes a new instance of the <see cref='System.Net.
NetworkCredential
'/>
231
public
NetworkCredential
GetCredential(Uri uri, String authType) {
235
public
NetworkCredential
GetCredential(string host, int port, String authenticationType) {
net\System\Net\SecureProtocols\_NegoState.cs (2)
90
NetworkCredential
credential,
125
NetworkCredential
credential,
net\System\Net\SecureProtocols\NegotiateStream.cs (24)
69
AuthenticateAsClient((
NetworkCredential
)CredentialCache.DefaultCredentials, null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification);
71
public virtual void AuthenticateAsClient(
NetworkCredential
credential, string targetName)
75
public virtual void AuthenticateAsClient(
NetworkCredential
credential, ChannelBinding binding, string targetName)
81
public virtual void AuthenticateAsClient(
NetworkCredential
credential,
89
public virtual void AuthenticateAsClient(
NetworkCredential
credential,
108
return BeginAuthenticateAsClient((
NetworkCredential
)CredentialCache.DefaultCredentials, null, string.Empty,
114
public virtual IAsyncResult BeginAuthenticateAsClient(
NetworkCredential
credential, string targetName, AsyncCallback asyncCallback, object asyncState)
122
public virtual IAsyncResult BeginAuthenticateAsClient(
NetworkCredential
credential, ChannelBinding binding, string targetName, AsyncCallback asyncCallback, object asyncState)
130
public virtual IAsyncResult BeginAuthenticateAsClient(
NetworkCredential
credential,
143
public virtual IAsyncResult BeginAuthenticateAsClient(
NetworkCredential
credential,
181
AuthenticateAsServer((
NetworkCredential
)CredentialCache.DefaultCredentials, null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification);
186
AuthenticateAsServer((
NetworkCredential
)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification);
189
public virtual void AuthenticateAsServer(
NetworkCredential
credential,
196
public virtual void AuthenticateAsServer(
NetworkCredential
credential,
215
return BeginAuthenticateAsServer((
NetworkCredential
)CredentialCache.DefaultCredentials, null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState);
221
return BeginAuthenticateAsServer((
NetworkCredential
)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState);
225
public virtual IAsyncResult BeginAuthenticateAsServer(
NetworkCredential
credential,
235
public virtual IAsyncResult BeginAuthenticateAsServer(
NetworkCredential
credential,
275
public virtual Task AuthenticateAsClientAsync(
NetworkCredential
credential, string targetName)
282
NetworkCredential
credential, string targetName,
290
public virtual Task AuthenticateAsClientAsync(
NetworkCredential
credential, ChannelBinding binding, string targetName)
297
NetworkCredential
credential, ChannelBinding binding,
317
public virtual Task AuthenticateAsServerAsync(
NetworkCredential
credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
324
NetworkCredential
credential, ExtendedProtectionPolicy policy,
System.IdentityModel (7)
System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (3)
16
NetworkCredential
networkCredential;
28
public KerberosSecurityTokenProvider(string servicePrincipalName, TokenImpersonationLevel tokenImpersonationLevel,
NetworkCredential
networkCredential)
53
public
NetworkCredential
NetworkCredential
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (4)
32
public KerberosRequestorSecurityToken(string servicePrincipalName, TokenImpersonationLevel tokenImpersonationLevel,
NetworkCredential
networkCredential, string id)
37
internal KerberosRequestorSecurityToken(string servicePrincipalName, TokenImpersonationLevel tokenImpersonationLevel,
NetworkCredential
networkCredential, string id, ChannelBinding channelBinding)
42
internal KerberosRequestorSecurityToken(string servicePrincipalName, TokenImpersonationLevel tokenImpersonationLevel,
NetworkCredential
networkCredential, string id, SafeFreeCredentials credentialsHandle, ChannelBinding channelBinding)
126
void Initialize(TokenImpersonationLevel tokenImpersonationLevel,
NetworkCredential
networkCredential, SafeFreeCredentials credentialsHandle, ChannelBinding channelBinding)
System.Net (1)
AssemblyInfo.cs (1)
27
[assembly: TypeForwardedToAttribute(typeof(System.Net.
NetworkCredential
))]
System.Runtime.Remoting (3)
channels\tcp\tcpclientchannel.cs (2)
274
NetworkCredential
credentials = null;
284
credentials = (
NetworkCredential
)CredentialCache.DefaultCredentials;
channels\tcp\tcpserverchannel.cs (1)
503
negoServer.AuthenticateAsServer((
NetworkCredential
)CredentialCache.DefaultCredentials, _protectionLevel, impLevel);
System.ServiceModel (65)
System\ServiceModel\Channels\HttpChannelFactory.cs (8)
610
string AppendWindowsAuthenticationInfo(string inputString,
NetworkCredential
credential,
633
string GetConnectionGroupName(HttpWebRequest httpWebRequest,
NetworkCredential
credential, AuthenticationLevel authenticationLevel,
731
HttpWebRequest GetWebRequest(EndpointAddress to, Uri via,
NetworkCredential
credential,
889
NetworkCredential
credential = HttpChannelUtilities.GetCredential(this.authenticationScheme,
2007
NetworkCredential
credential =
2016
NetworkCredential
credential =
2035
void SetupWebRequest(AuthenticationLevel authenticationLevel, TokenImpersonationLevel impersonationLevel,
NetworkCredential
credential)
2150
NetworkCredential
credential = HttpChannelUtilities.GetCredential(this.authenticationScheme,
System\ServiceModel\Channels\HttpChannelHelpers.cs (5)
3435
public static
NetworkCredential
GetCredential(AuthenticationSchemes authenticationScheme,
3442
NetworkCredential
result = null;
3453
static
NetworkCredential
GetCredentialCore(AuthenticationSchemes authenticationScheme,
3460
NetworkCredential
result = null;
3804
public static void ValidateDigestCredential(ref
NetworkCredential
credential, TokenImpersonationLevel impersonationLevel)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (17)
233
public static
NetworkCredential
EndGetSspiCredential(IAsyncResult result,
239
public static
NetworkCredential
EndGetSspiCredential(IAsyncResult result,
246
public static
NetworkCredential
GetSspiCredential(SecurityTokenProviderContainer tokenProvider, TimeSpan timeout,
251
NetworkCredential
result = GetSspiCredential(tokenProvider.TokenProvider as SspiSecurityTokenProvider, timeout,
259
public static
NetworkCredential
GetSspiCredential(SspiSecurityTokenProvider tokenProvider, TimeSpan timeout,
268
public static
NetworkCredential
GetSspiCredential(SecurityTokenManager credentialProvider,
273
NetworkCredential
result = null;
307
static
NetworkCredential
GetSspiCredential(SspiSecurityTokenProvider tokenProvider, TimeSpan timeout,
311
NetworkCredential
credential = null;
478
public static
NetworkCredential
EndGetUserNameCredential(IAsyncResult result)
483
public static
NetworkCredential
GetUserNameCredential(SecurityTokenProviderContainer tokenProvider, TimeSpan timeout)
485
NetworkCredential
result = null;
559
NetworkCredential
credential;
621
public static
NetworkCredential
End(IAsyncResult result)
631
NetworkCredential
credential;
715
public static
NetworkCredential
End(IAsyncResult result,
725
public static
NetworkCredential
End(IAsyncResult result,
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (3)
29
NetworkCredential
serverCredential;
112
NetworkCredential
ServerCredential
307
NetworkCredential
credential;
System\ServiceModel\ComIntegration\ChannelCredentials.cs (1)
62
NetworkCredential
newCredentials = null;
System\ServiceModel\Security\HttpDigestClientCredential.cs (2)
14
NetworkCredential
digestCredentials;
42
public
NetworkCredential
ClientCredential
System\ServiceModel\Security\SecurityUtils.cs (18)
273
static
NetworkCredential
dummyNetworkCredential;
402
internal static EndpointIdentity CreateWindowsIdentity(
NetworkCredential
serverCredential)
1121
internal static string AppendWindowsAuthenticationInfo(string inputString,
NetworkCredential
credential,
1445
internal static void FixNetworkCredential(ref
NetworkCredential
credential)
1514
internal static bool IsDefaultNetworkCredential(
NetworkCredential
credential)
1875
internal static
NetworkCredential
GetNetworkCredentialsCopy(
NetworkCredential
networkCredential)
1877
NetworkCredential
result;
1889
internal static
NetworkCredential
GetNetworkCredentialOrDefault(
NetworkCredential
credential)
1957
static internal bool IsNullOrEmpty(
NetworkCredential
credential)
1970
static internal bool IsDefault(
NetworkCredential
credential)
1980
static internal string UnsafeGetUsername(
NetworkCredential
credential)
1990
static internal string UnsafeGetPassword(
NetworkCredential
credential)
2000
static internal string UnsafeGetDomain(
NetworkCredential
credential)
2010
static
NetworkCredential
UnsafeGetDefaultNetworkCredentials()
2016
internal static SafeFreeCredentials GetCredentialsHandle(string package,
NetworkCredential
credential, bool isServer, params string[] additionalPackages)
2100
NetworkCredential
credential = null;
System\ServiceModel\Security\SpnegoTokenAuthenticator.cs (2)
27
NetworkCredential
serverCredential;
51
public
NetworkCredential
ServerCredential
System\ServiceModel\Security\SpnegoTokenProvider.cs (1)
156
NetworkCredential
credential = null;
System\ServiceModel\Security\SspiSecurityTokenProvider.cs (2)
23
public SspiSecurityTokenProvider(
NetworkCredential
credential, bool allowNtlm, TokenImpersonationLevel impersonationLevel)
29
public SspiSecurityTokenProvider(
NetworkCredential
credential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers)
System\ServiceModel\Security\Tokens\SspiSecurityToken.cs (4)
20
NetworkCredential
networkCredential;
26
public SspiSecurityToken(TokenImpersonationLevel impersonationLevel, bool allowNtlm,
NetworkCredential
networkCredential)
35
public SspiSecurityToken(
NetworkCredential
networkCredential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers)
88
public
NetworkCredential
NetworkCredential
System\ServiceModel\Security\WindowsClientCredential.cs (2)
16
NetworkCredential
windowsCredentials;
52
public
NetworkCredential
ClientCredential
System.Web (7)
Security\ADMembershipProvider.cs (7)
377
NetworkCredential
credential = new NetworkCredential(username, password);
2281
NetworkCredential
credentialForValidation = (usernameIsSAMAccountName) ? new NetworkCredential(username, password, directoryInfo.DomainName)
3441
private
NetworkCredential
credentials = null;
3473
NetworkCredential
credentials,
4098
internal static
NetworkCredential
GetCredentialsWithDomain(
NetworkCredential
credentials)
4100
NetworkCredential
credentialsWithDomain;