Package org.localify.auth.dto.web
Class AuthCredentials
java.lang.Object
org.localify.auth.dto.web.AuthCredentials
- All Implemented Interfaces:
Serializable
Represents the authentication credentials for a user.
This includes the access token, refresh token, and expiration time.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the expiration time in seconds.Gets the refresh token.getToken()Gets the access token.setExpiresIn(Long expiresIn) Sets the expiration time in seconds.setRefreshToken(String refreshToken) Sets the refresh token.Sets the access token.
-
Constructor Details
-
AuthCredentials
public AuthCredentials()
-
-
Method Details
-
getToken
Gets the access token.- Returns:
- The access token.
-
setToken
Sets the access token.- Parameters:
token- The access token.- Returns:
- This AuthCredentials instance.
-
getRefreshToken
Gets the refresh token.- Returns:
- The refresh token.
-
setRefreshToken
Sets the refresh token.- Parameters:
refreshToken- The refresh token.- Returns:
- This AuthCredentials instance.
-
getExpiresIn
Gets the expiration time in seconds.- Returns:
- The expiration time.
-
setExpiresIn
Sets the expiration time in seconds.- Parameters:
expiresIn- The expiration time.- Returns:
- This AuthCredentials instance.
-