code: public void checkClientTrusted(X509Certificate[] x509Certificates, String authType)
              throws CertificateException {
          // JGLOBUS-97 : anonymous clients?
          CertPath certPath = CertificateUtil.getCertPath(x509Certificates);
          try {
              this.result = this.validator.engineValidate(certPath, parameters);
          } catch (CertPathValidatorException exception) {
              throw new CertificateException("Path validation failed: " + exception.getMessage(), exception);
          } catch (InvalidAlgorithmParameterException exception) {
              throw new CertificateException("Path validation failed: " + exception.getMessage(), exception);
          }
      }
docs: Test if the client is trusted based on the certificate chain. Does not currently support anonymous clients.
  
  @param x509Certificates The certificate chain to test for validity.
  @param authType         The authentication type based on the client certificate.
  @throws CertificateException If the path validation fails.