SamlSecurityToken.ValidTo 属性

定义

获取此安全令牌有效的最后时刻。Gets the last instant in time at which this security token is valid.

public:
 virtual property DateTime ValidTo { DateTime get(); };
public override DateTime ValidTo { get; }
member this.ValidTo : DateTime
Public Overrides ReadOnly Property ValidTo As DateTime

属性值

DateTime

一个 DateTime,表示此安全令牌有效的最后时刻。A DateTime that represents the last instant in time at which this security token is valid.

注解

使用 ValidFromValidTo 属性可确定 SamlSecurityToken 令牌有效的时间段。Use the ValidFrom and ValidTo properties to determine the time period in which a SamlSecurityToken token is valid. ValidFromValidTo 属性分别表示此安全令牌有效的最初时刻和最后时刻。The ValidFrom and ValidTo properties represent the first and last instants in time in which the security token is valid, respectively.

默认情况下,安全令牌的发送方和接收方之间允许存在 5 分钟的时钟偏差。By default, a 5-minute clock skew is allowed between the sender and receiver of the security token. 因此,如果 NotOnOrAfter 属性设置为 1:00 PM,则 ValidFrom 属性可设置为 1:05 PM。So, if the NotOnOrAfter property is set to 1:00 PM, then the ValidFrom property is set to 1:05 PM.

如果 ValidTo 属性设置为 MaxValue,则与此 SamlSecurityToken 安全令牌相关联的 SAML 断言没有设置任何条件。When the ValidTo property is set to MaxValue, then the SAML assertion associated with this SamlSecurityToken security token does not have any conditions set.

适用于

另请参阅