Package com.bank.auth_service.model
Class RefreshToken
java.lang.Object
com.bank.auth_service.model.RefreshToken
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 Summary
ConstructorsConstructorDescriptionRefreshToken
(long expirationDate, String ip, String userAgent, User user) Constructs a new RefreshToken with the specified expiration, client info, and user. -
Method Summary
-
Constructor Details
-
RefreshToken
Constructs a new RefreshToken with the specified expiration, client info, and user.- Parameters:
expirationDate
- the expiration timestampip
- the IP address of the clientuserAgent
- the user agent string of the clientuser
- the associated user
-