Skip to content

Commit

Permalink
commit translated contents
Browse files Browse the repository at this point in the history
  • Loading branch information
olprod committed Sep 5, 2018
1 parent 547d010 commit fac57a3
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
---
title: 如何:启用消息重播检测
ms.date: 03/30/2017
dev_langs:
- csharp
- vb
helpviewer_keywords:
- WCF security
- replay detection [WCF]
- WCF, custom bindings
- WCF, security
ms.assetid: 8b847e91-69a3-49e1-9e5f-0c455e50d804
ms.openlocfilehash: 5c761a23d2560f40a0121d684dcb411a716de5a6
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.translationtype: MT
ms.contentlocale: zh-CN
ms.lasthandoff: 05/04/2018
ms.locfileid: "33497134"
title: 如何:启用消息重播检测
ms.date: 03/30/2017
dev_langs:
- csharp
- vb
helpviewer_keywords:
- WCF security
- replay detection [WCF]
- WCF, custom bindings
- WCF, security
ms.assetid: 8b847e91-69a3-49e1-9e5f-0c455e50d804
ms.openlocfilehash: df56d3f2bfe351c38ca2e64539de13e4cc556d2a
ms.sourcegitcommit: efff8f331fd9467f093f8ab8d23a203d6ecb5b60
ms.translationtype: HT
ms.contentlocale: zh-CN
ms.lasthandoff: 09/01/2018
ms.locfileid: "43405040"
---
# <a name="how-to-enable-message-replay-detection"></a>如何:启用消息重播检测
当攻击者复制双方之间的消息流并将该消息流向一方或多方重播时,将发生重播攻击。 除非攻击程度降低,否则受到攻击的计算机会将该流处理为合法消息,从而导致产生大量不良结果,例如某项的冗余排序。

有关消息重播检测的详细信息,请参阅[消息重播检测](http://go.microsoft.com/fwlink/?LinkId=88536)
有关消息重播检测的详细信息,请参阅[消息重播检测](https://go.microsoft.com/fwlink/?LinkId=88536)

下面的过程演示可用于控制重播检测使用 Windows Communication Foundation (WCF) 的各种属性。
以下过程说明了可用于控制重播检测使用 Windows Communication Foundation (WCF) 的各种属性。

### <a name="to-control-replay-detection-on-the-client-using-code"></a>使用代码在客户端上控制重播检测

1. 创建要在 <xref:System.ServiceModel.Channels.SecurityBindingElement> 中使用的 <xref:System.ServiceModel.Channels.CustomBinding>。 有关详细信息,请参阅[如何: 自定义绑定使用 SecurityBindingElement 创建](../../../../docs/framework/wcf/feature-details/how-to-create-a-custom-binding-using-the-securitybindingelement.md)。 下面的示例使用通过 <xref:System.ServiceModel.Channels.SymmetricSecurityBindingElement> 类的 <xref:System.ServiceModel.Channels.SecurityBindingElement.CreateKerberosBindingElement%2A> 创建的 <xref:System.ServiceModel.Channels.SecurityBindingElement>
1. 创建要在 <xref:System.ServiceModel.Channels.SecurityBindingElement> 中使用的 <xref:System.ServiceModel.Channels.CustomBinding>。 有关详细信息,请参阅[如何: 创建自定义绑定使用 SecurityBindingElement](../../../../docs/framework/wcf/feature-details/how-to-create-a-custom-binding-using-the-securitybindingelement.md)。 下面的示例使用通过 <xref:System.ServiceModel.Channels.SymmetricSecurityBindingElement> 类的 <xref:System.ServiceModel.Channels.SecurityBindingElement.CreateKerberosBindingElement%2A> 创建的 <xref:System.ServiceModel.Channels.SecurityBindingElement>

2. 使用 <xref:System.ServiceModel.Channels.SecurityBindingElement.LocalClientSettings%2A> 属性返回对 <xref:System.ServiceModel.Channels.LocalClientSecuritySettings> 类的引用,并根据需要设置任何下列属性:

Expand All @@ -50,7 +50,7 @@ ms.locfileid: "33497134"

2. 创建 `<security>` 元素。

3. 创建[ \<g s >](../../../../docs/framework/configure-apps/file-schema/wcf/localclientsettings-element.md)[ \<localServiceSettings >](../../../../docs/framework/configure-apps/file-schema/wcf/localservicesettings-element.md)
3. 创建[ \<localClientSettings >](../../../../docs/framework/configure-apps/file-schema/wcf/localclientsettings-element.md)[ \<localServiceSettings >](../../../../docs/framework/configure-apps/file-schema/wcf/localservicesettings-element.md)

4. 根据需要,设置下列属性值:`detectReplays``maxClockSkew``replayWindow``replayCacheSize`。 下面的示例设置 `<localServiceSettings>``<localClientSettings>` 元素的属性:

Expand Down Expand Up @@ -106,5 +106,5 @@ ms.locfileid: "33497134"
<xref:System.ServiceModel.Channels.LocalClientSecuritySettings>
<xref:System.ServiceModel.Channels.LocalServiceSecuritySettings>
[安全对话和安全会话](../../../../docs/framework/wcf/feature-details/secure-conversations-and-secure-sessions.md)
[\<g s >](../../../../docs/framework/configure-apps/file-schema/wcf/localclientsettings-element.md)
[\<localClientSettings >](../../../../docs/framework/configure-apps/file-schema/wcf/localclientsettings-element.md)
[如何:使用 SecurityBindingElement 创建自定义绑定](../../../../docs/framework/wcf/feature-details/how-to-create-a-custom-binding-using-the-securitybindingelement.md)

0 comments on commit fac57a3

Please sign in to comment.