if (cert == null) {
return WGDatabase.ACCESSLEVEL_NOTLOGGEDIN;
}
CertAuthCapableAuthModule auth = (CertAuthCapableAuthModule) getAuthenticationModule();
X509Certificate caCert = auth.getCA();
X509CRL crl = auth.getCRL();
// verify if clientCert is issued by given dbCA
if (!CertificateValidationUtils.verify(cert, caCert)) {
String message = "Failed login for '" + cert.getSubjectDN().getName() + "': Certificate was signed by another CA (Certificate authentication)";
WGFactory.getLogger().warn(message);