Record Class EmailResult
- Record Components:
email- The email address.The `email` parameter represents the email address that is being validated. It is a string that should conform to standard email format rules.
randomValue- The random value that was sent to the email address.The `randomValue` parameter is a string that contains a randomly generated value sent to the email address. This value is used as a verification code to confirm that the email address is valid and accessible by the intended recipient.
dnsRecordName- The DNS record name that was used to retrieve the email address.
The `EmailWithRandomValue` class is a record that encapsulates an email address, a corresponding random value and a DSN record name when applicable. The DNS record name is associated with emails discovered via DNS TXT and CAA lookups. The random value is used in the email validation process in order verify the ownership of an email address.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thednsRecordNamerecord component.private final StringThe field for theemailrecord component.private final StringThe field for therandomValuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEmailResult(String email, String randomValue, String dnsRecordName) Creates an instance of aEmailResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thednsRecordNamerecord component.email()Returns the value of theemailrecord 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 therandomValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
email
The field for theemailrecord component. -
randomValue
The field for therandomValuerecord component. -
dnsRecordName
The field for thednsRecordNamerecord component.
-
-
Constructor Details
-
EmailResult
Creates an instance of aEmailResultrecord class.- Parameters:
email- the value for theemailrecord componentrandomValue- the value for therandomValuerecord componentdnsRecordName- the value for thednsRecordNamerecord 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). -
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
randomValue
Returns the value of therandomValuerecord component.- Returns:
- the value of the
randomValuerecord component
-
dnsRecordName
Returns the value of thednsRecordNamerecord component.- Returns:
- the value of the
dnsRecordNamerecord component
-