Class AcmeCertRefresherTask

java.lang.Object
io.micronaut.acme.background.AcmeCertRefresherTask

@Singleton public final class AcmeCertRefresherTask extends Object
Background task to automatically refresh the certificates from an ACME server on a configurable interval.
  • Constructor Details

    • AcmeCertRefresherTask

      public AcmeCertRefresherTask(AcmeService acmeService, AcmeConfiguration acmeConfiguration)
      Constructs a new Acme cert refresher background task.
      Parameters:
      acmeService - Acme service
      acmeConfiguration - Acme configuration
  • Method Details

    • renewCertIfNeeded

      protected void renewCertIfNeeded() throws org.shredzone.acme4j.exception.AcmeException
      Does the work to actually renew the certificate if it needs to be done.
      Throws:
      org.shredzone.acme4j.exception.AcmeException - if any issues occur during certificate renewal