예제 #1
0
 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);
 }
예제 #2
0
 public void testEdge() {
   CertificateFactoryStatic stat = edger.edge(CertificateFactoryStatic.class);
   InputStream stream = edger.nee(InputStream.class, ByteArrayInputStream.class, CERT);
   checkEdge(stat, stream);
 }