Edit

Bagikan melalui


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.

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

Initializes a new instance of the SecurityContextSecurityToken class.

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

Initializes a new instance of the SecurityContextSecurityToken class.

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

Initializes a new instance of the SecurityContextSecurityToken class.

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

Initializes a new instance of the SecurityContextSecurityToken class.

public:
 SecurityContextSecurityToken(System::Xml::UniqueId ^ contextId, cli::array <System::Byte> ^ key, DateTime validFrom, DateTime validTo);
public SecurityContextSecurityToken (System.Xml.UniqueId contextId, byte[] key, DateTime validFrom, DateTime validTo);
new System.ServiceModel.Security.Tokens.SecurityContextSecurityToken : System.Xml.UniqueId * byte[] * DateTime * DateTime -> System.ServiceModel.Security.Tokens.SecurityContextSecurityToken
Public Sub New (contextId As UniqueId, key As Byte(), validFrom As DateTime, validTo As DateTime)

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

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

Initializes a new instance of the SecurityContextSecurityToken class.

public:
 SecurityContextSecurityToken(System::Xml::UniqueId ^ contextId, System::String ^ id, cli::array <System::Byte> ^ key, DateTime validFrom, DateTime validTo);
public SecurityContextSecurityToken (System.Xml.UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo);
new System.ServiceModel.Security.Tokens.SecurityContextSecurityToken : System.Xml.UniqueId * string * byte[] * DateTime * DateTime -> System.ServiceModel.Security.Tokens.SecurityContextSecurityToken
Public Sub New (contextId As UniqueId, id As String, key As Byte(), validFrom As DateTime, validTo As DateTime)

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

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

Initializes a new instance of the SecurityContextSecurityToken class.

public:
 SecurityContextSecurityToken(System::Xml::UniqueId ^ contextId, System::String ^ id, cli::array <System::Byte> ^ key, DateTime validFrom, DateTime validTo, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authorizationPolicies);
public SecurityContextSecurityToken (System.Xml.UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);
new System.ServiceModel.Security.Tokens.SecurityContextSecurityToken : System.Xml.UniqueId * string * byte[] * DateTime * DateTime * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.ServiceModel.Security.Tokens.SecurityContextSecurityToken
Public Sub New (contextId As UniqueId, id As String, key As Byte(), validFrom As DateTime, validTo As DateTime, authorizationPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

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

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

Initializes a new instance of the SecurityContextSecurityToken class.

public:
 SecurityContextSecurityToken(System::Xml::UniqueId ^ contextId, System::String ^ id, cli::array <System::Byte> ^ key, DateTime validFrom, DateTime validTo, System::Xml::UniqueId ^ keyGeneration, DateTime keyEffectiveTime, DateTime keyExpirationTime, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authorizationPolicies);
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);
new System.ServiceModel.Security.Tokens.SecurityContextSecurityToken : System.Xml.UniqueId * string * byte[] * DateTime * DateTime * System.Xml.UniqueId * DateTime * DateTime * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.ServiceModel.Security.Tokens.SecurityContextSecurityToken
Public Sub New (contextId As UniqueId, id As String, key As Byte(), validFrom As DateTime, validTo As DateTime, keyGeneration As UniqueId, keyEffectiveTime As DateTime, keyExpirationTime As DateTime, authorizationPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

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