docs: @Nullable
      protected Authentication fromCertificate(final Certificate cert) {
          if (cert instanceof X509Certificate) {
              log.debug("Found X509 certificate");
              return new X509CertificateAuthentication((X509Certificate) cert);
          } else {
              log.debug("Unsupported certificate type: {}", cert.getType());
              return null;
          }
      }