All Known Subinterfaces:
WhoisEmailProvider
All Known Implementing Classes:
ConstructedEmailProvider, DnsTxtEmailProvider, NoopWhoisEmailProvider

public interface EmailProvider
EmailProvider is an interface for classes that provide email contacts for domain validation.

This interface defines the contract for any class that aims to retrieve email contacts associated with a specific domain. Implementations of this interface are expected to provide the logic for querying and extracting email addresses from various sources, such as DNS TXT records, databases, or other external services.

  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves email contacts for the given domain.
  • Method Details

    • findEmailsForDomain

      Set<String> findEmailsForDomain(String domain) throws PreparationException
      Retrieves email contacts for the given domain.

      This method is responsible for obtaining a set of email addresses associated with the specified domain. The implementation should ensure that the email addresses returned are valid and relevant for the domain validation process.

      Parameters:
      domain - the domain to retrieve email contacts for
      Returns:
      a set of email contacts for the domain
      Throws:
      PreparationException - if an error occurs while retrieving email contacts for the domain