@Override
    @SuppressWarnings({"JdkObsolete", "JavaUtilDate"})  // Needed for API compatibility
    public void checkValidity() throws CertificateExpiredException,
            CertificateNotYetValidException {
        checkValidity(new Date());
    }
An implementation of {@link X509Certificate} based on BoringSSL.
common/src/main/java/org/conscrypt/OpenSSLX509Certificate.java