Package com.digicert.validation.common
Record Class ValidationState
java.lang.Object
java.lang.Record
com.digicert.validation.common.ValidationState
- Record Components:
domain
- The domain being validated.prepareTime
- The time when the preparation for DCV was done. This is sent back in the validate request to determine validity.dcvMethod
- The dcv method used for domain control validation.
public record ValidationState(String domain, Instant prepareTime, DcvMethod dcvMethod)
extends Record
Represents the state of a domain control validation (DCV) process.
The ValidationState class is a simple data holder that encapsulates the state of a DCV process.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValidationState
(String domain, Instant prepareTime, DcvMethod dcvMethod) Creates an instance of aValidationState
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedcvMethod
record component.domain()
Returns the value of thedomain
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theprepareTime
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
domain
The field for thedomain
record component. -
prepareTime
The field for theprepareTime
record component. -
dcvMethod
The field for thedcvMethod
record component.
-
-
Constructor Details
-
ValidationState
Creates an instance of aValidationState
record class.- Parameters:
domain
- the value for thedomain
record componentprepareTime
- the value for theprepareTime
record componentdcvMethod
- the value for thedcvMethod
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
prepareTime
Returns the value of theprepareTime
record component.- Returns:
- the value of the
prepareTime
record component
-
dcvMethod
Returns the value of thedcvMethod
record component.- Returns:
- the value of the
dcvMethod
record component
-