Bewerken

Share via


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(X509Certificate2)

Initializes a new instance of the RsaEndpointIdentity class.

RsaEndpointIdentity(String)

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

RsaEndpointIdentity(Claim)

Source:
RsaEndpointIdentity.cs

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(X509Certificate2)

Source:
RsaEndpointIdentity.cs

Initializes a new instance of the RsaEndpointIdentity class.

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)

Parameters

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

RsaEndpointIdentity(String)

Source:
RsaEndpointIdentity.cs

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