Record Class EmailLinkRequested
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.application.ott.EmailLinkRequested
- Record Components:
address- the verified e-mail address.link- the link that opens the confirmation page.validFor- how long the link stays valid, shown to the user.
Event published when a magic link must be e-mailed. Like
EmailCodeRequested, it is delivered after the
transaction commits, outside of it and off the request thread.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmailLinkRequested(String address, URI link, Duration validFor) Validates the event. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.link()Returns the value of thelinkrecord component.toString()Describes the event without the address and the link, so neither ever reaches a log.validFor()Returns the value of thevalidForrecord component.
-
Field Details
-
Constructor Details
-
EmailLinkRequested
Validates the event.- Throws:
IllegalArgumentException- if a value is missing or the address is blank.
-
-
Method Details
-
toString
Describes the event without the address and the link, so neither ever reaches a log. -
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). -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-
validFor
Returns the value of thevalidForrecord component.- Returns:
- the value of the
validForrecord component
-