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