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 aValidationStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedcvMethodrecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprepareTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
domain
The field for thedomainrecord component. -
prepareTime
The field for theprepareTimerecord component. -
dcvMethod
The field for thedcvMethodrecord component.
-
-
Constructor Details
-
ValidationState
Creates an instance of aValidationStaterecord class.- Parameters:
domain- the value for thedomainrecord componentprepareTime- the value for theprepareTimerecord componentdcvMethod- the value for thedcvMethodrecord 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 thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
prepareTime
Returns the value of theprepareTimerecord component.- Returns:
- the value of the
prepareTimerecord component
-
dcvMethod
Returns the value of thedcvMethodrecord component.- Returns:
- the value of the
dcvMethodrecord component
-