X509SecurityTokenProvider 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一個安全令牌提供者,為 SOAP 訊息發送者提供 X509SecurityToken 安全令牌。
public ref class X509SecurityTokenProvider : System::IdentityModel::Selectors::SecurityTokenProvider, IDisposable
public class X509SecurityTokenProvider : System.IdentityModel.Selectors.SecurityTokenProvider, IDisposable
type X509SecurityTokenProvider = class
inherit SecurityTokenProvider
interface IDisposable
Public Class X509SecurityTokenProvider
Inherits SecurityTokenProvider
Implements IDisposable
- 繼承
- 實作
備註
在大多數情況下,不需要直接呼叫該 X509SecurityTokenProvider 類別,因為當用戶端發送需要 X509SecurityToken 安全標記的 SOAP 訊息時,就會呼叫該類別。 具體來說,客戶端會指定所需的安全權杖類型,使用 ClientCredentials 類別,而 ClientCredentials 類別則呼叫 GetToken 方法以取得安全權杖。 當所需的安全令牌是 X509SecurityToken 安全令牌時,方法會 GetToken 呼叫該 GetTokenCore 方法。
建構函式
| 名稱 | Description |
|---|---|
| X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object) |
透過從指定的憑證儲存條件取得 X.509 憑證,初始化該 X509SecurityTokenProvider 類別的新實例。 |
| X509SecurityTokenProvider(X509Certificate2) |
使用指定的 X.509 憑證初始化該 X509SecurityTokenProvider 類別的新實例。 |
屬性
| 名稱 | Description |
|---|---|
| Certificate |
會取得與安全令牌相關的 X509SecurityToken X.509 憑證。 |
| SupportsTokenCancellation |
會得到一個值,表示安全令牌是否可以被取消。 (繼承來源 SecurityTokenProvider) |
| SupportsTokenRenewal |
會獲得一個值,表示該證券代幣是否可續期。 (繼承來源 SecurityTokenProvider) |