/** * Gets the {@link Session} this resource is bound with. */ protected Session getSession() { return getLogin().getSession(); }
/** * Gets the {@link Session} this resource is bound with. */ protected Session getSession() { return getLogin().getSession(); }
@Override public int sendCertificateRequest(URL url, Login login) throws AcmeException { return sendSignedRequest(url, null, login.getSession(), login.getKeyPair(), login.getAccountLocation(), MIME_CERTIFICATE_CHAIN); }
@Override public int sendSignedRequest(URL url, JSONBuilder claims, Login login) throws AcmeException { return sendSignedRequest(url, claims, login.getSession(), login.getKeyPair(), login.getAccountLocation(), MIME_JSON); }
@Override public int sendCertificateRequest(URL url, Login login) throws AcmeException { return sendSignedRequest(url, null, login.getSession(), login.getKeyPair(), login.getAccountLocation(), MIME_CERTIFICATE_CHAIN); }
@Override public int sendSignedRequest(URL url, JSONBuilder claims, Login login) throws AcmeException { return sendSignedRequest(url, claims, login.getSession(), login.getKeyPair(), login.getAccountLocation(), MIME_JSON); }
/** * Reads the next batch of URLs from the server, and fills the queue with the URLs. If * there is a "next" header, it is used for the next batch of URLs. */ private void readAndQueue() throws AcmeException { Session session = login.getSession(); try (Connection conn = session.connect()) { conn.sendSignedPostAsGetRequest(nextUrl, login); JSON json = conn.readJsonResponse(); if (json != null) { fillUrlList(json); } nextUrl = conn.getLinks("next").stream().findFirst().orElse(null); } }
/** * Reads the next batch of URLs from the server, and fills the queue with the URLs. If * there is a "next" header, it is used for the next batch of URLs. */ private void readAndQueue() throws AcmeException { Session session = login.getSession(); try (Connection conn = session.connect()) { conn.sendSignedPostAsGetRequest(nextUrl, login); JSON json = conn.readJsonResponse(); if (json != null) { fillUrlList(json); } nextUrl = conn.getLinks("next").stream().findFirst().orElse(null); } }
@Override public int sendSignedPostAsGetRequest(URL url, Login login) throws AcmeException { return sendSignedRequest(url, null, login.getSession(), login.getKeyPair(), login.getAccountLocation(), MIME_JSON); }
@Override public int sendSignedPostAsGetRequest(URL url, Login login) throws AcmeException { return sendSignedRequest(url, null, login.getSession(), login.getKeyPair(), login.getAccountLocation(), MIME_JSON); }
LOG.debug("revoke"); Session session = login.getSession();
LOG.debug("revoke"); Session session = login.getSession();
Session session = login.getSession();
Session session = login.getSession();