22 references to MessagePartProtectionMode
System.ServiceModel (22)
System\ServiceModel\Security\MessagePartProtectionMode.cs (6)
17
public static
MessagePartProtectionMode
GetProtectionMode(bool sign, bool encrypt, bool signThenEncrypt)
25
return
MessagePartProtectionMode
.SignThenEncrypt;
29
return
MessagePartProtectionMode
.EncryptThenSign;
34
return
MessagePartProtectionMode
.Sign;
39
return
MessagePartProtectionMode
.Encrypt;
43
return
MessagePartProtectionMode
.None;
System\ServiceModel\Security\SecurityAppliedMessage.cs (2)
28
readonly
MessagePartProtectionMode
bodyProtectionMode;
49
public
MessagePartProtectionMode
BodyProtectionMode
System\ServiceModel\Security\SendSecurityHeader.cs (1)
535
(this.SecurityAppliedMessage.BodyProtectionMode !=
MessagePartProtectionMode
.SignThenEncrypt) &&
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (13)
287
MessagePartProtectionMode
protectionMode = GetProtectionMode(header);
292
case
MessagePartProtectionMode
.None:
295
case
MessagePartProtectionMode
.Sign:
298
case
MessagePartProtectionMode
.SignThenEncrypt:
303
case
MessagePartProtectionMode
.Encrypt:
307
case
MessagePartProtectionMode
.EncryptThenSign:
363
case
MessagePartProtectionMode
.None:
365
case
MessagePartProtectionMode
.Sign:
377
case
MessagePartProtectionMode
.SignThenEncrypt:
392
case
MessagePartProtectionMode
.Encrypt:
397
case
MessagePartProtectionMode
.EncryptThenSign:
622
MessagePartProtectionMode
GetProtectionMode(MessageHeader header)
626
return
MessagePartProtectionMode
.None;