Class Authorization

java.lang.Object
com.jquestrade.Authorization

public class Authorization extends Object
Represents the data that allows an application to make requests the Questrade API.
  • Method Details

    • getAccessToken

      public String getAccessToken()
      Returns the access token. Expires in 30 minutes after generation. Only works with the assocatied API server, see getApiServer()
      Returns:
      The access token.
    • getApiServer

      public String getApiServer()
      Returns the URL of the API server assigned to the access token.
      Returns:
      The URL of the API server assigned to the access token.
    • getAccessTokenExpiry

      public int getAccessTokenExpiry()
      Returns how long after generation the access token will expire.
      Returns:
      How long after generation the access token will expire. It appears to always be 1800 seconds (30 minutes).
    • getRefreshToken

      public String getRefreshToken()
      Returns the new refresh token, which can be used to generate a new Authorization.
      Returns:
      The new refresh token.
    • getTokenType

      public String getTokenType()
      The access token type.
      Returns:
      The access token type. Is always Bearer