Redigera

Dela via


Lifetime Class

Definition

Represents the <wst:Lifetime> element.

public ref class Lifetime
public class Lifetime
type Lifetime = class
Public Class Lifetime
Inheritance
Lifetime

Remarks

This optional element is used in wst:RequestSecurityToken or wst:RequestSecurityTokenResponse messages to indicate the desired or required lifetime of a token. All times are specified in UTC time.

For more information about the element that this class represents, see the WS-Trust specification that applies to your scenario: WS-Trust February 2005, WS-Trust 1.3, or WS-Trust 1.4.

Constructors

Lifetime(DateTime, DateTime)

Initializes a new instance of the Lifetime class with the specified creation and expiration time.

Lifetime(Nullable<DateTime>, Nullable<DateTime>)

Initializes a new instance of the Lifetime class with the specified creation and expiration time.

Properties

Created

Gets the token creation time in UTC time.

Expires

Gets the token expiration time in UTC time.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to