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
)

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.

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: