Class BasicRandomValueValidator
java.lang.Object
com.digicert.validation.challenges.BasicRandomValueValidator
- All Implemented Interfaces:
RandomValueValidator
A basic implementation of the
RandomValueValidator
interface.
This validator checks if the supplied random value is present in the provided text body.
The BasicRandomValueValidator class provides a straightforward implementation of the RandomValueValidator interface.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for BasicRandomValueValidator. -
Method Summary
Modifier and TypeMethodDescriptionValidates the presence of the random value in the text body.
-
Constructor Details
-
BasicRandomValueValidator
public BasicRandomValueValidator()Default constructor for BasicRandomValueValidator.
-
-
Method Details
-
validate
Validates the presence of the random value in the text body.- Specified by:
validate
in interfaceRandomValueValidator
- Parameters:
randomValue
- the random valuetextBody
- the text body in which to search for the random value- Returns:
- a
ChallengeValidationResponse
containing the validation result
-