Builder

public final class Builder

A builder for creating a CodeExchangeRequest.

Parameters

redirectUri

Should match the same redirect URI that was used for getting the code during the initial authorization request.

code

OAuth 2.0 code fetched from the previous step.

clientId

Client ID of the application.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
public final CodeExchangeRequest.Builder clientSecret(String clientSecret)

Set the client secret. If not provided, the API Key will be used instead.

Link copied to clipboard
public final CodeExchangeRequest.Builder codeVerifier(String codeVerifier)

Set the code verifier. Should be the original plain text code verifier (code_challenge) used in the initial authorization request (PKCE).