CreateGrantRequest

public final class CreateGrantRequest

Class representing a request to create a grant.

Constructors

Link copied to clipboard
public CreateGrantRequest CreateGrantRequest(@Json(name = "provider") AuthProvider provider, @Json(name = "settings") Map<String, Object> settings, @Json(name = "state") String state, @Json(name = "scope") List<String> scope)

Types

Link copied to clipboard
public final class Builder

Builder for CreateGrantRequest.

Properties

Link copied to clipboard
private final AuthProvider provider

OAuth provider

Link copied to clipboard
private final List<String> scope

Optional list of scopes to request. If not specified it will use the integration default scopes.

Link copied to clipboard
private final Map<String, Object> settings

Settings required by provider.

Link copied to clipboard
private final String state

Optional state value to return to developer's website after authentication flow is completed.

Functions

Link copied to clipboard
public final AuthProvider getProvider()

OAuth provider

Link copied to clipboard
public final List<String> getScope()

Optional list of scopes to request. If not specified it will use the integration default scopes.

Link copied to clipboard
public final Map<String, Object> getSettings()

Settings required by provider.

Link copied to clipboard
public final String getState()

Optional state value to return to developer's website after authentication flow is completed.