LocalClientSecuritySettingsElement.ReplayWindow 属性
定义
public:
property TimeSpan ReplayWindow { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("replayWindow", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public TimeSpan ReplayWindow { get; set; }
[System.Configuration.ConfigurationProperty("replayWindow", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))]
public TimeSpan ReplayWindow { get; set; }
[System.Configuration.ConfigurationProperty("replayWindow", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))]
public TimeSpan ReplayWindow { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.TimeSpanOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("replayWindow", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.ReplayWindow : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("replayWindow", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))>]
member this.ReplayWindow : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("replayWindow", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))>]
member this.ReplayWindow : TimeSpan with get, set
Public Property ReplayWindow As TimeSpan
属性值
一个 TimeSpan,指定单个消息 Nonce 有效的持续时间。A TimeSpan that specifies the duration in which individual message nonces are valid.
- 属性
注解
在此属性指定的时间之后,如果发送的消息与之前发送的消息具有相同的 Nonce,则该消息会被拒绝。After the time specified by this property, a message sent with the same nonce as the one sent before is not accepted. 此属性与 MaxClockSkew 属性结合使用,以防止遭受重播攻击。This property is used in conjunction with the MaxClockSkew property to prevent replay attacks. 攻击者可以在其重播时间窗口过期之后重播消息。An attacker can replay a message after its replay window has expired. 但是,该消息无法通过 maxClockSkew 测试;如果消息的发送时间戳比消息接收时间晚或早指定的时间,则该测试会拒绝消息。This message, however, fails the maxClockSkew test that rejects messages with send-time timestamps up to a specified time later or earlier than the time the message was received.