SecurityContextSecurityToken Constructor (UniqueId, Byte[], DateTime, DateTime)

 

Initializes a new instance of the SecurityContextSecurityToken class.

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

public SecurityContextSecurityToken(
	UniqueId contextId,
	byte[] key,
	DateTime validFrom,
	DateTime validTo
)

Parameters

contextId
Type: System.Xml.UniqueId

A UniqueId that represents the context 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.

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

.NET Framework
Available since 3.0
Return to top
Show: