About userCertificateValidationCallback in IMAP client

I wants to know more about the userCertificateValidationCallback param when init client for IMAP.

I use C# for develop. there is ServicePointManager.ServerCertificateValidationCallback. it’s this one in ServicePointManager will affect that one in IMAPClient?

For IMAP client, there is a init function with those parameters:
// Summary:
// Initializes a new instance of the Aspose.Email.Clients.Imap.ImapClient class
// Parameters:
// host:
// The host name
// port:
// The portnumber
// username:
// The user name
// password:
// The password
// userCertificateValidationCallback:
// System.Net.Security.RemoteCertificateValidationCallback
// securityOptions:
// Security mode for a mail client
public ImapClient(string host, int port, string username, string password, RemoteCertificateValidationCallback userCertificateValidationCallback, SecurityOptions securityOptions);
what happens if i did not specify userCertificateValidationCallback when init IMAP client? Or using other init function that without this parameter? Is there any default value or behavior for it?



There are multiple constructors of ImapClient class. If you do not want to use RemoteCertificateValidationCallback, please use other constructors of ImapClient class.