RsaEndpointIdentity Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Exceptions
identity
is null
.
The claim type of identity
is not Rsa.
Applies to
RsaEndpointIdentity(X509Certificate2)
- Source:
- RsaEndpointIdentity.cs
- 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
- certificate
- 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
RsaEndpointIdentity(String)
- Source:
- RsaEndpointIdentity.cs
- 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.