Partager via


SecurityContextSecurityToken.CreateCookieSecurityContextToken Méthode

Définition

Crée un cookie de jeton de contexte de sécurité.

Surcharges

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

Crée un cookie de jeton de contexte de sécurité.

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

Crée un cookie de jeton de contexte de sécurité.

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

Crée un cookie de jeton de contexte de sécurité.

public:
 static System::ServiceModel::Security::Tokens::SecurityContextSecurityToken ^ CreateCookieSecurityContextToken(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, System::ServiceModel::Security::SecurityStateEncoder ^ securityStateEncoder);
public static System.ServiceModel.Security.Tokens.SecurityContextSecurityToken CreateCookieSecurityContextToken (System.Xml.UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies, System.ServiceModel.Security.SecurityStateEncoder securityStateEncoder);
static member CreateCookieSecurityContextToken : System.Xml.UniqueId * string * byte[] * DateTime * DateTime * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> * System.ServiceModel.Security.SecurityStateEncoder -> System.ServiceModel.Security.Tokens.SecurityContextSecurityToken
Public Shared Function CreateCookieSecurityContextToken (contextId As UniqueId, id As String, key As Byte(), validFrom As DateTime, validTo As DateTime, authorizationPolicies As ReadOnlyCollection(Of IAuthorizationPolicy), securityStateEncoder As SecurityStateEncoder) As SecurityContextSecurityToken

Paramètres

contextId
UniqueId

UniqueId qui représente l'id de contexte.

id
String

Id du jeton.

key
Byte[]

Tableau d'octets qui représente la clé.

validFrom
DateTime

Heure de début effective.

validTo
DateTime

Heure d'expiration.

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

Collection en lecture seule d'instances de IAuthorizationPolicy.

securityStateEncoder
SecurityStateEncoder

Encodeur de l'état de sécurité.

Retours

SecurityContextSecurityToken

Cookie de jeton de contexte de sécurité.

S’applique à

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

Crée un cookie de jeton de contexte de sécurité.

public:
 static System::ServiceModel::Security::Tokens::SecurityContextSecurityToken ^ CreateCookieSecurityContextToken(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, System::ServiceModel::Security::SecurityStateEncoder ^ securityStateEncoder);
public static System.ServiceModel.Security.Tokens.SecurityContextSecurityToken CreateCookieSecurityContextToken (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, System.ServiceModel.Security.SecurityStateEncoder securityStateEncoder);
static member CreateCookieSecurityContextToken : System.Xml.UniqueId * string * byte[] * DateTime * DateTime * System.Xml.UniqueId * DateTime * DateTime * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> * System.ServiceModel.Security.SecurityStateEncoder -> System.ServiceModel.Security.Tokens.SecurityContextSecurityToken
Public Shared Function CreateCookieSecurityContextToken (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), securityStateEncoder As SecurityStateEncoder) As SecurityContextSecurityToken

Paramètres

contextId
UniqueId

UniqueId qui représente l'id de contexte.

id
String

Id du jeton.

key
Byte[]

Tableau d'octets qui représente la clé.

validFrom
DateTime

Heure de début effective.

validTo
DateTime

Heure d'expiration.

keyGeneration
UniqueId

UniqueId qui représente la génération de clé.

keyEffectiveTime
DateTime

Heure de début effective de la clé.

keyExpirationTime
DateTime

Heure d'expiration de la clé.

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

Collection en lecture seule d'instances de IAuthorizationPolicy.

securityStateEncoder
SecurityStateEncoder

Encodeur de l'état de sécurité.

Retours

SecurityContextSecurityToken

Cookie de jeton de contexte de sécurité.

S’applique à