Record Class DnsValidationResponse
java.lang.Object
java.lang.Record
com.digicert.validation.methods.dns.validate.DnsValidationResponse
- Record Components:
isValid- Indicates whether the validation is successful.mpicDetails- The details of the MPIC (Multi-Purpose Internet Certificate) used in the validation.domain- The domain associated with the validation.dnsType- The type of DNS used in the validation.validRandomValue- The valid random value used in the validation.validRequestToken- The valid request token found in the validation.errors- The list of errors that occurred during the validation.
public record DnsValidationResponse(boolean isValid, MpicDetails mpicDetails, String domain, DnsType dnsType, String validRandomValue, String validRequestToken, Set<DcvError> errors)
extends Record
Represents the response of a DNS validation process.
This record encapsulates the results of a DNS validation request. It includes details such as whether the validation was successful, the DNS server used, the domain and DNS type involved, the valid random value or request token used, and any errors that occurred during the validation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DnsTypeThe field for thednsTyperecord component.private final StringThe field for thedomainrecord component.The field for theerrorsrecord 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
ConstructorsConstructorDescriptionDnsValidationResponse(boolean isValid, MpicDetails mpicDetails, String domain, DnsType dnsType, String validRandomValue, String validRequestToken, Set<DcvError> errors) Creates an instance of aDnsValidationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondnsType()Returns the value of thednsTyperecord 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.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. -
mpicDetails
The field for thempicDetailsrecord component. -
domain
The field for thedomainrecord component. -
dnsType
The field for thednsTyperecord component. -
validRandomValue
The field for thevalidRandomValuerecord component. -
validRequestToken
The field for thevalidRequestTokenrecord component. -
errors
The field for theerrorsrecord component.
-
-
Constructor Details
-
DnsValidationResponse
public DnsValidationResponse(boolean isValid, MpicDetails mpicDetails, String domain, DnsType dnsType, String validRandomValue, String validRequestToken, Set<DcvError> errors) Creates an instance of aDnsValidationResponserecord class.- Parameters:
isValid- the value for theisValidrecord componentmpicDetails- the value for thempicDetailsrecord componentdomain- the value for thedomainrecord componentdnsType- the value for thednsTyperecord componentvalidRandomValue- the value for thevalidRandomValuerecord componentvalidRequestToken- the value for thevalidRequestTokenrecord 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
-
mpicDetails
Returns the value of thempicDetailsrecord component.- Returns:
- the value of the
mpicDetailsrecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
dnsType
Returns the value of thednsTyperecord component.- Returns:
- the value of the
dnsTyperecord 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
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-