RsaEndpointIdentity 构造函数
定义
初始化 RsaEndpointIdentity 类的新实例。Initializes a new instance of the RsaEndpointIdentity class.
重载
| RsaEndpointIdentity(Claim) |
使用声明初始化 RsaEndpointIdentity 类的新实例。Initializes a new instance of the RsaEndpointIdentity class from a claim. |
| RsaEndpointIdentity(String) |
初始化公钥中的 RsaEndpointIdentity 类的新实例。Initializes a new instance of the RsaEndpointIdentity class from a public key. |
| RsaEndpointIdentity(X509Certificate2) |
初始化 RsaEndpointIdentity 类的新实例。Initializes a new instance of the RsaEndpointIdentity class. |
RsaEndpointIdentity(Claim)
使用声明初始化 RsaEndpointIdentity 类的新实例。Initializes a new instance of the RsaEndpointIdentity class from a claim.
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 is null.
适用于
RsaEndpointIdentity(String)
初始化公钥中的 RsaEndpointIdentity 类的新实例。Initializes a new instance of the RsaEndpointIdentity class from a public key.
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
公钥。The public key.
例外
publicKey 为 null。publicKey is null.
注解
公钥转换为 RSA 声明并且终结点标识由 Initialize 方法创建。The public key is converted to an RSA claim and an endpoint identity is created by the method Initialize.
适用于
RsaEndpointIdentity(X509Certificate2)
初始化 RsaEndpointIdentity 类的新实例。Initializes a new instance of the RsaEndpointIdentity class.
public:
RsaEndpointIdentity(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public:
RsaEndpointIdentity(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ cert);
public RsaEndpointIdentity (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
public RsaEndpointIdentity (System.Security.Cryptography.X509Certificates.X509Certificate2 cert);
new System.ServiceModel.RsaEndpointIdentity : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.ServiceModel.RsaEndpointIdentity
new System.ServiceModel.RsaEndpointIdentity : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.ServiceModel.RsaEndpointIdentity
Public Sub New (certificate As X509Certificate2)
Public Sub New (cert As X509Certificate2)
参数
- certificatecert
- X509Certificate2
例外
certificate 为 null。certificate is null.
certificate 公钥为 null。The certificate public key is null.
无法访问证书的公钥。The certificate's public key cannot be accessed.
注解
certificate 转换为 RSA 声明并且终结点标识由 Initialize 方法创建。The certificate is converted to an RSA claim and an endpoint identity is created by the method Initialize.