Class ConstructedEmailProvider

java.lang.Object
com.digicert.validation.methods.email.prepare.provider.ConstructedEmailProvider
All Implemented Interfaces:
EmailProvider

public class ConstructedEmailProvider extends Object implements EmailProvider
ConstructedEmailProvider is an implementation of EmailProvider that constructs email addresses that can be used for domain validation.

This class provides a mechanism to generate a set of email addresses based on common administrative prefixes and a given domain.

  • Field Details

    • BASE_EMAIL_ADDRESS_PREFIXES

      private static final List<String> BASE_EMAIL_ADDRESS_PREFIXES
      These prefixes can be used in combination with the FQDN to form email addresses that can be used for domain validation.

      The list of base email address prefixes includes common administrative email addresses, specifically "admin@", "administrator@", "webmaster@", "hostmaster@", and "postmaster@".

  • Constructor Details

    • ConstructedEmailProvider

      public ConstructedEmailProvider()
      The default constructor for the ConstructedEmailProvider class
  • Method Details

    • findEmailsForDomain

      public Set<String> findEmailsForDomain(String domain)
      Returns a set of constructed email addresses that can be used for domain validation. These are prefixed with BASE_EMAIL_ADDRESS_PREFIXES and suffixed with the domain.

      This method generates a set of email addresses by combining each prefix from the BASE_EMAIL_ADDRESS_PREFIXES list with the provided domain.

      Specified by:
      findEmailsForDomain in interface EmailProvider
      Parameters:
      domain - The domain to construct email addresses for.
      Returns:
      A set of constructed email addresses that can be used for domain validation.