@Test public void loadCert() throws CertificateException, IOException { InputStream res = getClass().getResourceAsStream("/usercert.pem"); List<Certificate> certs = Pkix.getCerts(res); Certificate userCert = certs.iterator().next(); Assert.assertNotNull(userCert); }
public static List<Certificate> getCerts(String certFile) throws IOException, CertificateException { InputStream is = new FileInputStream(new File(certFile)); return getCerts(is); }
Pkix { public static List<Certificate> getCerts(String certFile) throws IOException, CertificateException { InputStream is = new FileInputStream(new File(certFile)); return getCerts(is); } }
Pkix { public static List<Certificate> getCerts(String certFile) throws IOException, CertificateException { InputStream is = new FileInputStream(new File(certFile)); return getCerts(is); }  }
Pkix { public static List<Certificate> getCerts(String certFile) throws IOException, CertificateException { InputStream is = new FileInputStream(new File(certFile)); return getCerts(is); }  static List<Certificate> getCerts(String certFile); static List<Certificate> getCerts(InputStream inputStream); static PrivateKey getPrivateKey(String keyFile, String password); static PrivateKey getPrivateKey(InputStream inputStream, String password); }
Pkix { public static List<Certificate> getCerts(String certFile) throws IOException, CertificateException { InputStream is = new FileInputStream(new File(certFile)); return getCerts(is); }  static List<Certificate> getCerts(String certFile); static List<Certificate> getCerts(InputStream inputStream); static PrivateKey getPrivateKey(String keyFile, String password); static PrivateKey getPrivateKey(InputStream inputStream, String password);  }