Table of Contents

Delegate CertificateValidationCallback

Namespace
PushTechnology.ClientInterface.Client.Session
Assembly
Diffusion.Client.dll

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

public delegate CertificateValidationResult CertificateValidationCallback(X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)

Parameters

certificate X509Certificate

The certificate used to authenticate the remote party.

chain X509Chain

The chain of certificate authorities associated with the remote certificate.

sslPolicyErrors SslPolicyErrors

One or more errors associated with the remote certificate.

Returns

CertificateValidationResult

The validation result that determines whether the specified certificate is accepted for authentication.

Examples

Setting certificate validation to allow any remote certificate.

var factory = Diffusion.Sessions
    .CertificateValidation( (certificate, chain, errors) => CertificateValidationResult.ACCEPT );

Remarks

Added in 6.4.

See Also