/** * Creates a new account. * * @param session * {@link Session} to be used for registration * @return {@link Account} referring to the new account */ public Account create(Session session) throws AcmeException { return createLogin(session).getAccount(); }
/** * Creates a new account. * * @param session * {@link Session} to be used for registration * @return {@link Account} referring to the new account */ public Account create(Session session) throws AcmeException { return createLogin(session).getAccount(); }
/** * @return The list of challenges with tokens to create webpages for that remote end will call to verify we own the domain */ public CompletableFuture<ProxyOrder> placeOrder(URL accountUrl, KeyPair accountKeyPair) { try { log.info("reestablish account from location="+accountUrl+" and keypair"); Session session = new Session("acme://letsencrypt.org/staging"); Login login = session.login(accountUrl, accountKeyPair); Account account = login.getAccount(); log.info("create an order"); String domainTemp = "something.com"; Order order = account.newOrder() .domain(domainTemp) .create(); checkAuthStatii(order); List<ProxyAuthorization> auths = new ArrayList<>(); for(Authorization auth : order.getAuthorizations()) auths.add(new ProxyAuthorization(auth)); return CompletableFuture.completedFuture(new ProxyOrder(order, auths)); } catch (AcmeException e) { throw new RuntimeException(e); } }
JSON json = conn.readJsonResponse(); if (json != null) { login.getAccount().setJSON(json);
JSON json = conn.readJsonResponse(); if (json != null) { login.getAccount().setJSON(json);