defaultBadCertHandler static method
Default bad certificate handler.
Used to handle bad certificates, if no custom handler is provided.
Implementation
static bool defaultBadCertHandler(X509Certificate cert) {
throw LdapCertificateException(cert);
// normally, method should return false to reject it
}