X509SecurityTokenProvider 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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 值之一,该值指定了证书存储位置。
- findType
- X509FindType
X509FindType 值之一,该值指定了如何搜索证书存储。
- findValue
- Object
用于在证书存储区中查找 X.509 证书的值。
例外
findValue
为 null
。
注解
GetTokenCore 方法根据与指定的证书存储条件匹配的证书获取安全令牌。