Package io.micronaut.acme.challenge.dns
Interface DnsChallengeSolver
@DefaultImplementation(io.micronaut.acme.challenge.dns.RenderedTextDnsChallengeSolver.class)
public interface DnsChallengeSolver
Represents a solver for the DNS challenge that can create and destroy
DNS records.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createRecord
(String domain, String digest) Creates the TXT record for `_acme-challenge.domain` with a value of digest to verify the domain.void
destroyRecord
(String domain) Remove the TXT record previously created for the challenge.
-
Method Details
-
createRecord
Creates the TXT record for `_acme-challenge.domain` with a value of digest to verify the domain.This method should block and only return once the TXT record has been created, however `pause` setting can also be used to provide time for propagation.
- Parameters:
domain
- The domain to create the record for, excluding the `_acme-challenge` keydigest
- The value to set the TXT record to for the challenge to succeed
-
destroyRecord
Remove the TXT record previously created for the challenge.This method is called even if the challenge failed, so it is possible the record may not exist.
- Parameters:
domain
- The domain to remove the record for, excluding the `_acme-challenge` key
-