X509SecurityTokenProvider.GetTokenCore(TimeSpan) 方法

定義

取得使用建構函式中所指定 X.509 憑證的安全性權杖。

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

TimeSpan,其中指定取得安全性權杖之訊息的逾時值。

傳回

SecurityToken,表示要取得的安全性權杖。

備註

在用戶端傳送 SOAP 訊息而需要 GetToken 安全性權杖時,ClientCredentials 類別會呼叫 X509SecurityToken 方法。

GetToken 方法會呼叫 GetTokenCore 方法。

適用於