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:

适用于