LocalClientSecuritySettings.ReplayWindow 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定訊息 nonce 有效的最長時間。
public:
property TimeSpan ReplayWindow { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan ReplayWindow { get; set; }
member this.ReplayWindow : TimeSpan with get, set
Public Property ReplayWindow As TimeSpan
屬性值
A TimeSpan 代表訊息nonce有效的最大時間。 預設值為五分鐘。
例外狀況
該房產價值低於 set 0。
範例
這個範例展示了如何取得這個屬性。
TimeSpan replayWindow = settings.ReplayWindow;
Dim replayWindow As TimeSpan = settings.ReplayWindow
備註
nonce 是一種「一次性使用的號碼」,通常是在認證協議中用來確保舊通訊無法被用於重播攻擊的隨機號碼。