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
certificateX509CertificateThe certificate used to authenticate the remote party.
chainX509ChainThe chain of certificate authorities associated with the remote certificate.
sslPolicyErrorsSslPolicyErrorsOne 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.