Class RefreshToken

java.lang.Object
com.nicholasalfonso.lato.entity.RefreshToken

@Entity public class RefreshToken extends Object
JPA entity representing a JWT refresh token. Stores refresh tokens for user authentication with expiration tracking.
  • Constructor Details

    • RefreshToken

      public RefreshToken()
  • Method Details

    • getToken

      public String getToken()
      Gets the token string.
      Returns:
      the token
    • setToken

      public void setToken(String token)
      Sets the token string.
      Parameters:
      token - the token
    • getExpiryDate

      public Instant getExpiryDate()
      Gets the expiration date and time.
      Returns:
      the expiration date
    • setExpiryDate

      public void setExpiryDate(Instant expiryDate)
      Sets the expiration date and time.
      Parameters:
      expiryDate - the expiration date
    • getUser

      public User getUser()
      Gets the user this token belongs to.
      Returns:
      the user
    • setUser

      public void setUser(User user)
      Sets the user this token belongs to.
      Parameters:
      user - the user