Share via


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 değeridir.

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 özelliği ö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