LocalServiceSecuritySettings.SessionKeyRolloverInterval 屬性

定義

取得或設定前一個工作階段金鑰在金鑰更新期間對傳入訊息屬有效的時間間隔。Gets or sets the time interval after key renewal for which the previous session key is valid on incoming messages during a key renewal.

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

屬性值

TimeSpan

在金鑰更新之後,傳入訊息上前一個工作階段金鑰有效的時間間隔。The time interval after key renewal for which the previous session key is valid on incoming messages after a key renewal. 預設值是 5 分鐘。The default is 5 minutes.

例外狀況

此屬性設定為小於 0 的值。The property is set to a value less than 0.

範例

這個範例會示範如何取得 SessionKeyRolloverInterval 值。This example shows how get the SessionKeyRolloverInterval value.

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

備註

在金鑰更新之後,用戶端和伺服器都必須使用最新的可用金鑰來傳送訊息。After key renewal, the client and server should always send messages using the most current available key. 雙方都會接受由前一個工作階段金鑰保護的傳入訊息,直到變換時間逾期。Both parties can accept incoming messages secured with the previous session key until the rollover time expires.

工作階段設定 (例如這個設定) 適用於下列任何一種狀況:Session settings such as this one are applicable under any of the following conditions:

工作階段設定 (例如這個設定) 不適用於下列任何一種狀況:Session settings such as this one are not applicable under any of the following conditions:

適用於