X509CertificateRecipientClientCredential.Authentication Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the settings used to validate the service certificate obtained using SSL authentication.

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

public X509ServiceCertificateAuthentication Authentication { get; }

Property Value

Type: System.ServiceModel.Security.X509ServiceCertificateAuthentication

The settings used to validate the service certificate obtained using SSL authentication.

The X509ClientCertificateAuthentication class represents the settings used by the client proxy to authenticate service certificates that are obtained using SSL/TLS negotiation.

This code shows how to access this property.

public void snippet21(CalculatorClient cc)
{
    X509CertificateRecipientClientCredential rcc = cc.ClientCredentials.ServiceCertificate;
    X509ServiceCertificateAuthentication xauth = rcc.Authentication;
}

.NET Framework
Available since 3.0
Return to top
Show: