public static interface OAuth2Credentials.Builder extends SdkPojo, CopyableBuilder<OAuth2Credentials.Builder,OAuth2Credentials>
| Modifier and Type | Method and Description |
|---|---|
OAuth2Credentials.Builder |
accessToken(String accessToken)
The access token used to access the connector on your behalf.
|
OAuth2Credentials.Builder |
clientId(String clientId)
The identifier for the desired client.
|
OAuth2Credentials.Builder |
clientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
|
OAuth2Credentials.Builder |
oAuthRequest(ConnectorOAuthRequest oAuthRequest)
Sets the value of the OAuthRequest property for this object.
|
default OAuth2Credentials.Builder |
oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
Sets the value of the OAuthRequest property for this object.
|
OAuth2Credentials.Builder |
refreshToken(String refreshToken)
The refresh token used to refresh an expired access token.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildOAuth2Credentials.Builder clientId(String clientId)
The identifier for the desired client.
clientId - The identifier for the desired client.OAuth2Credentials.Builder clientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
clientSecret - The client secret used by the OAuth client to authenticate to the authorization server.OAuth2Credentials.Builder accessToken(String accessToken)
The access token used to access the connector on your behalf.
accessToken - The access token used to access the connector on your behalf.OAuth2Credentials.Builder refreshToken(String refreshToken)
The refresh token used to refresh an expired access token.
refreshToken - The refresh token used to refresh an expired access token.OAuth2Credentials.Builder oAuthRequest(ConnectorOAuthRequest oAuthRequest)
oAuthRequest - The new value for the OAuthRequest property for this object.default OAuth2Credentials.Builder oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
ConnectorOAuthRequest.Builder avoiding
the need to create one manually via ConnectorOAuthRequest.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to oAuthRequest(ConnectorOAuthRequest).
oAuthRequest - a consumer that will call methods on ConnectorOAuthRequest.BuilderoAuthRequest(ConnectorOAuthRequest)Copyright © 2023. All rights reserved.