Class FileValidationRequest

java.lang.Object
com.digicert.validation.methods.file.validate.FileValidationRequest

public class FileValidationRequest extends Object
Represents a request for file-based authentication validation.

This class contains information about the domain, filename, challenge type, random value, token key, token value, and validation state. It is used to encapsulate all the necessary details required to perform a file-based domain control validation (DCV) request.

  • Field Details

    • domain

      private final String domain
      The domain for which the file validation is being requested.
    • filename

      private final String filename
      Optional: The filename to be used for file validation.
    • challengeType

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

      private final String randomValue
      The random value to be used for file 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 validation state of the file validation request.
  • Constructor Details

    • FileValidationRequest

      private FileValidationRequest(String domain, String filename, ChallengeType challengeType, String randomValue, RequestTokenData requestTokenData, ValidationState validationState)
      Private constructor to prevent instantiation without using the builder. Constructs a new FileValidationRequest with the specified parameters.
      Parameters:
      domain - The domain for which the file validation is being requested.
      filename - The filename to check for.
      challengeType - The type of challenge (random value or request token).
      randomValue - The random value to be used for file validation.
      requestTokenData - The data necessary to validate request tokens.
      validationState - The validation state of the file validation request.