X509SecurityTokenProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 X509SecurityTokenProvider 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| X509SecurityTokenProvider(X509Certificate2) |
使用指定的 X.509 憑證初始化該 X509SecurityTokenProvider 類別的新實例。 |
| X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object) |
透過從指定的憑證儲存條件取得 X.509 憑證,初始化該 X509SecurityTokenProvider 類別的新實例。 |
X509SecurityTokenProvider(X509Certificate2)
使用指定的 X.509 憑證初始化該 X509SecurityTokenProvider 類別的新實例。
public:
X509SecurityTokenProvider(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public X509SecurityTokenProvider(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.IdentityModel.Selectors.X509SecurityTokenProvider : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Selectors.X509SecurityTokenProvider
Public Sub New (certificate As X509Certificate2)
參數
- certificate
- X509Certificate2
為了 X509Certificate2 取得安全令牌。
例外狀況
certificate 是 null。
備註
該 GetTokenCore 方法會根據參數中 certificate 指定的憑證獲得安全權杖。
適用於
X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object)
透過從指定的憑證儲存條件取得 X.509 憑證,初始化該 X509SecurityTokenProvider 類別的新實例。
public:
X509SecurityTokenProvider(System::Security::Cryptography::X509Certificates::StoreLocation storeLocation, System::Security::Cryptography::X509Certificates::StoreName storeName, System::Security::Cryptography::X509Certificates::X509FindType findType, System::Object ^ findValue);
public X509SecurityTokenProvider(System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName, System.Security.Cryptography.X509Certificates.X509FindType findType, object findValue);
new System.IdentityModel.Selectors.X509SecurityTokenProvider : System.Security.Cryptography.X509Certificates.StoreLocation * System.Security.Cryptography.X509Certificates.StoreName * System.Security.Cryptography.X509Certificates.X509FindType * obj -> System.IdentityModel.Selectors.X509SecurityTokenProvider
Public Sub New (storeLocation As StoreLocation, storeName As StoreName, findType As X509FindType, findValue As Object)
參數
- storeLocation
- StoreLocation
StoreLocation其中一個值是指定憑證儲存位置的。
- findType
- X509FindType
其中一個 X509FindType 值是指定如何搜尋憑證儲存庫的。
- findValue
- Object
在憑證儲存庫中尋找 X.509 憑證的值。
例外狀況
findValue 是 null。
備註
該 GetTokenCore 方法會根據符合指定憑證儲存條件的憑證獲得安全令牌。