Class AuthCredentials

java.lang.Object
org.localify.auth.dto.web.AuthCredentials
All Implemented Interfaces:
Serializable

public class AuthCredentials extends Object implements Serializable
Represents the authentication credentials for a user. This includes the access token, refresh token, and expiration time.
See Also:
  • Constructor Details

    • AuthCredentials

      public AuthCredentials()
  • Method Details

    • getToken

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

      public AuthCredentials setToken(String token)
      Sets the access token.
      Parameters:
      token - The access token.
      Returns:
      This AuthCredentials instance.
    • getRefreshToken

      public String getRefreshToken()
      Gets the refresh token.
      Returns:
      The refresh token.
    • setRefreshToken

      public AuthCredentials setRefreshToken(String refreshToken)
      Sets the refresh token.
      Parameters:
      refreshToken - The refresh token.
      Returns:
      This AuthCredentials instance.
    • getExpiresIn

      public Long getExpiresIn()
      Gets the expiration time in seconds.
      Returns:
      The expiration time.
    • setExpiresIn

      public AuthCredentials setExpiresIn(Long expiresIn)
      Sets the expiration time in seconds.
      Parameters:
      expiresIn - The expiration time.
      Returns:
      This AuthCredentials instance.