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.14.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) addScopesItem(String scopesItem) booleanReturn true if this AuthTokenResponse object is equal to o.Short-lived HS256 JWT.Seconds until the JWT expires (typically 3600).Scopes granted to this token.getTier()Subscription tier this token was issued for.Always `Bearer`.inthashCode()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
-
addScopesItem
-
getScopes
Scopes granted to this token. Reserved for future use; currently always empty.- 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
-