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).mpicDetails- A summary of the MPIC lookup details.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, MpicDetails mpicDetails, 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 ChallengeTypeThe field for thechallengeTyperecord component.private final StringThe field for thedomainrecord component.The field for theerrorsrecord component.private final StringThe field for thefileUrlrecord component.private final booleanThe field for theisValidrecord component.private final MpicDetailsThe field for thempicDetailsrecord component.private final StringThe field for thevalidRandomValuerecord component.private final StringThe field for thevalidRequestTokenrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFileValidationResponse(boolean isValid, String domain, String fileUrl, ChallengeType challengeType, String validRandomValue, String validRequestToken, MpicDetails mpicDetails, Set<DcvError> errors) Creates an instance of aFileValidationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechallengeTyperecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.fileUrl()Returns the value of thefileUrlrecord component.final inthashCode()Returns a hash code value for this object.booleanisValid()Returns the value of theisValidrecord component.Returns the value of thempicDetailsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidRandomValuerecord component.Returns the value of thevalidRequestTokenrecord component.
-
Field Details
-
isValid
private final boolean isValidThe field for theisValidrecord component. -
domain
The field for thedomainrecord component. -
fileUrl
The field for thefileUrlrecord component. -
challengeType
The field for thechallengeTyperecord component. -
validRandomValue
The field for thevalidRandomValuerecord component. -
validRequestToken
The field for thevalidRequestTokenrecord component. -
mpicDetails
The field for thempicDetailsrecord component. -
errors
The field for theerrorsrecord component.
-
-
Constructor Details
-
FileValidationResponse
public FileValidationResponse(boolean isValid, String domain, String fileUrl, ChallengeType challengeType, String validRandomValue, String validRequestToken, MpicDetails mpicDetails, Set<DcvError> errors) Creates an instance of aFileValidationResponserecord class.- Parameters:
isValid- the value for theisValidrecord componentdomain- the value for thedomainrecord componentfileUrl- the value for thefileUrlrecord componentchallengeType- the value for thechallengeTyperecord componentvalidRandomValue- the value for thevalidRandomValuerecord componentvalidRequestToken- the value for thevalidRequestTokenrecord componentmpicDetails- the value for thempicDetailsrecord componenterrors- the value for theerrorsrecord 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 theisValidrecord component.- Returns:
- the value of the
isValidrecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
fileUrl
Returns the value of thefileUrlrecord component.- Returns:
- the value of the
fileUrlrecord component
-
challengeType
Returns the value of thechallengeTyperecord component.- Returns:
- the value of the
challengeTyperecord component
-
validRandomValue
Returns the value of thevalidRandomValuerecord component.- Returns:
- the value of the
validRandomValuerecord component
-
validRequestToken
Returns the value of thevalidRequestTokenrecord component.- Returns:
- the value of the
validRequestTokenrecord component
-
mpicDetails
Returns the value of thempicDetailsrecord component.- Returns:
- the value of the
mpicDetailsrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-