Package io.micronaut.acme.background
Class AcmeCertRefresherTask
java.lang.Object
io.micronaut.acme.background.AcmeCertRefresherTask
Background task to automatically refresh the certificates from an ACME server on a configurable interval.
-
Constructor Summary
ConstructorDescriptionAcmeCertRefresherTask
(AcmeService acmeService, AcmeConfiguration acmeConfiguration) Constructs a new Acme cert refresher background task. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Does the work to actually renew the certificate if it needs to be done.
-
Constructor Details
-
AcmeCertRefresherTask
Constructs a new Acme cert refresher background task.- Parameters:
acmeService
- Acme serviceacmeConfiguration
- Acme configuration
-
-
Method Details
-
renewCertIfNeeded
protected void renewCertIfNeeded() throws org.shredzone.acme4j.exception.AcmeExceptionDoes 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
-