SecurityContextSecurityToken Constructors

Definition

Initializes a new instance of the SecurityContextSecurityToken class.

Overloads

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

Initializes a new instance of the SecurityContextSecurityToken class.

C#
public SecurityContextSecurityToken(System.Xml.UniqueId contextId, byte[] key, DateTime validFrom, DateTime validTo);

Parameters

contextId
UniqueId

A UniqueId that represents the context id.

key
Byte[]

A byte array that represents the key.

validFrom
DateTime

The effective start time.

validTo
DateTime

The expiration time.

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Initializes a new instance of the SecurityContextSecurityToken class.

C#
public SecurityContextSecurityToken(System.Xml.UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo);

Parameters

contextId
UniqueId

A UniqueId that represents the context id.

id
String

The token id.

key
Byte[]

A byte array that represents the key.

validFrom
DateTime

The effective start time.

validTo
DateTime

The expiration time.

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Initializes a new instance of the SecurityContextSecurityToken class.

C#
public SecurityContextSecurityToken(System.Xml.UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);

Parameters

contextId
UniqueId

A UniqueId that represents the context id.

id
String

The token id.

key
Byte[]

A byte array that represents the key.

validFrom
DateTime

The effective start time.

validTo
DateTime

The expiration time.

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

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

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Initializes a new instance of the SecurityContextSecurityToken class.

C#
public SecurityContextSecurityToken(System.Xml.UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, System.Xml.UniqueId keyGeneration, DateTime keyEffectiveTime, DateTime keyExpirationTime, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);

Parameters

contextId
UniqueId

A UniqueId that represents the context id.

id
String

The token id.

key
Byte[]

A byte array that represents the key.

validFrom
DateTime

The effective start time.

validTo
DateTime

The expiration time.

keyGeneration
UniqueId

A UniqueId that represents the key generation.

keyEffectiveTime
DateTime

The key effective start time.

keyExpirationTime
DateTime

The key expiration time.

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

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

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1