@Singleton
public class AcmeService
extends java.lang.Object
Constructor and Description |
---|
AcmeService(io.micronaut.context.event.ApplicationEventPublisher eventPublisher,
AcmeConfiguration acmeConfiguration,
io.micronaut.core.io.ResourceResolver resourceResolver,
io.micronaut.scheduling.TaskScheduler taskScheduler)
Constructs a new Acme cert service.
|
Modifier and Type | Method and Description |
---|---|
java.security.cert.X509Certificate |
getCurrentCertificate()
Gets the current X509Certificate.
|
void |
orderCertificate(java.util.List<java.lang.String> domains)
Orders a new certificate using ACME protocol.
|
void |
setupCurrentCertificate()
Setup the certificate that has been saved to disk and configures it for use.
|
public AcmeService(io.micronaut.context.event.ApplicationEventPublisher eventPublisher, AcmeConfiguration acmeConfiguration, io.micronaut.core.io.ResourceResolver resourceResolver, @Named(value="scheduled") io.micronaut.scheduling.TaskScheduler taskScheduler)
eventPublisher
- Application Event PublisherresourceResolver
- Resource resolver for finding keys from classpath or diskacmeConfiguration
- Acme ConfigurationtaskScheduler
- Task scheduler for enabling background polling of the certificate refreshespublic java.security.cert.X509Certificate getCurrentCertificate()
public void orderCertificate(java.util.List<java.lang.String> domains) throws org.shredzone.acme4j.exception.AcmeException
domains
- List of domains to order a certificate fororg.shredzone.acme4j.exception.AcmeException
- if any issues occur during ordering of certificatepublic void setupCurrentCertificate()