Class RefreshToken

java.lang.Object
com.auth0.json.mgmt.refreshtokens.RefreshToken

public class RefreshToken extends Object
  • Constructor Details

    • RefreshToken

      public RefreshToken()
  • Method Details

    • getId

      public String getId()
      Returns:
      The ID of the refresh token
    • getUserId

      public String getUserId()
      Returns:
      ID of the user which can be used when interacting with other APIs.
    • getCreatedAt

      public Date getCreatedAt()
      Returns:
      The date and time when the refresh token was created
    • getIdleExpiresAt

      public Date getIdleExpiresAt()
      Returns:
      The date and time when the refresh token will expire if idle
    • getExpiresAt

      public Date getExpiresAt()
      Returns:
      The date and time when the refresh token will expire
    • getDevice

      public Device getDevice()
      Returns:
      Device information
    • getClientId

      public String getClientId()
      Returns:
      ID of the client application granted with this refresh token
    • getSessionId

      public String getSessionId()
      Returns:
      ID of the authenticated session used to obtain this refresh-token
    • isRotating

      public Boolean isRotating()
      Returns:
      True if the token is a rotating refresh token
    • getResourceServers

      public List<ResourceServer> getResourceServers()
      Returns:
      A list of the resource server IDs associated to this refresh-token and their granted scopes
    • getLastExchangedAt

      public Date getLastExchangedAt()
      Returns:
      The date and time when the refresh token was last exchanged