CodeExchangeRequest

public final class CodeExchangeRequest

Class representation of a Nylas code exchange request

Constructors

Link copied to clipboard
public CodeExchangeRequest CodeExchangeRequest(@Json(name = "redirect_uri") String redirectUri, @Json(name = "code") String code, @Json(name = "client_id") String clientId, @Json(name = "client_secret") String clientSecret, @Json(name = "code_verifier") String codeVerifier)

Types

Link copied to clipboard
public final class Builder

A builder for creating a CodeExchangeRequest.

Properties

Link copied to clipboard
private String clientId

Client ID of the application.

Link copied to clipboard

Client secret of the application.

Link copied to clipboard
private final String code

OAuth 2.0 code fetched from the previous step.

Link copied to clipboard
private final String codeVerifier

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

Link copied to clipboard
private final String redirectUri

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

Functions

Link copied to clipboard
public final String getClientId()

Client ID of the application.

Link copied to clipboard
public final String getClientSecret()

Client secret of the application.

Link copied to clipboard
public final String getCode()

OAuth 2.0 code fetched from the previous step.

Link copied to clipboard
public final String getCodeVerifier()

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

Link copied to clipboard
public final String getRedirectUri()

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

Link copied to clipboard
public final Unit setClientId(String clientId)

Client ID of the application.

Link copied to clipboard
public final Unit setClientSecret(String clientSecret)

Client secret of the application.