WindowsSecurityToken.Initialize Method (String, String, DateTime, DateTime, WindowsIdentity, Boolean)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the WindowsSecurityToken class.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected void Initialize(
	string id,
	string authenticationType,
	DateTime effectiveTime,
	DateTime expirationTime,
	WindowsIdentity windowsIdentity,
	bool clone
)

Parameters

id
Type: System.String

A unique identifier for the security token.

authenticationType
Type: System.String

The authentication type for the security token.

effectiveTime
Type: System.DateTime

A DateTime that represents the instant in time at which this security token is first valid.

expirationTime
Type: System.DateTime

A DateTime that represents the last instant in time at which this security token is valid.

windowsIdentity
Type: System.Security.Principal.WindowsIdentity

Represents a Windows user.

clone
Type: System.Boolean

true to create a WindowsIdentity object that is identical to the windowsIdentity parameter and assign that to the WindowsIdentity property; otherwise, assign the value of the windowsIdentity parameter to the WindowsIdentity property.

.NET Framework
Available since 4.0
Return to top
Show: