88 references to SecurityTokenInclusionMode
System.ServiceModel (88)
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\Channels\SecurityBindingElement.cs (24)
936
SecurityTokenInclusionMode
.Never, false),
939
SecurityTokenInclusionMode
.AlwaysToRecipient, false));
971
SecurityTokenInclusionMode
.Never,
975
SecurityTokenInclusionMode
.AlwaysToRecipient, false),
983
SecurityTokenInclusionMode
.Never));
987
SecurityTokenInclusionMode
.AlwaysToRecipient,
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)
1080
SecurityTokenInclusionMode
.Never));
1100
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.InclusionMode !=
SecurityTokenInclusionMode
.Never)
1127
SecurityTokenInclusionMode
.AlwaysToInitiator,
1131
SecurityTokenInclusionMode
.AlwaysToRecipient,
1139
SecurityTokenInclusionMode
.AlwaysToInitiator,
1143
SecurityTokenInclusionMode
.AlwaysToRecipient,
1159
SecurityTokenInclusionMode
.Never));
1177
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.InclusionMode !=
SecurityTokenInclusionMode
.Never)
1303
SecurityTokenInclusionMode
.Never));
1332
if (x509Parameters == null || x509Parameters.X509ReferenceStyle != X509KeyIdentifierClauseType.Thumbprint || x509Parameters.InclusionMode !=
SecurityTokenInclusionMode
.Never)
1533
SecurityTokenInclusionMode
.AlwaysToRecipient,
1564
if (x509Parameters.InclusionMode !=
SecurityTokenInclusionMode
.AlwaysToRecipient)
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (12)
769
static void EnforceInclusionMode(Binding binding, SecurityTokenParameters stp, params
SecurityTokenInclusionMode
[] allowedInclusionModes)
805
EnforceInclusionMode(binding, stp,
SecurityTokenInclusionMode
.Never);
818
EnforceInclusionMode(binding, stp,
SecurityTokenInclusionMode
.Never);
822
EnforceInclusionMode(binding, stp,
SecurityTokenInclusionMode
.AlwaysToRecipient,
SecurityTokenInclusionMode
.Once);
831
EnforceInclusionMode(binding, stp,
SecurityTokenInclusionMode
.AlwaysToRecipient,
SecurityTokenInclusionMode
.AlwaysToInitiator,
SecurityTokenInclusionMode
.Once);
835
EnforceInclusionMode(binding, stp,
SecurityTokenInclusionMode
.AlwaysToRecipient,
SecurityTokenInclusionMode
.Once);
841
EnforceInclusionMode(binding, stp,
SecurityTokenInclusionMode
.AlwaysToRecipient,
SecurityTokenInclusionMode
.Once);
System\ServiceModel\Security\SendSecurityHeader.cs (4)
578
case
SecurityTokenInclusionMode
.AlwaysToInitiator:
580
case
SecurityTokenInclusionMode
.Once:
581
case
SecurityTokenInclusionMode
.AlwaysToRecipient:
583
case
SecurityTokenInclusionMode
.Never:
System\ServiceModel\Security\SessionSymmetricMessageSecurityProtocolFactory.cs (2)
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\SecurityTokenInclusionMode.cs (7)
20
public static bool IsDefined(
SecurityTokenInclusionMode
value)
22
return (value ==
SecurityTokenInclusionMode
.AlwaysToInitiator
23
|| value ==
SecurityTokenInclusionMode
.AlwaysToRecipient
24
|| value ==
SecurityTokenInclusionMode
.Never
25
|| value ==
SecurityTokenInclusionMode
.Once);
28
public static void Validate(
SecurityTokenInclusionMode
value)
33
typeof(
SecurityTokenInclusionMode
)));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (4)
18
internal const
SecurityTokenInclusionMode
defaultInclusionMode =
SecurityTokenInclusionMode
.AlwaysToRecipient;
22
SecurityTokenInclusionMode
inclusionMode = defaultInclusionMode;
43
public
SecurityTokenInclusionMode
InclusionMode
System\ServiceModel\Security\Tokens\WrappedKeySecurityTokenParameters.cs (1)
24
this.InclusionMode =
SecurityTokenInclusionMode
.Once;
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (2)
39
public X509SecurityTokenParameters(X509KeyIdentifierClauseType x509ReferenceStyle,
SecurityTokenInclusionMode
inclusionMode)
44
internal X509SecurityTokenParameters(X509KeyIdentifierClauseType x509ReferenceStyle,
SecurityTokenInclusionMode
inclusionMode,
System\ServiceModel\Security\WSSecurityPolicy.cs (19)
1957
public virtual void SetIncludeTokenValue(XmlElement tokenAssertion,
SecurityTokenInclusionMode
inclusionMode)
1963
case
SecurityTokenInclusionMode
.AlwaysToInitiator:
1966
case
SecurityTokenInclusionMode
.AlwaysToRecipient:
1969
case
SecurityTokenInclusionMode
.Never:
1972
case
SecurityTokenInclusionMode
.Once:
1978
public virtual bool TryGetIncludeTokenValue(XmlElement assertion, out
SecurityTokenInclusionMode
mode)
1984
mode =
SecurityTokenInclusionMode
.AlwaysToInitiator;
1989
mode =
SecurityTokenInclusionMode
.AlwaysToRecipient;
1994
mode =
SecurityTokenInclusionMode
.Never;
1999
mode =
SecurityTokenInclusionMode
.Once;
2004
mode =
SecurityTokenInclusionMode
.Never;
2044
SecurityTokenInclusionMode
inclusionMode;
2138
SecurityTokenInclusionMode
inclusionMode;
2191
SecurityTokenInclusionMode
inclusionMode;
2231
SecurityTokenInclusionMode
inclusionMode;
2423
SecurityTokenInclusionMode
inclusionMode;
2511
SecurityTokenInclusionMode
inclusionMode;
2594
SecurityTokenInclusionMode
inclusionMode;
2789
SecurityTokenInclusionMode
inclusionMode;
System\ServiceModel\Security\WSSecurityPolicy12.cs (4)
223
SecurityTokenInclusionMode
inclusionMode;
272
SecurityTokenInclusionMode
inclusionMode;
322
SecurityTokenInclusionMode
inclusionMode;
638
SecurityTokenInclusionMode
inclusionMode;