Class Http01Challenge

All Implemented Interfaces:
Serializable

public class Http01Challenge extends TokenChallenge
Implements the "http-01" challenge. For domain validation, it requires a specific file that can be retrieved from the domain via HTTP. See the acme4j documentation for a detailed explanation.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getToken

      public String getToken()
      Returns the token to be used for this challenge.
      Overrides:
      getToken in class TokenChallenge
    • 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