ClientCertificateResponse Class

Namespace: System.Net.Security

Declaring type: System.Object

Represents the response from the server regarding a client certificate request.

Syntax

public ref class ClientCertificateResponse sealed" : System::Object"

Remarks

The ClientCertificateResponse class is used by the client to communicate its response to a server's request for a client certificate. This typically occurs during SSL/TLS handshake negotiation when the server requires client authentication.

When a server requests a client certificate, it sends a Certificate Request message. The client application can then use the ClientCertificateResponse class to specify whether it will provide a certificate, and if so, which certificate to provide.

This class is part of the core .NET networking and security infrastructure, enabling secure client-server communication with mutual authentication.

Constructors

Constructor Description
ClientCertificateResponse() Initializes a new instance of the ClientCertificateResponse class.

Properties

Property Type Description
Certificate System.Security.Cryptography.X509Certificates.X509Certificate2 Gets or sets the client certificate to be sent to the server.
IsValid bool Gets or sets a value indicating whether the client is providing a valid certificate.

Methods

Method Description
Dispose() Releases all resources used by the current instance of the ClientCertificateResponse class.
Finalize() Allows the garbage collector to reclaim the ClientCertificateResponse object before the destruction.
ToString() Returns a string that represents the current object.

Requirements

Requirement Description
Namespace System.Net.Security
Assembly System.Net.Security.dll