SecurityContextSecurityToken.CreateCookieSecurityContextToken Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
- 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
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
- 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.
- 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
Cookie de jeton de contexte de sécurité.