Class FileValidationRequest
java.lang.Object
com.digicert.validation.methods.file.validate.FileValidationRequest
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final ChallengeType
The type of challenge used for file validation.private final String
The domain for which the file validation is being requested.private final String
Optional: The filename to be used for file validation.private final String
The random value to be used for file validation.private final RequestTokenData
The request token data to be used for file validation.private final ValidationState
The validation state of the file validation request. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FileValidationRequest
(String domain, String filename, ChallengeType challengeType, String randomValue, RequestTokenData requestTokenData, ValidationState validationState) Private constructor to prevent instantiation without using the builder. -
Method Summary
-
Field Details
-
domain
The domain for which the file validation is being requested. -
filename
Optional: The filename to be used for file validation. -
challengeType
The type of challenge used for file validation. -
randomValue
The random value to be used for file 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 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.
-