@Test public void shouldRecognizePrematureCert() throws CapManUtilException, InvalidKeySpecException { Assert.assertTrue(qXR(bef(2040, 1, 1), aft(2048, 1, 1)).isPremature(null)); Assert.assertFalse(qXR(bef(2012, 5, 21), aft(2048, 1, 1)).isPremature(null)); Assert.assertFalse(qXR(bef(2005, 1, 1), aft(2006, 1, 1)).isPremature(null)); Assert.assertTrue(qXR(bef(2012, 1, 1), aft(2013, 1, 1)).isPremature(now(2011, 12, 31))); Assert.assertFalse(qXR(bef(2012, 1, 1), aft(2013, 1, 1)).isPremature(now(2012, 1, 1))); Assert.assertFalse(qXR(bef(2012, 1, 1), aft(2013, 1, 1)).isPremature(now(2012, 5, 28))); Assert.assertFalse(qXR(bef(2012, 1, 1), aft(2013, 1, 1)).isPremature(now(2013, 1, 1))); Assert.assertFalse(qXR(bef(2012, 1, 1), aft(2013, 1, 1)).isPremature(now(2013, 6, 28))); Assert.assertFalse(qXR(bef(2012, 1, 1), aft(2013, 1, 1)).isPremature(now(2014, 6, 28))); }
public boolean isPremature() throws NotAnX509CertificateException { return isPremature(null); }
X509Inspector { public boolean isPremature() throws NotAnX509CertificateException { return isPremature(null); } }
X509Inspector { public boolean isPremature() throws NotAnX509CertificateException { return isPremature(null); } X509Inspector(X509CertificateHolder x509holder);  X509Inspector(X509Certificate x509); @Deprecated  X509Inspector(X509CertificateObject x509obj); }
X509Inspector { public boolean isPremature() throws NotAnX509CertificateException { return isPremature(null); } X509Inspector(X509CertificateHolder x509holder);  X509Inspector(X509Certificate x509); @Deprecated  X509Inspector(X509CertificateObject x509obj); X509CertificateHolder getX509CertificateHolder(); static X509Inspector newX509Inspector(X509CertificateHolder xh); static X509Inspector newX509Inspector(String x509PemString); static X509Inspector newX509Inspector(X509Certificate x509Cert); String getIssuerCN(); String getSubjectCN(); URI getOCSPUri(); URI getOCSPCaUri(); String getIssuerName(); String getSubjectName(); X509Certificate getX509Certificate(); BigInteger getPubModulus(); int getPubModulusSize(); BigInteger getSerial(); String getSubjKeyId(); String getAuthKeyId(); BigInteger getAuthKeyIdSerial(); List<String> getAuthKeyIdDirname(); PublicKey getPublicKey(); Calendar getNotBefore(); Calendar getNotAfter(); boolean isExpired(); boolean isPremature(); boolean isExpired(Date date); boolean isPremature(Date date); boolean isDateValid(); boolean isDateValid(Date date); @Deprecated X509CertificateObject getX509CertificateObject(); }
X509Inspector { public boolean isPremature() throws NotAnX509CertificateException { return isPremature(null); } X509Inspector(X509CertificateHolder x509holder);  X509Inspector(X509Certificate x509); @Deprecated  X509Inspector(X509CertificateObject x509obj); X509CertificateHolder getX509CertificateHolder(); static X509Inspector newX509Inspector(X509CertificateHolder xh); static X509Inspector newX509Inspector(String x509PemString); static X509Inspector newX509Inspector(X509Certificate x509Cert); String getIssuerCN(); String getSubjectCN(); URI getOCSPUri(); URI getOCSPCaUri(); String getIssuerName(); String getSubjectName(); X509Certificate getX509Certificate(); BigInteger getPubModulus(); int getPubModulusSize(); BigInteger getSerial(); String getSubjKeyId(); String getAuthKeyId(); BigInteger getAuthKeyIdSerial(); List<String> getAuthKeyIdDirname(); PublicKey getPublicKey(); Calendar getNotBefore(); Calendar getNotAfter(); boolean isExpired(); boolean isPremature(); boolean isExpired(Date date); boolean isPremature(Date date); boolean isDateValid(); boolean isDateValid(Date date); @Deprecated X509CertificateObject getX509CertificateObject();  }