Package com.digicert.validation.utils
Class StateValidationUtils
java.lang.Object
com.digicert.validation.utils.StateValidationUtils
Utility class for validating the state of a validation process.
The StateValidationUtils class provides a set of static methods to ensure that the validation state of a process is correctly configured. This utility class is designed to be used throughout the application to perform consistent and reliable checks on the validation state, ensuring that all required fields are present and correctly set.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Private constructor to prevent instantiation. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
verifyValidationState
(ValidationState validationState, DcvMethod expectedMethod) Verifies the given validation state.
-
Constructor Details
-
StateValidationUtils
private StateValidationUtils()Private constructor to prevent instantiation.
-
-
Method Details
-
verifyValidationState
public static void verifyValidationState(ValidationState validationState, DcvMethod expectedMethod) throws DcvException Verifies the given validation state.This method performs a series of checks on the provided ValidationState object to ensure that it is valid. It verifies that the validation state is not null and that all required fields (domain, dcvMethod, and prepareTime) are present and not null.
- Parameters:
validationState
- the validation state to verifyexpectedMethod
- the expected DcvMethod for the validation state- Throws:
DcvException
- if the validation state is invalid
-