RsaEndpointIdentity 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 RsaEndpointIdentity 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| RsaEndpointIdentity(Claim) |
从声明初始化类的新实例 RsaEndpointIdentity 。 |
| RsaEndpointIdentity(X509Certificate2) |
初始化 RsaEndpointIdentity 类的新实例。 |
| RsaEndpointIdentity(String) |
从公钥初始化类的新实例 RsaEndpointIdentity 。 |
RsaEndpointIdentity(Claim)
从声明初始化类的新实例 RsaEndpointIdentity 。
public:
RsaEndpointIdentity(System::IdentityModel::Claims::Claim ^ identity);
public RsaEndpointIdentity(System.IdentityModel.Claims.Claim identity);
new System.ServiceModel.RsaEndpointIdentity : System.IdentityModel.Claims.Claim -> System.ServiceModel.RsaEndpointIdentity
Public Sub New (identity As Claim)
参数
例外
identity 是 null。
声明类型 identity 不是 Rsa。
适用于
RsaEndpointIdentity(X509Certificate2)
初始化 RsaEndpointIdentity 类的新实例。
public:
RsaEndpointIdentity(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public RsaEndpointIdentity(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.ServiceModel.RsaEndpointIdentity : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.ServiceModel.RsaEndpointIdentity
Public Sub New (certificate As X509Certificate2)
参数
- certificate
- X509Certificate2
例外
certificate 是 null。
certificate公钥为 null.
无法访问证书的公钥。
注解
该 certificate 标识将转换为 RSA 声明,终结点标识由该方法 Initialize创建。
适用于
RsaEndpointIdentity(String)
从公钥初始化类的新实例 RsaEndpointIdentity 。
public:
RsaEndpointIdentity(System::String ^ publicKey);
public RsaEndpointIdentity(string publicKey);
new System.ServiceModel.RsaEndpointIdentity : string -> System.ServiceModel.RsaEndpointIdentity
Public Sub New (publicKey As String)
参数
- publicKey
- String
公钥。
例外
publicKey 是 null。
注解
公钥将转换为 RSA 声明,终结点标识由该方法 Initialize创建。