4 writes to RequireMessageProtection
System.ServiceModel (4)
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
87
securityHeader.
RequireMessageProtection
= false;
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (1)
131
securityHeader.
RequireMessageProtection
= false;
System\ServiceModel\Security\SecurityProtocol.cs (1)
541
sendSecurityHeader.
RequireMessageProtection
= requireMessageProtection;
System\ServiceModel\Security\TransportSecurityProtocol.cs (1)
237
securityHeader.
RequireMessageProtection
= false;
25 references to RequireMessageProtection
System.ServiceModel (25)
System\ServiceModel\Security\LaxModeSecurityHeaderElementInferenceEngine.cs (1)
40
MarkElements(securityHeader.ElementManager, securityHeader.
RequireMessageProtection
);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (10)
675
if (!tracker.IsSigned && this.
RequireMessageProtection
)
682
if (!tracker.IsSigned && this.
RequireMessageProtection
)
686
if (!tracker.IsEncrypted && this.
RequireMessageProtection
)
693
if (!tracker.IsSigned && this.
RequireMessageProtection
)
751
if (this.
RequireMessageProtection
)
870
if (this.
RequireMessageProtection
)
1119
bool primarySignatureFound = !this.
RequireMessageProtection
;
1540
if (!this.
RequireMessageProtection
)
1596
bool expectTimestampToBeSigned = this.
RequireMessageProtection
|| this.hasEndorsingOrSignedEndorsingSupportingTokens;
1716
if (this.
RequireMessageProtection
&& encryptionToken != null)
System\ServiceModel\Security\ReceiveSecurityHeaderElementManager.cs (2)
33
if (securityHeader.
RequireMessageProtection
)
109
Fx.Assert(this.securityHeader.
RequireMessageProtection
, "security header protection checks should only be done for message security");
System\ServiceModel\Security\SecurityVerifiedMessage.cs (1)
37
if (securityHeader.
RequireMessageProtection
)
System\ServiceModel\Security\SendSecurityHeader.cs (6)
323
this.shouldSignToHeader |= (!this.
RequireMessageProtection
) && (SecurityUtils.GetSecurityKey<AsymmetricSecurityKey>(token) != null);
337
this.shouldSignToHeader |= (!this.
RequireMessageProtection
) && (SecurityUtils.GetSecurityKey<AsymmetricSecurityKey>(token) != null);
362
string id = this.
RequireMessageProtection
? SecurityUtils.GenerateId() : GenerateId();
593
&& this.
RequireMessageProtection
&& !basicTokenEncrypted)
876
if (!this.
RequireMessageProtection
)
900
if (!this.
RequireMessageProtection
)
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (1)
605
if ((!this.
RequireMessageProtection
) && (securityKey is AsymmetricSecurityKey) && (this.Version.Addressing != AddressingVersion.None))
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (4)
267
if (!this.
RequireMessageProtection
&& this.ShouldSignToHeader)
322
if (this.
RequireMessageProtection
|| this.ShouldSignToHeader)
523
if (this.
RequireMessageProtection
)
624
if (!this.
RequireMessageProtection
)