System.Net.Security.RemoteCertificateValidationCallback Delegate

Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication.

Syntax

public delegate bool RemoteCertificateValidationCallback (object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, SslPolicyErrors sslPolicyErrors)

Parameters

sender
Documentation for this section has not yet been entered.
certificate
Documentation for this section has not yet been entered.
chain
Documentation for this section has not yet been entered.
sslPolicyErrors
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

The delegate's sslPolicyErrors argument contains any certificate errors returned by SSPI while authenticating the client or server. The bool value returned by the method invoked by this delegate determines whether the authentication is allowed to succeed.

This delegate is used with the System.Net.Security.SslStream class.

Requirements

Namespace: System.Net.Security
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0