X509SecurityTokenProvider 构造函数

定义

初始化 X509SecurityTokenProvider 类的新实例。

重载

X509SecurityTokenProvider(X509Certificate2)

使用指定的 X.509 证书初始化 X509SecurityTokenProvider 类的新实例。

X509SecurityTokenProvider(StoreLocation, StoreName, X509FindType, Object)

通过从指定的证书存储条件中获取 X.509 证书来初始化 X509SecurityTokenProvider 类的新实例。

X509SecurityTokenProvider(X509Certificate2)

Source:
X509SecurityTokenProvider.cs
Source:
X509SecurityTokenProvider.cs
Source:
X509SecurityTokenProvider.cs

使用指定的 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

例外

certificatenull

注解

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 值之一,该值指定了证书存储位置。

storeName
StoreName

StoreName 值之一,该值指定了证书存储名称。

findType
X509FindType

X509FindType 值之一,该值指定了如何搜索证书存储。

findValue
Object

用于在证书存储区中查找 X.509 证书的值。

例外

findValuenull

没有与指定的条件匹配的证书。

- 或 -

有多个证书与指定的条件匹配。

注解

GetTokenCore 方法根据与指定的证书存储条件匹配的证书获取安全令牌。

适用于