Class AccountMergeToken

java.lang.Object
org.localify.user.support.AccountMergeToken

@Entity public class AccountMergeToken extends Object
Represents a token used to merge two user accounts.
  • Constructor Details

    • AccountMergeToken

      protected AccountMergeToken()
      Default constructor.
    • AccountMergeToken

      public AccountMergeToken(UUID id, User fromUser, User toUser, String authToken, Instant expiresAt)
      Creates a new account merge token.
      Parameters:
      id - The ID of the token.
      fromUser - The user to merge from.
      toUser - The user to merge to.
      authToken - The authentication token.
      expiresAt - The expiration timestamp of the token.
  • Method Details

    • getId

      public UUID getId()
      Gets the ID of the token.
      Returns:
      The ID.
    • getFromUser

      public User getFromUser()
      Gets the user to merge from.
      Returns:
      The user to merge from.
    • getToUser

      public User getToUser()
      Gets the user to merge to.
      Returns:
      The user to merge to.
    • getAuthToken

      public String getAuthToken()
      Gets the authentication token.
      Returns:
      The authentication token.
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp of the token.
      Returns:
      The creation timestamp.
    • getExpiresAt

      public Instant getExpiresAt()
      Gets the expiration timestamp of the token.
      Returns:
      The expiration timestamp.
    • setId

      public void setId(UUID id)
      Sets the ID of the token.
      Parameters:
      id - The ID.
    • setFromUser

      public void setFromUser(User fromUser)
      Sets the user to merge from.
      Parameters:
      fromUser - The user to merge from.
    • setToUser

      public void setToUser(User toUser)
      Sets the user to merge to.
      Parameters:
      toUser - The user to merge to.
    • setAuthToken

      public void setAuthToken(String authToken)
      Sets the authentication token.
      Parameters:
      authToken - The authentication token.
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
      Sets the creation timestamp of the token.
      Parameters:
      createdAt - The creation timestamp.
    • setExpiresAt

      public void setExpiresAt(Instant expiresAt)
      Sets the expiration timestamp of the token.
      Parameters:
      expiresAt - The expiration timestamp.