Class DnsAccount01Challenge

All Implemented Interfaces:
Serializable, PollableResource

Implements the "dns-account-01" challenge. It requires a specific DNS record for domain validation. See the acme4j documentation for a detailed explanation.
Since:
4.0.0
See Also:
Draft:
This class is currently based on an RFC draft. It may be changed or removed without notice to reflect future changes to the draft. SemVer rules do not apply here.
  • Field Details

  • Constructor Details

  • Method Details

    • getRRName

      public String getRRName(Identifier identifier)
      Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.
      Parameters:
      identifier - Identifier to be validated
      Returns:
      Resource Record name (e.g. _ujmmovf2vn55tgye._acme-challenge.example.org., note the trailing full stop character).
    • getRRName

      public String getRRName(String domain)
      Converts a domain identifier to the Resource Record name to be used for the DNS TXT record.
      Parameters:
      domain - Domain name to be validated
      Returns:
      Resource Record name (e.g. _ujmmovf2vn55tgye._acme-challenge.example.org., note the trailing full stop character).
    • getDigest

      public String getDigest()
      Returns the digest string to be set in the domain's TXT record.
    • acceptable

      protected boolean acceptable(String type)
      Description copied from class: Challenge
      Checks if the type is acceptable to this challenge. This generic class only checks if the type is not blank. Subclasses should instead check if the given type matches expected challenge type.
      Overrides:
      acceptable in class Challenge
      Parameters:
      type - Type to check
      Returns:
      true if acceptable, false if not