LocalServiceSecuritySettings.SessionKeyRolloverInterval 屬性

定義

取得或設定前一個工作階段金鑰在金鑰更新期間對傳入訊息屬有效的時間間隔。

public:
 property TimeSpan SessionKeyRolloverInterval { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan SessionKeyRolloverInterval { get; set; }
member this.SessionKeyRolloverInterval : TimeSpan with get, set
Public Property SessionKeyRolloverInterval As TimeSpan

屬性值

在金鑰更新之後,傳入訊息上前一個工作階段金鑰有效的時間間隔。 預設值是 5 分鐘。

例外狀況

此屬性設定為小於 0 的值。

範例

這個範例會示範如何取得 SessionKeyRolloverInterval 值。

TimeSpan rolloverInterval =
    settings.SessionKeyRolloverInterval;
Dim rolloverInterval As TimeSpan = settings.SessionKeyRolloverInterval

備註

在金鑰更新之後,用戶端和伺服器都必須使用最新的可用金鑰來傳送訊息。 雙方都會接受由前一個工作階段金鑰保護的傳入訊息,直到變換時間逾期。

工作階段設定 (例如這個設定) 適用於下列任何一種狀況:

工作階段設定 (例如這個設定) 不適用於下列任何一種狀況:

適用於