예제 #1
0
 internal MessagePartSpecification GetOutgoingSignatureParts(string action)
 {
     if (!this.ApplyIntegrity)
     {
         return(MessagePartSpecification.NoParts);
     }
     if (this.IsDuplexReply)
     {
         return(MessageSecurityProtocolFactory.ExtractMessageParts(action, this.ProtectionRequirements.OutgoingSignatureParts, true));
     }
     return(MessageSecurityProtocolFactory.ExtractMessageParts(action, this.ActAsInitiator ? this.ProtectionRequirements.IncomingSignatureParts : this.ProtectionRequirements.OutgoingSignatureParts, true));
 }
예제 #2
0
 internal MessagePartSpecification GetOutgoingEncryptionParts(string action)
 {
     if (!this.ApplyConfidentiality)
     {
         return(MessagePartSpecification.NoParts);
     }
     if (this.IsDuplexReply)
     {
         return(MessageSecurityProtocolFactory.ExtractMessageParts(action, this.ProtectionRequirements.OutgoingEncryptionParts, false));
     }
     return(MessageSecurityProtocolFactory.ExtractMessageParts(action, this.ActAsInitiator ? this.ProtectionRequirements.IncomingEncryptionParts : this.ProtectionRequirements.OutgoingEncryptionParts, false));
 }