Package org.localify.user.support
Class AccountMergeToken
java.lang.Object
org.localify.user.support.AccountMergeToken
Represents a token used to merge two user accounts.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.Creates a new account merge token. -
Method Summary
Modifier and TypeMethodDescriptionGets the authentication token.Gets the creation timestamp of the token.Gets the expiration timestamp of the token.Gets the user to merge from.getId()Gets the ID of the token.Gets the user to merge to.voidsetAuthToken(String authToken) Sets the authentication token.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp of the token.voidsetExpiresAt(Instant expiresAt) Sets the expiration timestamp of the token.voidsetFromUser(User fromUser) Sets the user to merge from.voidSets the ID of the token.voidSets the user to merge to.
-
Constructor Details
-
AccountMergeToken
protected AccountMergeToken()Default constructor. -
AccountMergeToken
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
Gets the ID of the token.- Returns:
- The ID.
-
getFromUser
Gets the user to merge from.- Returns:
- The user to merge from.
-
getToUser
Gets the user to merge to.- Returns:
- The user to merge to.
-
getAuthToken
Gets the authentication token.- Returns:
- The authentication token.
-
getCreatedAt
Gets the creation timestamp of the token.- Returns:
- The creation timestamp.
-
getExpiresAt
Gets the expiration timestamp of the token.- Returns:
- The expiration timestamp.
-
setId
Sets the ID of the token.- Parameters:
id- The ID.
-
setFromUser
Sets the user to merge from.- Parameters:
fromUser- The user to merge from.
-
setToUser
Sets the user to merge to.- Parameters:
toUser- The user to merge to.
-
setAuthToken
Sets the authentication token.- Parameters:
authToken- The authentication token.
-
setCreatedAt
Sets the creation timestamp of the token.- Parameters:
createdAt- The creation timestamp.
-
setExpiresAt
Sets the expiration timestamp of the token.- Parameters:
expiresAt- The expiration timestamp.
-