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 Details

    • isValid

      private final boolean isValid
      The field for the isValid record component.
    • mpicDetails

      private final MpicDetails mpicDetails
      The field for the mpicDetails record component.
    • domain

      private final String domain
      The field for the domain record component.
    • dnsType

      private final DnsType dnsType
      The field for the dnsType record component.
    • validRandomValue

      private final String validRandomValue
      The field for the validRandomValue record component.
    • validRequestToken

      private final String validRequestToken
      The field for the validRequestToken record component.
    • errors

      private final Set<DcvError> errors
      The field for the errors record 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 a DnsValidationResponse record class.
      Parameters:
      isValid - the value for the isValid record component
      mpicDetails - the value for the mpicDetails record component
      domain - the value for the domain record component
      dnsType - the value for the dnsType record component
      validRandomValue - the value for the validRandomValue record component
      validRequestToken - the value for the validRequestToken record component
      errors - the value for the errors record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • isValid

      public boolean isValid()
      Returns the value of the isValid record component.
      Returns:
      the value of the isValid record component
    • mpicDetails

      public MpicDetails mpicDetails()
      Returns the value of the mpicDetails record component.
      Returns:
      the value of the mpicDetails record component
    • domain

      public String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • dnsType

      public DnsType dnsType()
      Returns the value of the dnsType record component.
      Returns:
      the value of the dnsType record component
    • validRandomValue

      public String validRandomValue()
      Returns the value of the validRandomValue record component.
      Returns:
      the value of the validRandomValue record component
    • validRequestToken

      public String validRequestToken()
      Returns the value of the validRequestToken record component.
      Returns:
      the value of the validRequestToken record component
    • errors

      public Set<DcvError> errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component