Class RefreshToken

java.lang.Object
com.bank.auth_service.model.RefreshToken

@Entity public class RefreshToken extends Object
Entity representing a refresh token for user authentication. Stores the token, expiration date, client information, and associated user.
Since:
1.0.0
Version:
1.0.0, 06/23/2025
Author:
Fernando Cruz Cavina
  • Constructor Details

    • RefreshToken

      public RefreshToken(long expirationDate, String ip, String userAgent, User user)
      Constructs a new RefreshToken with the specified expiration, client info, and user.
      Parameters:
      expirationDate - the expiration timestamp
      ip - the IP address of the client
      userAgent - the user agent string of the client
      user - the associated user