Package com.qtsurfer.api.client.model
Class AuthTokenResponse
java.lang.Object
com.qtsurfer.api.client.model.AuthTokenResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class AuthTokenResponse
extends Object
AuthTokenResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSubscription tier this token was issued for.static enumAlways `Bearer`. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) booleanReturn true if this AuthTokenResponse object is equal to o.Short-lived HS256 JWT.Seconds until the JWT expires (typically 3600).What your API key may do, as a map from a resource to the actions allowed on it.getTier()Subscription tier this token was issued for.Always `Bearer`.inthashCode()putScopesItem(String key, List<String> scopesItem) voidsetAccessToken(String accessToken) voidsetExpiresIn(Integer expiresIn) voidvoidvoidsetTokenType(AuthTokenResponse.TokenTypeEnum tokenType) tokenType(AuthTokenResponse.TokenTypeEnum tokenType) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ACCESS_TOKEN
- See Also:
-
JSON_PROPERTY_TOKEN_TYPE
- See Also:
-
JSON_PROPERTY_EXPIRES_IN
- See Also:
-
JSON_PROPERTY_SCOPES
- See Also:
-
JSON_PROPERTY_TIER
- See Also:
-
-
Constructor Details
-
AuthTokenResponse
public AuthTokenResponse()
-
-
Method Details
-
accessToken
-
getAccessToken
Short-lived HS256 JWT. Send as `Authorization: Bearer <token>` on all other endpoints.- Returns:
- accessToken
-
setAccessToken
-
tokenType
-
getTokenType
Always `Bearer`.- Returns:
- tokenType
-
setTokenType
-
expiresIn
-
getExpiresIn
Seconds until the JWT expires (typically 3600).- Returns:
- expiresIn
-
setExpiresIn
-
scopes
-
putScopesItem
-
getScopes
What your API key may do, as a map from a resource to the actions allowed on it. Names are lower case: `{ \"backtests\": [\"read\", \"write\", \"execute\"], \"exchanges\": [\"read\"] }`. A scope is a resource and an action: a resource is listed only with at least one action, and a key with no scope is `{}`. `GET /account` and `POST /auth/token` return the same map for the same key. An operation that needs a scope the key does not carry is answered `403` with the code `insufficient_scope`, and says which scope it needed.- Returns:
- scopes
-
setScopes
-
tier
-
getTier
Subscription tier this token was issued for. Drives rate limits and feature flags on downstream endpoints.- Returns:
- tier
-
setTier
-
equals
Return true if this AuthTokenResponse object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-