Package org.localify.auth.dto.web
Record Class UserEmailTokenLoginRequest
java.lang.Object
java.lang.Record
org.localify.auth.dto.web.UserEmailTokenLoginRequest
- Record Components:
nonce- The nonce from the initial email token request.code- The code sent to the user's email.
public record UserEmailTokenLoginRequest(@NotNull @Valid UUID nonce, @NotBlank String code)
extends Record
Represents a request to log in with an email token.
-
Constructor Summary
ConstructorsConstructorDescriptionUserEmailTokenLoginRequest(@NotNull @Valid UUID nonce, @NotBlank String code) Creates an instance of aUserEmailTokenLoginRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank Stringcode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull @Valid UUIDnonce()Returns the value of thenoncerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
nonce
Returns the value of thenoncerecord component.- Returns:
- the value of the
noncerecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-