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 ChallengeType
The type of challenge to be used for validation.private final DnsType
The type of DNS record to be used for validation.private final String
The domain to be validated.private final String
A random value used for validation.private final RequestTokenData
The request token data to be used for file validation.private final ValidationState
The current state of the validation process. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DnsValidationRequest
(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.
-