Class AuthorizationCodePKCERequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<AuthorizationCodeCredentials,AuthorizationCodePKCERequest.Builder>
se.michaelthelin.spotify.requests.authorization.authorization_code.pkce.AuthorizationCodePKCERequest.Builder
- All Implemented Interfaces:
IRequest.Builder<AuthorizationCodeCredentials,
AuthorizationCodePKCERequest.Builder>
- Enclosing class:
AuthorizationCodePKCERequest
public static final class AuthorizationCodePKCERequest.Builder
extends AbstractRequest.Builder<AuthorizationCodeCredentials,AuthorizationCodePKCERequest.Builder>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The client ID setter.The authorization code setter.code_verifier
(String code_verifier) The code verifier setter.grant_type
(String grant_type) The grant type setter.redirect_uri
(URI redirect_uri) The redirect URI setter.protected AuthorizationCodePKCERequest.Builder
self()
Return this instance to simulate a self-type.Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
client_id
The client ID setter.- Parameters:
client_id
- Required. The client ID for your app, available from the developer dashboard.- Returns:
- An
AuthorizationCodePKCERequest.Builder
.
-
grant_type
The grant type setter.- Parameters:
grant_type
- Required. As defined in the OAuth 2.0 specification, this field must contain the value"authorization_code"
- Returns:
- An
AuthorizationCodePKCERequest.Builder
.
-
code
The authorization code setter.- Parameters:
code
- Required. The authorization code returned from the initial request to the Account's /authorize endpoint.- Returns:
- An
AuthorizationCodePKCERequest.Builder
.
-
redirect_uri
The redirect URI setter.- Parameters:
redirect_uri
- Required. This parameter is used for validation only (there is no actual redirection). The value of this parameter must exactly match the value ofredirect_uri
supplied when requesting the authorization code.- Returns:
- An
AuthorizationCodePKCERequest.Builder
.
-
code_verifier
The code verifier setter.- Parameters:
code_verifier
- Required. The value of this parameter must match the value of the code_verifier that your app generated beforehand.- Returns:
- An
AuthorizationCodePKCERequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- An
AuthorizationCodePKCERequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<AuthorizationCodeCredentials,
AuthorizationCodePKCERequest.Builder> - Returns:
- This instance.
-