語言

UserNameSecurityTokenProvider.GetTokenCore(TimeSpan) 方法

定義

根據建構子中指定的使用者名稱和密碼,獲得一個安全權杖。

protected:
 override System::IdentityModel::Tokens::SecurityToken ^ GetTokenCore(TimeSpan timeout);
protected override System.IdentityModel.Tokens.SecurityToken GetTokenCore(TimeSpan timeout);
override this.GetTokenCore : TimeSpan -> System.IdentityModel.Tokens.SecurityToken
Protected Overrides Function GetTokenCore (timeout As TimeSpan) As SecurityToken

參數

timeout
TimeSpan

A TimeSpan 指定接收安全憑證訊息的逾時值。

傳回

SecurityToken那代表要取得的安全令牌。

備註

當用戶端發送 SOAP 訊息且GetTokenCore需要安全權杖時,類別會呼叫ClientCredentials此UserNameSecurityToken方法。

方法呼叫 GetToken 該 GetTokenCore 方法。

適用於