/** * Update whether or not the terms of service have been agreed to for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param termsOfServiceAgreed the new value for whether or not the terms of service have been agreed to * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, boolean termsOfServiceAgreed) throws AcmeException { updateAccount(account, staging, termsOfServiceAgreed, null); }
/** * Update the contact URLs for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param contactUrls the new account contact URLs * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, String[] contactUrls) throws AcmeException { updateAccount(account, staging, account.isTermsOfServiceAgreed(), contactUrls); }
/** * Update whether or not the terms of service have been agreed to for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param termsOfServiceAgreed the new value for whether or not the terms of service have been agreed to * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, boolean termsOfServiceAgreed) throws AcmeException { updateAccount(account, staging, termsOfServiceAgreed, null); }
/** * Update whether or not the terms of service have been agreed to for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param termsOfServiceAgreed the new value for whether or not the terms of service have been agreed to * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, boolean termsOfServiceAgreed) throws AcmeException { updateAccount(account, staging, termsOfServiceAgreed, null); }
/** * Update whether or not the terms of service have been agreed to for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param termsOfServiceAgreed the new value for whether or not the terms of service have been agreed to * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, boolean termsOfServiceAgreed) throws AcmeException { updateAccount(account, staging, termsOfServiceAgreed, null); }
/** * Update the contact URLs for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param contactUrls the new account contact URLs * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, String[] contactUrls) throws AcmeException { updateAccount(account, staging, account.isTermsOfServiceAgreed(), contactUrls); }
/** * Update the contact URLs for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param contactUrls the new account contact URLs * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, String[] contactUrls) throws AcmeException { updateAccount(account, staging, account.isTermsOfServiceAgreed(), contactUrls); }
/** * Update the contact URLs for an account with an ACME server. * * @param account the ACME account information to use (must not be {@code null}) * @param staging whether or not the staging server URL should be used * @param contactUrls the new account contact URLs * @throws AcmeException if an error occurs while attempting to update the account */ public void updateAccount(AcmeAccount account, boolean staging, String[] contactUrls) throws AcmeException { updateAccount(account, staging, account.isTermsOfServiceAgreed(), contactUrls); }
@Override protected void executeRuntimeStep(final OperationContext context, final ModelNode operation) throws OperationFailedException { Boolean agreeToTermsOfService = UPDATE_AGREE_TO_TERMS_OF_SERVICE.resolveModelAttribute(context, operation).asBooleanOrNull(); boolean staging = STAGING.resolveModelAttribute(context, operation).asBoolean(); AcmeAccount acmeAccount = getAcmeAccount(context, staging); try { if (agreeToTermsOfService != null) { acmeClient.updateAccount(acmeAccount, staging, agreeToTermsOfService.booleanValue(), acmeAccount.getContactUrls()); } else { acmeClient.updateAccount(acmeAccount, staging, acmeAccount.getContactUrls()); } } catch (AcmeException e) { throw ROOT_LOGGER.unableToUpdateAccountWithCertificateAuthority(e, e.getLocalizedMessage()); } } }
acmeClient.updateAccount(acmeAccount, staging, acmeAccount.isTermsOfServiceAgreed(), acmeAccount.getContactUrls());