RsaEndpointIdentity 构造函数

定义

初始化 RsaEndpointIdentity 类的新实例。

重载

RsaEndpointIdentity(Claim)

使用声明初始化 RsaEndpointIdentity 类的新实例。

RsaEndpointIdentity(X509Certificate2)

初始化 RsaEndpointIdentity 类的新实例。

RsaEndpointIdentity(String)

初始化公钥中的 RsaEndpointIdentity 类的新实例。

RsaEndpointIdentity(Claim)

Source:
RsaEndpointIdentity.cs
Source:
RsaEndpointIdentity.cs
Source:
RsaEndpointIdentity.cs

使用声明初始化 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
Claim

Claim

例外

identitynull

identity 的声明类型不是 Rsa

适用于

RsaEndpointIdentity(X509Certificate2)

Source:
RsaEndpointIdentity.cs
Source:
RsaEndpointIdentity.cs
Source:
RsaEndpointIdentity.cs

初始化 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)

参数

例外

certificatenull

certificate 公钥为 null

无法访问证书的公钥。

注解

certificate 转换为 RSA 声明并且终结点标识由 Initialize 方法创建。

适用于

RsaEndpointIdentity(String)

Source:
RsaEndpointIdentity.cs
Source:
RsaEndpointIdentity.cs
Source:
RsaEndpointIdentity.cs

初始化公钥中的 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

公钥。

例外

publicKeynull

注解

公钥转换为 RSA 声明并且终结点标识由 Initialize 方法创建。

适用于