public static final class AuthorizationCodeCredentials.Builder extends AbstractModelObject.Builder
AuthorizationCodeCredentials instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationCodeCredentials |
build()
Build a model object with the information set in the builder object.
|
AuthorizationCodeCredentials.Builder |
setAccessToken(String accessToken)
The access token setter.
|
AuthorizationCodeCredentials.Builder |
setExpiresIn(Integer expiresIn)
The expiration time setter.
|
AuthorizationCodeCredentials.Builder |
setRefreshToken(String refreshToken)
The refresh token setter.
|
AuthorizationCodeCredentials.Builder |
setScope(String scope)
The scopes setter.
|
AuthorizationCodeCredentials.Builder |
setTokenType(String tokenType)
The access token type setter.
|
public AuthorizationCodeCredentials.Builder setAccessToken(String accessToken)
accessToken - An access token that can be provided in subsequent calls,
for example to Spotify Web API services.AuthorizationCodeCredentials.Builder.public AuthorizationCodeCredentials.Builder setTokenType(String tokenType)
tokenType - How the access token may be used: always "Bearer".AuthorizationCodeCredentials.Builder.public AuthorizationCodeCredentials.Builder setScope(String scope)
scope - The scopes specified in the credentials request.AuthorizationCodeCredentials.Builder.public AuthorizationCodeCredentials.Builder setExpiresIn(Integer expiresIn)
expiresIn - The time period (in seconds) for which the access token is valid.AuthorizationCodeCredentials.Builder.public AuthorizationCodeCredentials.Builder setRefreshToken(String refreshToken)
refreshToken - A token that can be sent to the Spotify Accounts service in place of an authorization code.AuthorizationCodeCredentials.Builder.public AuthorizationCodeCredentials build()
IModelObject.BuilderCopyright © 2020. All rights reserved.