Export (0) Print
Expand All

SecurityContextSecurityToken Constructor (UniqueId, String, Byte[], DateTime, DateTime, ReadOnlyCollection<IAuthorizationPolicy>)

Initializes a new instance of the SecurityContextSecurityToken class.

Namespace:  System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public SecurityContextSecurityToken(
	UniqueId contextId,
	string id,
	byte[] key,
	DateTime validFrom,
	DateTime validTo,
	ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies


Type: System.Xml.UniqueId

A UniqueId that represents the context id.

Type: System.String

The token id.

Type: System.Byte[]

A byte array that represents the key.

Type: System.DateTime

The effective start time.

Type: System.DateTime

The expiration time.

Type: System.Collections.ObjectModel.ReadOnlyCollection<IAuthorizationPolicy>

A read-only collection of IAuthorizationPolicy instances that represents the party to whom the token is issued.

The contextId should be unique among all security context tokens issued by the service.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft