EndpointIdentity::CreateRsaIdentity Method (String^)

 

Creates an RSA identity with the specified public key.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
static EndpointIdentity^ CreateRsaIdentity(
	String^ publicKey
)

Parameters

publicKey
Type: System::String^

The public key for the RSA identity.

Return Value

Type: System.ServiceModel::EndpointIdentity^

An RSA EndpointIdentity associated with the specified publicKey.

Exception Condition
ArgumentNullException

publicKey is null.

A secure WCF client that connects to an endpoint with this identity verifies that the claims presented by the server contain a claim that contains the RSA public key used to construct this identity.

This static method creates an instance of RsaEndpointIdentity by calling its constructor, RsaEndpointIdentity.

.NET Framework
Available since 3.0
Return to top
Show: