语言

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 为其获取安全令牌。

例外

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

storeName
StoreName

StoreName指定证书存储名称的值之一。

findType
X509FindType

X509FindType指定如何搜索证书存储的值之一。

findValue
Object

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

例外

findValue 是 null。

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

-或-

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

注解

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

适用于