18 writes to ServiceSecurityContext
System.ServiceModel (18)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
384remoteSecurity.ServiceSecurityContext = new ServiceSecurityContext(spnPolicies);
System\ServiceModel\Channels\HttpChannelListener.cs (2)
646security.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies); 657security.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies);
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
87result.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies);
System\ServiceModel\Channels\HttpsChannelListener.cs (1)
157result.ServiceSecurityContext = new ServiceSecurityContext(policies);
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (2)
190security.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies); 221security.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies);
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (3)
666this.clientSecurity.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies); 689this.clientSecurity.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies); 972this.serverSecurity.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies);
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (2)
258this.clientSecurity.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies); 404result.ServiceSecurityContext = new ServiceSecurityContext(authorizationPolicies);
System\ServiceModel\Security\AsymmetricSecurityProtocol.cs (2)
229security.ServiceSecurityContext = new ServiceSecurityContext(security.GetInitiatorTokenAuthorizationPolicies()); 238security.ServiceSecurityContext = new ServiceSecurityContext(recipientAuthorizationContext, recipientTokenPolicies ?? EmptyReadOnlyCollection<IAuthorizationPolicy>.Instance);
System\ServiceModel\Security\MessageSecurityProtocol.cs (2)
186security.ServiceSecurityContext = new ServiceSecurityContext(security.GetInitiatorTokenAuthorizationPolicies()); 195security.ServiceSecurityContext = new ServiceSecurityContext(protectionAuthContext, protectionTokenPolicies ?? EmptyReadOnlyCollection<IAuthorizationPolicy>.Instance);
System\ServiceModel\Security\TransportSecurityProtocol.cs (1)
203security.ServiceSecurityContext = new ServiceSecurityContext(security.GetInitiatorTokenAuthorizationPolicies());
System\ServiceModel\ServiceAuthorizationManager.cs (1)
43operationContext.IncomingMessageProperties.Security.ServiceSecurityContext =
45 references to ServiceSecurityContext
System.ServiceModel (45)
System\ServiceModel\Channels\FramingChannels.cs (4)
166if (security != null && security.ServiceSecurityContext != null && 167security.ServiceSecurityContext.IdentityClaim != null && 168security.ServiceSecurityContext.PrimaryIdentity != null) 171security.ServiceSecurityContext.IdentityClaim);
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
658clientSecurity.ServiceSecurityContext.AuthorizationContext);
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
884clientSecurity.ServiceSecurityContext.AuthorizationContext);
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
974AuthorizationContext authzContext = this.serverSecurity.ServiceSecurityContext.AuthorizationContext;
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (2)
479remoteSecurity.ServiceSecurityContext.AuthorizationContext)) 481string primaryIdentity = SecurityUtils.GetIdentityNamesFromContext(remoteSecurity.ServiceSecurityContext.AuthorizationContext);
System\ServiceModel\ComIntegration\MessageUtil.cs (1)
30context = securityProp.ServiceSecurityContext;
System\ServiceModel\Diagnostics\MessageTraceRecord.cs (5)
48if (message.Properties.Security != null && message.Properties.Security.ServiceSecurityContext != null) 51xml.WriteElementString("IsAnonymous", message.Properties.Security.ServiceSecurityContext.IsAnonymous.ToString()); 52bool windowsIdentityUsed = message.Properties.Security.ServiceSecurityContext.WindowsIdentity != null && 53!string.IsNullOrEmpty(message.Properties.Security.ServiceSecurityContext.WindowsIdentity.Name); 58AuthorizationContext authContext = message.Properties.Security.ServiceSecurityContext.AuthorizationContext;
System\ServiceModel\Dispatcher\AuthenticationBehavior.cs (5)
36ReadOnlyCollection<IAuthorizationPolicy> authPolicy = security.ServiceSecurityContext.AuthorizationPolicies; 46authPolicy = this.serviceAuthenticationManager.Authenticate(security.ServiceSecurityContext.AuthorizationPolicies, rpc.Channel.ListenUri, ref rpc.Request); 78AuthorizationContext authContext = security.ServiceSecurityContext.AuthorizationContext; 105rpc.Request.Properties.Security.ServiceSecurityContext.AuthorizationPolicies = authPolicy; 110AuthorizationContext authContext = security.ServiceSecurityContext.AuthorizationContext;
System\ServiceModel\Dispatcher\AuthorizationBehavior.cs (2)
84AuthorizationContext authContext = security.ServiceSecurityContext.AuthorizationContext; 118AuthorizationContext authContext = security.ServiceSecurityContext.AuthorizationContext;
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
632securityContext = securityContextProperty.ServiceSecurityContext;
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
640this.IdentityVerifier.EnsureIncomingIdentity(address, property.ServiceSecurityContext.AuthorizationContext);
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
362securityContext = securityContextProperty.ServiceSecurityContext;
System\ServiceModel\OperationContext.cs (1)
291return properties.Security.ServiceSecurityContext;
System\ServiceModel\Security\AcceleratedTokenProvider.cs (2)
277if (serverContextProperty != null && serverContextProperty.ServiceSecurityContext != null) 279authorizationPolicies = serverContextProperty.ServiceSecurityContext.AuthorizationPolicies;
System\ServiceModel\Security\IdentityVerifier.cs (2)
52if (securityContextProperty == null || securityContextProperty.ServiceSecurityContext == null) 55return this.CheckAccess(identity, securityContextProperty.ServiceSecurityContext.AuthorizationContext);
System\ServiceModel\Security\SecurityProtocol.cs (3)
813SecurityUtils.GetIdentityNamesFromContext(verifiedMessage.Properties.Security.ServiceSecurityContext.AuthorizationContext)); 835if (security != null && security.ServiceSecurityContext != null) 836primaryIdentity = SecurityUtils.GetIdentityNamesFromContext(security.ServiceSecurityContext.AuthorizationContext);
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (4)
611if ((security.ServiceSecurityContext != null) && 612(security.ServiceSecurityContext.AuthorizationPolicies != null)) 614authorizationPolicies.AddRange(security.ServiceSecurityContext.AuthorizationPolicies); 669clientContext = securityProperty.ServiceSecurityContext;
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (2)
717if (serverContextProperty != null && serverContextProperty.ServiceSecurityContext != null) 719authorizationPolicies = serverContextProperty.ServiceSecurityContext.AuthorizationPolicies;
System\ServiceModel\ServiceAuthenticationManager.cs (3)
44(message.Properties.Security.ServiceSecurityContext != null) && 45(message.Properties.Security.ServiceSecurityContext.AuthorizationPolicies != null)) 47List<IAuthorizationPolicy> authPolicies = new List<IAuthorizationPolicy>(message.Properties.Security.ServiceSecurityContext.AuthorizationPolicies);
System\ServiceModel\ServiceAuthorizationManager.cs (2)
63if (security.ServiceSecurityContext == null) 68ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies = security.ServiceSecurityContext.AuthorizationPolicies;
System\ServiceModel\ServiceSecurityContext.cs (1)
84result = security.ServiceSecurityContext;