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

 
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 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,
	UniqueId keyGeneration,
	DateTime keyEffectiveTime,
	DateTime keyExpirationTime,
	ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies
)

Parameters

contextId
Type: System.Xml.UniqueId

A UniqueId that represents the context id.

id
Type: System.String

The token id.

key
Type: System.Byte[]

A byte array that represents the key.

validFrom
Type: System.DateTime

The effective start time.

validTo
Type: System.DateTime

The expiration time.

keyGeneration
Type: System.Xml.UniqueId

A UniqueId that represents the key generation.

keyEffectiveTime
Type: System.DateTime

The key effective start time.

keyExpirationTime
Type: System.DateTime

The key expiration time.

authorizationPolicies
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
Available since 3.0
Return to top
Show: