docs: public static JARVerifier create(String keystore, String alias, char[] passwd) throws IOException, KeyStoreException,
              NoSuchAlgorithmException,
              CertificateException {
          KeyStore keyStore = KeyStore.getInstance("JKS");
          FileInputStream fileIn=null;
          try {
              fileIn = new FileInputStream(keystore);
              keyStore.load(fileIn, passwd);
          } finally {
              if(null!= fileIn){
                  fileIn.close();
              }
          }
          Certificate[] chain = keyStore.getCertificateChain(alias);
          if (chain == null) {
              Certificate cert = keyStore.getCertificate(alias);
              if (cert == null) {
                  throw new IllegalArgumentException("No trusted certificate or chain found for alias: " + alias);
              }
              chain = new Certificate[]{cert};
  
          }
          X509Certificate certChain[] = new X509Certificate[chain.length];
  
  
          CertificateFactory cf = CertificateFactory.getInstance("X.509");
          for (int count = 0; count < chain.length; count++) {
              ByteArrayInputStream certIn = new ByteArrayInputStream(chain[count].getEncoded());
              X509Certificate cert = (X509Certificate) cf.generateCertificate(certIn);
              certChain[count] = cert;
          }
  
          JARVerifier jarVerifier = new JARVerifier(certChain);
          return jarVerifier;
      }