Aracılığıyla paylaş


SessionSecurityTokenHandler.CreateToken(SecurityTokenDescriptor) Yöntem

Tanım

Belirtilen belirteç tanımlayıcısını temel alan bir güvenlik belirteci oluşturur.

public:
 override System::IdentityModel::Tokens::SecurityToken ^ CreateToken(System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
public override System.IdentityModel.Tokens.SecurityToken CreateToken(System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
override this.CreateToken : System.IdentityModel.Tokens.SecurityTokenDescriptor -> System.IdentityModel.Tokens.SecurityToken
Public Overrides Function CreateToken (tokenDescriptor As SecurityTokenDescriptor) As SecurityToken

Parametreler

tokenDescriptor
SecurityTokenDescriptor

Belirtecin oluşturulacağı belirteç tanımlayıcısı.

Döndürülenler

Oluşturulan güvenlik belirteci. Bu bir örneği SessionSecurityTokenolacaktır.

Özel durumlar

tokenDescriptor, null'e eşittir.

Açıklamalar

Belirteç tanımlayıcısında aşağıdaki özellikleri kullanarak bir oturum güvenlik belirteci oluşturur ve döndürür: SecurityTokenDescriptor.Subject, ve SecurityTokenDescriptor.Lifetime. SecurityTokenHandlerConfiguration.SaveBootstrapContext Özellik özelliği tarafından Configuration belirtilen belirteç işleyici yapılandırmasında ayarlanırsatrue, bootstrap bağlamı özelliğinden SecurityTokenDescriptor.Token oluşturulur ve oturum belirtecinde kaydedilir.

Şunlara uygulanır