@Test public void test_verifySignedCertificateTimestamps_withEmbeddedExtension() throws Exception { OpenSSLX509Certificate[] chain = new OpenSSLX509Certificate[] { certEmbedded, ca }; CTVerificationResult result = ctVerifier.verifySignedCertificateTimestamps(chain, null, null); assertEquals(1, result.getValidSCTs().size()); assertEquals(0, result.getInvalidSCTs().size()); }
public CTVerificationResult verifySignedCertificateTimestamps(List<X509Certificate> chain, byte[] tlsData, byte[] ocspData) throws CertificateEncodingException { OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[chain.size()]; int i = 0; for(X509Certificate cert : chain) { certs[i++] = OpenSSLX509Certificate.fromCertificate(cert); } return verifySignedCertificateTimestamps(certs, tlsData, ocspData); }
CTVerifier { public CTVerificationResult verifySignedCertificateTimestamps(List<X509Certificate> chain, byte[] tlsData, byte[] ocspData) throws CertificateEncodingException { OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[chain.size()]; int i = 0; for(X509Certificate cert : chain) { certs[i++] = OpenSSLX509Certificate.fromCertificate(cert); } return verifySignedCertificateTimestamps(certs, tlsData, ocspData); } }
CTVerifier { public CTVerificationResult verifySignedCertificateTimestamps(List<X509Certificate> chain, byte[] tlsData, byte[] ocspData) throws CertificateEncodingException { OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[chain.size()]; int i = 0; for(X509Certificate cert : chain) { certs[i++] = OpenSSLX509Certificate.fromCertificate(cert); } return verifySignedCertificateTimestamps(certs, tlsData, ocspData); } CTVerifier(CTLogStore store); }
CTVerifier { public CTVerificationResult verifySignedCertificateTimestamps(List<X509Certificate> chain, byte[] tlsData, byte[] ocspData) throws CertificateEncodingException { OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[chain.size()]; int i = 0; for(X509Certificate cert : chain) { certs[i++] = OpenSSLX509Certificate.fromCertificate(cert); } return verifySignedCertificateTimestamps(certs, tlsData, ocspData); } CTVerifier(CTLogStore store); CTVerificationResult verifySignedCertificateTimestamps(List<X509Certificate> chain,
            byte[] tlsData, byte[] ocspData); CTVerificationResult verifySignedCertificateTimestamps(OpenSSLX509Certificate[] chain,
            byte[] tlsData, byte[] ocspData); }
CTVerifier { public CTVerificationResult verifySignedCertificateTimestamps(List<X509Certificate> chain, byte[] tlsData, byte[] ocspData) throws CertificateEncodingException { OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[chain.size()]; int i = 0; for(X509Certificate cert : chain) { certs[i++] = OpenSSLX509Certificate.fromCertificate(cert); } return verifySignedCertificateTimestamps(certs, tlsData, ocspData); } CTVerifier(CTLogStore store); CTVerificationResult verifySignedCertificateTimestamps(List<X509Certificate> chain,
            byte[] tlsData, byte[] ocspData); CTVerificationResult verifySignedCertificateTimestamps(OpenSSLX509Certificate[] chain,
            byte[] tlsData, byte[] ocspData);  }