Class DnsValidationRequest
java.lang.Object
com.digicert.validation.methods.dns.validate.DnsValidationRequest
Represents a DNS validation request.
This class is used to create a request for validating a domain using DNS. It encapsulates all the necessary information required to perform DNS validation, including the domain name, the type of DNS record, the type of challenge used for validation, and the current state of the validation process. This class is immutable and uses the builder pattern.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChallengeTypeThe type of challenge to be used for validation.private final DnsTypeThe type of DNS record to be used for validation.private final StringThe domain to be validated.private final StringA random value used for validation.private final RequestTokenDataThe request token data to be used for file validation.private final ValidationStateThe current state of the validation process. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDnsValidationRequest(String domain, DnsType dnsType, ChallengeType challengeType, String randomValue, RequestTokenData requestTokenData, ValidationState validationState) Private constructor to prevent instantiation without using the builder. -
Method Summary
-
Field Details
-
domain
The domain to be validated. -
dnsType
The type of DNS record to be used for validation. -
challengeType
The type of challenge to be used for validation. -
randomValue
A random value used for validation. Only used for RANDOM_VALUE challenge type. -
requestTokenData
The request token data to be used for file validation. Only used for REQUEST_TOKEN challenge type. -
validationState
The current state of the validation process.
-
-
Constructor Details
-
DnsValidationRequest
private DnsValidationRequest(String domain, DnsType dnsType, ChallengeType challengeType, String randomValue, RequestTokenData requestTokenData, ValidationState validationState) Private constructor to prevent instantiation without using the builder.- Parameters:
domain- The domain to be validated.dnsType- The type of DNS record to be used for validation.challengeType- The type of challenge to be used for validation.randomValue- A random value used for validation.requestTokenData- The data necessary to validate request tokens.validationState- The current validation state.
-