Class ConstructedEmailProvider
java.lang.Object
com.digicert.validation.methods.email.prepare.provider.ConstructedEmailProvider
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionThese prefixes can be used in combination with the FQDN to form email addresses that can be used for domain validation. -
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor for the ConstructedEmailProvider class -
Method Summary
Modifier and TypeMethodDescriptionfindEmailsForDomain
(String domain) Returns a set of constructed email addresses that can be used for domain validation.
-
Field Details
-
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
Returns a set of constructed email addresses that can be used for domain validation. These are prefixed withBASE_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 interfaceEmailProvider
- Parameters:
domain
- The domain to construct email addresses for.- Returns:
- A set of constructed email addresses that can be used for domain validation.
-