import java.util.Collection;
import java.util.Date;
import java.util.Map;
import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.exception.AcmeException;
<BUG>import org.shredzone.acme4j.exception.AcmeServerException;</BUG>
import org.shredzone.acme4j.util.ClaimBuilder;
public interface Connection extends AutoCloseable {
<BUG>int sendRequest(URI uri, Session session) throws AcmeException;

int sendSignedRequest(URI uri, ClaimBuilder claims, Session session) throws AcmeException;

Map<String, Object> readJsonResponse() throws AcmeException;</BUG>
X509Certificate readCertificate() throws AcmeException;

import java.util.Collection;
import java.util.Date;
import java.util.Map;
import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.util.ClaimBuilder;
public interface Connection extends AutoCloseable {
void sendRequest(URI uri, Session session) throws AcmeException;
void sendSignedRequest(URI uri, ClaimBuilder claims, Session session) throws AcmeException;
int accept(int... httpStatus) throws AcmeException;
Map<String, Object> readJsonResponse() throws AcmeException;
X509Certificate readCertificate() throws AcmeException;
