RsaEndpointIdentity Constructors

Definition

Initializes a new instance of the RsaEndpointIdentity class.

Overloads

RsaEndpointIdentity(Claim)

Initializes a new instance of the RsaEndpointIdentity class from a claim.

RsaEndpointIdentity(String)

Initializes a new instance of the RsaEndpointIdentity class from a public key.

RsaEndpointIdentity(X509Certificate2)

Initializes a new instance of the RsaEndpointIdentity class.

RsaEndpointIdentity(Claim)

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)

Parameters

identity
Claim

The Claim.

Exceptions

identity is null.

The claim type of identity is not Rsa.

Applies to

RsaEndpointIdentity(String)

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)

Parameters

publicKey
String

The public key.

Exceptions

publicKey is null.

Remarks

The public key is converted to an RSA claim and an endpoint identity is created by the method Initialize.

Applies to

RsaEndpointIdentity(X509Certificate2)

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)

Parameters

certificatecert
X509Certificate2

The X509Certificate2.

Exceptions

certificate is null.

The certificate public key is null.

The certificate's public key cannot be accessed.

Remarks

The certificate is converted to an RSA claim and an endpoint identity is created by the method Initialize.

Applies to