Record Class FileValidationResponse
java.lang.Object
java.lang.Record
com.digicert.validation.methods.file.validate.FileValidationResponse
- Record Components:
isValid
- Indicates whether the validation is successful.domain
- The domain associated with the validation.fileUrl
- The URL of the file used for validation.challengeType
- The type of challenge used in the validation (RANDOM_VALUE or REQUEST_TOKEN).validRandomValue
- The valid random value used in the validation (null if not RANDOM_VALUE).validRequestToken
- The valid request token used in the validation (null if not REQUEST_TOKEN).errors
- The errors found during the validation process (null if no errors).
public record FileValidationResponse(boolean isValid, String domain, String fileUrl, ChallengeType challengeType, String validRandomValue, String validRequestToken, Set<DcvError> errors)
extends Record
Represents the response of a file validation process.
This record encapsulates the outcome of a file validation request, including the validation success, domain, file URL, challenge type, and any errors encountered.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChallengeType
The field for thechallengeType
record component.private final String
The field for thedomain
record component.The field for theerrors
record component.private final String
The field for thefileUrl
record component.private final boolean
The field for theisValid
record component.private final String
The field for thevalidRandomValue
record component.private final String
The field for thevalidRequestToken
record component. -
Constructor Summary
ConstructorsConstructorDescriptionFileValidationResponse
(boolean isValid, String domain, String fileUrl, ChallengeType challengeType, String validRandomValue, String validRequestToken, Set<DcvError> errors) Creates an instance of aFileValidationResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechallengeType
record component.domain()
Returns the value of thedomain
record component.final boolean
Indicates whether some other object is "equal to" this one.errors()
Returns the value of theerrors
record component.fileUrl()
Returns the value of thefileUrl
record component.final int
hashCode()
Returns a hash code value for this object.boolean
isValid()
Returns the value of theisValid
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevalidRandomValue
record component.Returns the value of thevalidRequestToken
record component.
-
Field Details
-
isValid
private final boolean isValidThe field for theisValid
record component. -
domain
The field for thedomain
record component. -
fileUrl
The field for thefileUrl
record component. -
challengeType
The field for thechallengeType
record component. -
validRandomValue
The field for thevalidRandomValue
record component. -
validRequestToken
The field for thevalidRequestToken
record component. -
errors
The field for theerrors
record component.
-
-
Constructor Details
-
FileValidationResponse
public FileValidationResponse(boolean isValid, String domain, String fileUrl, ChallengeType challengeType, String validRandomValue, String validRequestToken, Set<DcvError> errors) Creates an instance of aFileValidationResponse
record class.- Parameters:
isValid
- the value for theisValid
record componentdomain
- the value for thedomain
record componentfileUrl
- the value for thefileUrl
record componentchallengeType
- the value for thechallengeType
record componentvalidRandomValue
- the value for thevalidRandomValue
record componentvalidRequestToken
- the value for thevalidRequestToken
record componenterrors
- the value for theerrors
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
isValid
public boolean isValid()Returns the value of theisValid
record component.- Returns:
- the value of the
isValid
record component
-
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
fileUrl
Returns the value of thefileUrl
record component.- Returns:
- the value of the
fileUrl
record component
-
challengeType
Returns the value of thechallengeType
record component.- Returns:
- the value of the
challengeType
record component
-
validRandomValue
Returns the value of thevalidRandomValue
record component.- Returns:
- the value of the
validRandomValue
record component
-
validRequestToken
Returns the value of thevalidRequestToken
record component.- Returns:
- the value of the
validRequestToken
record component
-
errors
Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-