Partager via


LifeTime Class

Represents the period of time that a security token is valid.

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim expires As DateTime
Dim lifeTime1 As New LifeTime(expires)

Syntax

'Declaration
Public Class LifeTime
    Implements IXmlElement
public class LifeTime : IXmlElement
public ref class LifeTime : IXmlElement
public class LifeTime implements IXmlElement
public class LifeTime implements IXmlElement

Remarks

The LifeTime class is used by security tokens that implement the IIssuedToken interface, which are security tokens that are issued from a security token service. A security token service can issue tokens that are valid immediately or that become valid at some future date and time, which are known as post-dated security tokens. The LifeTime class specifies the date and time at which the security token was created and expires with the Created and Expires properties, respectively. When the security token is post-dated, the Created property specifies the date and time at which the security token becomes valid.

The KerberosToken and SecurityContextToken security tokens both have a LifeTime property.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Services3.Security.LifeTime

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

LifeTime Members
Microsoft.Web.Services3.Security Namespace