Class Dns01Challenge

All Implemented Interfaces:
Serializable

public class Dns01Challenge extends TokenChallenge
Implements the "dns-01" challenge. It requires a specific DNS record for domain validation. See the acme4j documentation for a detailed explanation.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • toRRName

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

      public static String toRRName(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. _acme-challenge.www.example.org., note the trailing full stop character).
      Since:
      2.14
    • getDigest

      public String getDigest()
      Returns the digest string to be set in the domain's _acme-challenge 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