Package com.nicholasalfonso.lato.entity
Class RefreshToken
java.lang.Object
com.nicholasalfonso.lato.entity.RefreshToken
JPA entity representing a JWT refresh token.
Stores refresh tokens for user authentication with expiration tracking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the expiration date and time.getToken()Gets the token string.getUser()Gets the user this token belongs to.voidsetExpiryDate(Instant expiryDate) Sets the expiration date and time.voidSets the token string.voidSets the user this token belongs to.
-
Constructor Details
-
RefreshToken
public RefreshToken()
-
-
Method Details
-
getToken
Gets the token string.- Returns:
- the token
-
setToken
Sets the token string.- Parameters:
token- the token
-
getExpiryDate
Gets the expiration date and time.- Returns:
- the expiration date
-
setExpiryDate
Sets the expiration date and time.- Parameters:
expiryDate- the expiration date
-
getUser
Gets the user this token belongs to.- Returns:
- the user
-
setUser
Sets the user this token belongs to.- Parameters:
user- the user
-