public void checkServerTrusted(X509Certificate[] chain, String authType)
     throws CertificateException {
   checkCertTrusted(chain, authType, true, true);
 }
 public void checkClientTrusted(X509Certificate[] chain, String authType)
     throws CertificateException {
   checkCertTrusted(chain, authType, false);
 }