Class DnsValidationRequest

java.lang.Object
com.digicert.validation.methods.dns.validate.DnsValidationRequest

public class DnsValidationRequest extends Object
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 Details

    • domain

      private final String domain
      The domain to be validated.
    • dnsType

      private final DnsType dnsType
      The type of DNS record to be used for validation.
    • challengeType

      private final ChallengeType challengeType
      The type of challenge to be used for validation.
    • randomValue

      private final String randomValue
      A random value used for validation. Only used for RANDOM_VALUE challenge type.
    • requestTokenData

      private final RequestTokenData requestTokenData
      The request token data to be used for file validation. Only used for REQUEST_TOKEN challenge type.
    • validationState

      private final ValidationState 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.