private void ValidateSecurityCapabilities(ISecurityCapabilities runtimeSecurityCapabilities, BindingParameterCollection parameters)
 {
     if (!SecurityCapabilities.IsEqual(this.GetProperty <ISecurityCapabilities>(parameters), runtimeSecurityCapabilities))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(System.ServiceModel.SR.GetString("SecurityCapabilitiesMismatched", new object[] { this })));
     }
 }
 public RecipientMessageSecurityBindingSupport(
     SecurityCapabilities elementSupport,
     SecurityTokenManager manager,
     ChannelProtectionRequirements requirements)
     : base(elementSupport, manager, requirements)
 {
 }
 protected MessageSecurityBindingSupport(
     SecurityCapabilities elementSupport,
     SecurityTokenManager manager,
     ChannelProtectionRequirements requirements)
 {
     element_support = elementSupport;
     Initialize(manager, requirements);
 }
예제 #4
0
        private void ValidateSecurityCapabilities(ISecurityCapabilities runtimeSecurityCapabilities, BindingParameterCollection parameters)
        {
            ISecurityCapabilities bindingSecurityCapabilities = this.GetProperty <ISecurityCapabilities>(parameters);

            if (!SecurityCapabilities.IsEqual(bindingSecurityCapabilities, runtimeSecurityCapabilities))
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
                          new InvalidOperationException(SR.Format(SR.SecurityCapabilitiesMismatched, this)));
            }
        }