34 writes to InclusionMode
System.ServiceModel (34)
System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (4)
317
reverse.AsymmetricTokenParameters.
InclusionMode
= SecurityTokenInclusionMode.Never;
320
reverse.CryptoTokenParameters.
InclusionMode
= SecurityTokenInclusionMode.AlwaysToRecipient;
327
reverse.AsymmetricTokenParameters.
InclusionMode
= SecurityTokenInclusionMode.Never;
330
reverse.CryptoTokenParameters.
InclusionMode
= SecurityTokenInclusionMode.AlwaysToRecipient;
System\ServiceModel\Security\SessionSymmetricMessageSecurityProtocolFactory.cs (1)
103
this.
InclusionMode
= actAsInitiator ? SecurityTokenInclusionMode.AlwaysToRecipient : SecurityTokenInclusionMode.AlwaysToInitiator;
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
916
rsaParameters.
InclusionMode
= SecurityTokenInclusionMode.Never;
System\ServiceModel\Security\Tokens\KerberosSecurityTokenParameters.cs (1)
24
this.
InclusionMode
= SecurityTokenInclusionMode.Once;
System\ServiceModel\Security\Tokens\RsaSecurityTokenParameters.cs (2)
23
this.
InclusionMode
= SecurityTokenInclusionMode.Never;
29
this.
InclusionMode
= SecurityTokenInclusionMode.Never;
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenParameters.cs (1)
24
this.
InclusionMode
= SecurityTokenInclusionMode.AlwaysToRecipient;
System\ServiceModel\Security\Tokens\WrappedKeySecurityTokenParameters.cs (1)
24
this.
InclusionMode
= SecurityTokenInclusionMode.Once;
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
49
this.
InclusionMode
= inclusionMode;
System\ServiceModel\Security\WSSecurityPolicy.cs (15)
2059
parameters.
InclusionMode
= inclusionMode;
2072
parameters.
InclusionMode
= inclusionMode;
2155
parameters.
InclusionMode
= inclusionMode;
2168
parameters.
InclusionMode
= inclusionMode;
2205
parameters.
InclusionMode
= inclusionMode;
2213
parameters.
InclusionMode
= inclusionMode;
2239
parameters.
InclusionMode
= inclusionMode;
2444
issued.
InclusionMode
= inclusionMode;
2464
issued.
InclusionMode
= inclusionMode;
2529
sspi.
InclusionMode
= inclusionMode;
2542
parameters.
InclusionMode
= inclusionMode;
2613
ssl.
InclusionMode
= inclusionMode;
2626
parameters.
InclusionMode
= inclusionMode;
2808
sc.
InclusionMode
= inclusionMode;
2820
parameters.
InclusionMode
= inclusionMode;
System\ServiceModel\Security\WSSecurityPolicy12.cs (7)
248
sspi.
InclusionMode
= inclusionMode;
261
parameters.
InclusionMode
= inclusionMode;
298
ssl.
InclusionMode
= inclusionMode;
311
parameters.
InclusionMode
= inclusionMode;
345
sc.
InclusionMode
= inclusionMode;
357
parameters.
InclusionMode
= inclusionMode;
646
parameters.
InclusionMode
= inclusionMode;
28 references to InclusionMode
System.ServiceModel (28)
System\ServiceModel\Channels\SecurityBindingElement.cs (10)
1008
if (recipient == null || (recipient.X509ReferenceStyle != X509KeyIdentifierClauseType.Any && recipient.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint) || recipient.
InclusionMode
!= SecurityTokenInclusionMode.AlwaysToInitiator)
1012
if (initiator == null || (initiator.X509ReferenceStyle != X509KeyIdentifierClauseType.Any && initiator.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint) || initiator.
InclusionMode
!= SecurityTokenInclusionMode.AlwaysToRecipient)
1036
if (recipient == null || recipient.X509ReferenceStyle != X509KeyIdentifierClauseType.Any || recipient.
InclusionMode
!= SecurityTokenInclusionMode.Never)
1040
if (initiator == null || initiator.X509ReferenceStyle != X509KeyIdentifierClauseType.Any || initiator.
InclusionMode
!= SecurityTokenInclusionMode.AlwaysToRecipient)
1053
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.
InclusionMode
!= SecurityTokenInclusionMode.Never)
1061
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.
InclusionMode
!= SecurityTokenInclusionMode.AlwaysToRecipient)
1100
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.
InclusionMode
!= SecurityTokenInclusionMode.Never)
1177
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.
InclusionMode
!= SecurityTokenInclusionMode.Never)
1332
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.
InclusionMode
!= SecurityTokenInclusionMode.Never)
1564
if (x509Parameters.
InclusionMode
!= SecurityTokenInclusionMode.AlwaysToRecipient)
System\ServiceModel\Configuration\SecurityElementBase.cs (2)
389
if (p1.
InclusionMode
!= p2.
InclusionMode
)
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (2)
774
if (stp.
InclusionMode
== allowedInclusionModes[i])
782
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SecurityTokenParametersHasIncompatibleInclusionMode, binding.Name, binding.Namespace, stp.GetType(), stp.
InclusionMode
, allowedInclusionModes[0])));
System\ServiceModel\Security\SendSecurityHeader.cs (2)
576
switch (parameters.
InclusionMode
)
586
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.UnsupportedTokenInclusionMode, parameters.
InclusionMode
)));
System\ServiceModel\Security\WSSecurityPolicy.cs (8)
2030
SetIncludeTokenValue(result, parameters.
InclusionMode
);
2123
SetIncludeTokenValue(result, parameters.
InclusionMode
);
2178
SetIncludeTokenValue(result, parameters.
InclusionMode
);
2223
SetIncludeTokenValue(result, parameters.
InclusionMode
);
2375
SetIncludeTokenValue(result, parameters.
InclusionMode
);
2497
SetIncludeTokenValue(result, parameters.
InclusionMode
);
2579
SetIncludeTokenValue(result, parameters.
InclusionMode
);
2774
SetIncludeTokenValue(result, parameters.
InclusionMode
);
System\ServiceModel\Security\WSSecurityPolicy12.cs (4)
161
SetIncludeTokenValue(result, parameters.
InclusionMode
);
177
SetIncludeTokenValue(result, parameters.
InclusionMode
);
194
SetIncludeTokenValue(result, parameters.
InclusionMode
);
630
SetIncludeTokenValue(result, parameters.
InclusionMode
);