16 writes to Security
System.ServiceModel (16)
System\ServiceModel\Channels\FramingChannels.cs (1)
381
message.Properties.
Security
= (SecurityMessageProperty)this.RemoteSecurity.CreateCopy();
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3297
replyMessage.Properties.
Security
= securityProperty;
System\ServiceModel\Channels\HttpRequestContext.cs (1)
193
message.Properties.
Security
= (this.securityProperty != null) ? (SecurityMessageProperty)this.securityProperty.CreateCopy() : null;
System\ServiceModel\Channels\MessageProperties.cs (3)
372
this.
Security
= (properties.Security != null) ? (SecurityMessageProperty)properties.Security.CreateCopy() : null;
416
this.
Security
= (properties.Security != null) ? (SecurityMessageProperty)properties.Security.CreateCopy() : null;
681
Security
= (SecurityMessageProperty)CreateCopyOfPropertyValue(value);
System\ServiceModel\Channels\MsmqDecodeHelper.cs (4)
146
message.Properties.
Security
= securityProperty;
262
message.Properties.
Security
= securityProperty;
297
message.Properties.
Security
= (SecurityMessageProperty)securityProperty.CreateCopy();
367
message.Properties.
Security
= securityProperty;
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
1490
message.Properties.
Security
= (SecurityMessageProperty)security.CreateCopy();
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
1169
message.Properties.
Security
= (this.security != null) ? (SecurityMessageProperty)this.security.CreateCopy() : null;
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
945
messageProperties.
Security
= (SecurityMessageProperty)this.handshakeSecurityMessageProperty.CreateCopy();
System\ServiceModel\Security\SecurityMessageProperty.cs (1)
220
message.Properties.
Security
= result;
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
777
result.Properties.
Security
= supportingTokenProperty;
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
922
messageProperties.
Security
= security;
67 references to Security
System.ServiceModel (67)
System\ServiceModel\Channels\MessageProperties.cs (6)
372
this.Security = (properties.
Security
!= null) ? (SecurityMessageProperty)properties.
Security
.CreateCopy() : null;
416
this.Security = (properties.
Security
!= null) ? (SecurityMessageProperty)properties.
Security
.CreateCopy() : null;
679
if (
Security
!= null)
680
Security
.Dispose();
System\ServiceModel\ComIntegration\MessageUtil.cs (1)
26
securityProp = message.Properties.
Security
;
System\ServiceModel\Diagnostics\MessageTraceRecord.cs (6)
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 (1)
105
rpc.Request.Properties.
Security
.ServiceSecurityContext.AuthorizationPolicies = authPolicy;
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
629
SecurityMessageProperty securityContextProperty = rpc.Request.Properties.
Security
;
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
647
SecurityMessageProperty property = reply.Properties.
Security
;
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
357
SecurityMessageProperty securityContextProperty = rpc.Request.Properties.
Security
;
System\ServiceModel\OperationContext.cs (6)
179
return properties != null && properties.
Security
!= null &&
180
properties.
Security
.HasIncomingSupportingTokens;
289
if (properties != null && properties.
Security
!= null)
291
return properties.
Security
.ServiceSecurityContext;
328
if (properties != null && properties.
Security
!= null)
331
properties.
Security
.IncomingSupportingTokens);
System\ServiceModel\Security\AcceleratedTokenAuthenticator.cs (2)
225
SecurityMessageProperty securityProperty = request.Properties.
Security
;
290
SecuritySessionSecurityTokenAuthenticator.RemoveCachedTokensIfRequired(request.Properties.
Security
);
System\ServiceModel\Security\AcceleratedTokenProvider.cs (1)
275
SecurityMessageProperty serverContextProperty = incomingMessage.Properties.
Security
;
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (6)
127
(OperationContext.Current.IncomingMessageProperties.
Security
!= null) &&
128
(OperationContext.Current.IncomingMessageProperties.
Security
.TransportToken != null))
131
OperationContext.Current.IncomingMessageProperties.
Security
.TransportToken.SecurityToken;
134
OperationContext.Current.IncomingMessageProperties.
Security
.TransportToken.SecurityTokenPolicies;
424
(OperationContext.Current.IncomingMessageProperties.
Security
!= null))
426
SecurityMessageProperty securityMessageProperty = OperationContext.Current.IncomingMessageProperties.
Security
;
System\ServiceModel\Security\IdentityVerifier.cs (1)
50
securityContextProperty = message.Properties.
Security
;
System\ServiceModel\Security\MessageSecurityProtocol.cs (4)
85
if (!this.RequiresOutgoingSecurityProcessing && message.Properties.
Security
== null)
107
if (!this.RequiresOutgoingSecurityProcessing && message.Properties.
Security
== null)
530
if (!this.RequiresOutgoingSecurityProcessing && message.Properties.
Security
== null)
554
if (!this.RequiresOutgoingSecurityProcessing && message.Properties.
Security
== null)
System\ServiceModel\Security\SecurityMessageProperty.cs (1)
215
result = message.Properties.
Security
;
System\ServiceModel\Security\SecurityProtocol.cs (4)
496
SecurityMessageProperty messageProperty = message.Properties.
Security
;
554
SecurityMessageProperty supportingTokensProperty = message.Properties.
Security
;
813
SecurityUtils.GetIdentityNamesFromContext(verifiedMessage.Properties.
Security
.ServiceSecurityContext.AuthorizationContext));
833
SecurityMessageProperty security = message.Properties.
Security
;
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (5)
666
SecurityMessageProperty securityProperty = request.Properties.
Security
;
768
SecurityMessageProperty supportingTokenProperty = request.Properties.
Security
;
817
RemoveCachedTokensIfRequired(request.Properties.
Security
);
960
RemoveCachedTokensIfRequired(request.Properties.
Security
);
966
SecurityMessageProperty securityProperty = request.Properties.
Security
;
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
715
SecurityMessageProperty serverContextProperty = response.Properties.
Security
;
System\ServiceModel\Security\SecuritySessionServerSettings.cs (1)
1390
SecurityMessageProperty securityProperty = message.Properties.
Security
;
System\ServiceModel\Security\WSTrustServiceContract.cs (2)
98
&& requestContext.RequestMessage.Properties.
Security
!= null)
101
SecurityMessageProperty msgProperty = requestContext.RequestMessage.Properties.
Security
;
System\ServiceModel\ServiceAuthenticationManager.cs (13)
42
(message.Properties.
Security
!= null) &&
43
(message.Properties.
Security
.TransportToken != null) &&
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);
48
foreach (IAuthorizationPolicy policy in message.Properties.
Security
.TransportToken.SecurityTokenPolicies)
115
if ((message != null) && (message.Properties != null) && (message.Properties.
Security
!= null) && (message.Properties.
Security
.TransportToken == null))
117
if ((message.Properties.
Security
.ProtectionToken != null) &&
118
(message.Properties.
Security
.ProtectionToken.SecurityToken != null) &&
119
(message.Properties.
Security
.ProtectionToken.SecurityToken.GetType() == typeof(SecurityContextSecurityToken)))
124
if (message.Properties.
Security
.HasIncomingSupportingTokens)
126
foreach (SupportingTokenSpecification tokenSpecification in message.Properties.
Security
.IncomingSupportingTokens)
System\ServiceModel\ServiceAuthorizationManager.cs (2)
43
operationContext.IncomingMessageProperties.
Security
.ServiceSecurityContext =
56
SecurityMessageProperty security = operationContext.IncomingMessageProperties.
Security
;
System\ServiceModel\ServiceSecurityContext.cs (1)
81
SecurityMessageProperty security = properties.
Security
;