private void checkEdge(CertificateFactoryStatic stat, InputStream stream) { CertificateFactory factory = stat.getInstance("X.509"); Certificate certificate = factory.generateCertificate(stream); X509Certificate x509 = edger.cast(X509Certificate.class, certificate); Date notAfter = x509.getNotAfter(); long time = notAfter.getTime(); assertEquals(991468533000L, time); }
public void testEdge() { CertificateFactoryStatic stat = edger.edge(CertificateFactoryStatic.class); InputStream stream = edger.nee(InputStream.class, ByteArrayInputStream.class, CERT); checkEdge(stat, stream); }