System\ServiceModel\Channels\HttpsChannelListener.cs (9)
195identity = SecurityUtils.CloneWindowsIdentityIfNecessary(identity, SecurityUtils.AuthTypeCertMap);
196authType = SecurityUtils.AuthTypeCertMap;
219WriteAuditEvent(AuditLevel.Failure, (certificate != null) ? SecurityUtils.GetCertificateId(certificate) : String.Empty, exception);
226WriteAuditEvent(AuditLevel.Success, (certificate != null) ? SecurityUtils.GetCertificateId(certificate) : String.Empty, null);
280WriteAuditEvent(AuditLevel.Failure, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, exception);
287WriteAuditEvent(AuditLevel.Success, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, null);
339WriteAuditEvent(AuditLevel.Failure, (clientCertificate != null) ? SecurityUtils.GetCertificateId(clientCertificate) : String.Empty, exception);
387WriteAuditEvent(AuditLevel.Failure, (certificateEx != null) ? SecurityUtils.GetCertificateId(certificateEx) : String.Empty, exception);
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (32)
114this.identity = SecurityUtils.GetServiceCertificateIdentity(this.serverCertificate);
258SecurityUtils.AbortTokenAuthenticatorIfRequired(this.clientCertificateAuthenticator);
267SecurityUtils.CloseTokenAuthenticatorIfRequired(this.clientCertificateAuthenticator, timeout);
274return SecurityUtils.BeginCloseTokenAuthenticatorIfRequired(this.clientCertificateAuthenticator, timeout, callback, state);
279SecurityUtils.EndCloseTokenAuthenticatorIfRequired(result);
288SecurityUtils.AbortTokenProviderIfRequired(this.serverTokenProvider);
301SecurityUtils.ResetCertificate(this.serverCertificate);
310SecurityUtils.OpenTokenAuthenticatorIfRequired(this.ClientCertificateAuthenticator, timeoutHelper.RemainingTime());
314SecurityUtils.OpenTokenProviderIfRequired(this.serverTokenProvider, timeoutHelper.RemainingTime());
317SecurityUtils.CloseTokenProviderIfRequired(this.serverTokenProvider, timeoutHelper.RemainingTime());
352IAsyncResult result = SecurityUtils.BeginOpenTokenAuthenticatorIfRequired(parent.ClientCertificateAuthenticator,
373SecurityUtils.EndOpenTokenAuthenticatorIfRequired(result);
381IAsyncResult openTokenProviderResult = SecurityUtils.BeginOpenTokenProviderIfRequired(
394SecurityUtils.EndOpenTokenProviderIfRequired(result);
414SecurityUtils.BeginCloseTokenProviderIfRequired(parent.serverTokenProvider, timeoutHelper.RemainingTime(),
427SecurityUtils.EndCloseTokenProviderIfRequired(result);
615if (SecurityUtils.ShouldValidateSslCipherStrength())
617SecurityUtils.ValidateSslCipherStrength(sslStream.CipherStrength);
686ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies = SecurityUtils.NonValidatingX509Authenticator.ValidateToken(token);
724if (SecurityUtils.ShouldValidateSslCipherStrength())
726SecurityUtils.ValidateSslCipherStrength(sslStream.CipherStrength);
852SecurityUtils.OpenTokenProviderIfRequired(this.clientCertificateProvider, timeoutHelper.RemainingTime());
883SecurityUtils.CloseTokenProviderIfRequired(this.clientCertificateProvider, timeoutHelper.RemainingTime());
942if (SecurityUtils.ShouldValidateSslCipherStrength())
944SecurityUtils.ValidateSslCipherStrength(sslStream.CipherStrength);
1030if (SecurityUtils.ShouldValidateSslCipherStrength())
1032SecurityUtils.ValidateSslCipherStrength(sslStream.CipherStrength);
1104IAsyncResult openTokenProviderResult = SecurityUtils.BeginOpenTokenProviderIfRequired(
1117SecurityUtils.EndOpenTokenProviderIfRequired(result);
1275IAsyncResult closeTokenProviderResult = SecurityUtils.BeginCloseTokenProviderIfRequired(
1283SecurityUtils.EndCloseTokenProviderIfRequired(closeTokenProviderResult);
1328SecurityUtils.EndCloseTokenProviderIfRequired(result);
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (3)
98string derivationAlgorithm = SecurityUtils.GetKeyDerivationAlgorithm(this.sessionStandardsManager.MessageSecurityVersion.SecureConversationVersion);
102DerivedKeySecurityToken.DefaultNonceLength, token, this.Factory.SecurityTokenParameters.CreateKeyIdentifierClause(token, SecurityTokenReferenceStyle.External), derivationAlgorithm, SecurityUtils.GenerateId());
106DerivedKeySecurityToken.DefaultNonceLength, token, this.Factory.SecurityTokenParameters.CreateKeyIdentifierClause(token, SecurityTokenReferenceStyle.External), derivationAlgorithm, SecurityUtils.GenerateId());
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (13)
58return SecurityUtils.GetSpnFromIdentity(identity, targetAddress);
76SecurityUtils.OpenTokenProviderIfRequired(sspiTokenProvider, TimeSpan.Zero);
78SecurityUtils.AbortTokenProviderIfRequired(sspiTokenProvider);
113spnegoTokenProvider.StandardsManager = SecurityUtils.CreateSecurityStandardsManager(initiatorRequirement, this);
210tlsnegoTokenProvider.StandardsManager = SecurityUtils.CreateSecurityStandardsManager(initiatorRequirement, this);
235sessionTokenProvider.BootstrapSecurityBindingElement = SecurityUtils.GetIssuerSecurityBindingElement(initiatorRequirement);
240sessionTokenProvider.StandardsManager = SecurityUtils.CreateSecurityStandardsManager(initiatorRequirement, this);
267acceleratedTokenProvider.BootstrapSecurityBindingElement = SecurityUtils.GetIssuerSecurityBindingElement(initiatorRequirement);
274acceleratedTokenProvider.StandardsManager = SecurityUtils.CreateSecurityStandardsManager(initiatorRequirement, this);
578new KerberosSecurityTokenProvider(spn, parent.Windows.AllowedImpersonationLevel, SecurityUtils.GetNetworkCredentialOrDefault(parent.Windows.ClientCredential)),
593result = new SspiSecurityTokenProvider(SecurityUtils.GetNetworkCredentialOrDefault(parent.HttpDigest.ClientCredential), true, parent.HttpDigest.AllowedImpersonationLevel);
600result = new SspiSecurityTokenProvider(SecurityUtils.GetNetworkCredentialOrDefault(parent.Windows.ClientCredential),
824this.credentialsHandle = SecurityUtils.GetCredentialsHandle("Kerberos", this.innerProvider.NetworkCredential, false);
System\ServiceModel\Security\InitiatorSessionSymmetricMessageSecurityProtocol.cs (3)
102string derivationAlgorithm = SecurityUtils.GetKeyDerivationAlgorithm(this.sessionStandardsManager.MessageSecurityVersion.SecureConversationVersion);
106DerivedKeySecurityToken.DefaultNonceLength, token, this.Factory.SecurityTokenParameters.CreateKeyIdentifierClause(token, SecurityTokenReferenceStyle.Internal), derivationAlgorithm, SecurityUtils.GenerateId());
109null, DerivedKeySecurityToken.DefaultNonceLength, token, this.Factory.SecurityTokenParameters.CreateKeyIdentifierClause(token, SecurityTokenReferenceStyle.Internal), derivationAlgorithm, SecurityUtils.GenerateId());
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (5)
131if (SecurityUtils.TryCreateKeyFromIntrinsicKeyClause(keyIdentifierClause, this, out securityKey))
191resolvedToken = SecurityUtils.CreateTokenFromEncryptedKeyClause(keyClause, unwrappingToken);
204if (SecurityUtils.GetSecurityKey<SymmetricSecurityKey>(resolvedToken) == null)
235string psha1Algorithm = SecurityUtils.GetKeyDerivationAlgorithm(this.securityHeader.StandardsManager.MessageSecurityVersion.SecureConversationVersion);
237resolvedToken = new DerivedKeySecurityToken(-1, 0, derivationLength, null, derivationNonce, resolvedToken, keyIdentifierClause, psha1Algorithm, SecurityUtils.GenerateId());
System\ServiceModel\Security\SecuritySessionClientSettings.cs (14)
635SecurityUtils.OpenTokenProviderIfRequired(this.sessionTokenProvider, timeoutHelper.RemainingTime());
1138if (SecurityUtils.IsSecurityFault(fault, this.settings.sessionProtocolFactory.StandardsManager))
1140faultException = SecurityUtils.CreateSecurityFaultException(fault);
1347SecurityUtils.AbortTokenProviderIfRequired(this.sessionTokenProvider);
1363SecurityUtils.CloseTokenProviderIfRequired(this.sessionTokenProvider, timeoutHelper.RemainingTime());
1768IAsyncResult result = SecurityUtils.BeginCloseTokenProviderIfRequired(this.channel.sessionTokenProvider, timeoutHelper.RemainingTime(), closeTokenProviderCallback, this);
1773SecurityUtils.EndCloseTokenProviderIfRequired(result);
1800SecurityUtils.EndCloseTokenProviderIfRequired(result);
1951IAsyncResult result = SecurityUtils.BeginOpenTokenProviderIfRequired(this.sessionChannel.sessionTokenProvider, timeoutHelper.RemainingTime(), openTokenProviderCallback, this);
1956SecurityUtils.EndOpenTokenProviderIfRequired(result);
1975SecurityUtils.EndOpenTokenProviderIfRequired(result);
2734Claim identityClaim = SecurityUtils.GetPrimaryIdentityClaim(((GenericXmlSecurityToken)sessionToken).AuthorizationPolicies);
2911if (SecurityUtils.IsSecurityFault(fault, this.Settings.standardsManager))
2913faultException = SecurityUtils.CreateSecurityFaultException(fault);
System\ServiceModel\Security\SecurityUtils.cs (22)
316return ((Environment.OSVersion.Version.Major >= SecurityUtils.XPMajorNumber && Environment.OSVersion.Version.Minor > SecurityUtils.XPMinorNumber) ||
317Environment.OSVersion.Version.Major > SecurityUtils.XPMajorNumber);
363anonymousIdentity = SecurityUtils.CreateIdentity(String.Empty);
419return SecurityUtils.CreateWindowsIdentity();
462return SecurityUtils.CloneWindowsIdentityIfNecessary(wid, null);
591SymmetricSecurityKey c1 = SecurityUtils.GetSecurityKey<SymmetricSecurityKey>(t1);
592SymmetricSecurityKey c2 = SecurityUtils.GetSecurityKey<SymmetricSecurityKey>(t2);
601SymmetricSecurityKey securityKey = SecurityUtils.GetSecurityKey<SymmetricSecurityKey>(token);
614SymmetricSecurityKey securityKey = SecurityUtils.GetSecurityKey<SymmetricSecurityKey>(token);
719SymmetricSecurityKey symmetricSecurityKey = SecurityUtils.GetSecurityKey<SymmetricSecurityKey>(tokenToDerive);
987policies.Add(new UnconditionalPolicy(SecurityUtils.CreateIdentity(principalName), new DefaultClaimSet(ClaimSet.Anonymous, claims)));
1033if (authContext.Properties.TryGetValue(SecurityUtils.Identities, out obj))
2027SecurityUtils.FixNetworkCredential(ref credential);
2103credential = SecurityUtils.GetNetworkCredentialOrDefault(clientCredentials.Windows.ClientCredential);
2108return SecurityUtils.GetCredentialsHandle("Kerberos", credential, false);
2117if (SecurityUtils.IsOsGreaterThanXP())
2119return SecurityUtils.GetCredentialsHandle("Negotiate", credential, false, "!NTLM");
2123return SecurityUtils.GetCredentialsHandle("Kerberos", credential, false);
2129return SecurityUtils.GetCredentialsHandle("Negotiate", credential, false);
2185SecurityUtils.ResetAllCertificates(certs);
2290return new WrappedKeySecurityToken(SecurityUtils.GenerateId(), unwrappedKey, wrappingAlgorithm,