Package com.jquestrade
Class Authorization
java.lang.Object
com.jquestrade.Authorization
Represents the data that allows an application to make requests the Questrade API.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the access token.int
Returns how long after generation the access token will expire.Returns the URL of the API server assigned to the access token.Returns the new refresh token, which can be used to generate a newAuthorization
.The access token type.
-
Method Details
-
getAccessToken
Returns the access token. Expires in 30 minutes after generation. Only works with the assocatied API server, seegetApiServer()
- Returns:
- The access token.
-
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
Returns the new refresh token, which can be used to generate a newAuthorization
.- Returns:
- The new refresh token.
-
getTokenType
The access token type.- Returns:
- The access token type. Is always Bearer
-